/* AABD Hero Block Styles - Carousel Layout */

/* CSS Variables */
:root {
  --header-height: 100px;
  --admin-bar-height: 0px;
  --hero-height: calc(100vh - var(--header-height) - var(--admin-bar-height));
  --transition-duration: 0.6s;
  --transition-easing: cubic-bezier(0.4, 0, 0.2, 1);
  --text-color: #ffffff;
  --shadow-color: rgba(0, 0, 0, 0.575);
  --primary-blue: #1770B8;
  --primary-yellow: #FFED00;
  --secondary-blue: #31A9E0;
}

/* Account for WordPress admin bar */
body.admin-bar {
  --admin-bar-height: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar {
    --admin-bar-height: 46px;
  }
}

/* Reset */
.aabd-hero-block * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Hero section container */
.aabd-hero-block,
.aabd-hero-block.swiper,
section.aabd-hero-block.swiper {
  position: relative !important;
  width: 100% !important;
  max-width: 1400px !important;
  height: var(--hero-height) !important;
  min-height: 500px !important;
  max-height: 900px !important;
  overflow: hidden !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
  color: var(--text-color);
  background: #000 !important;
  z-index: 1 !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-top: var(--header-height) !important; /* Start below header */
  box-sizing: border-box !important;
}

/* En pantallas > 1200px: difuminado a blanco en los costados del hero */
@media (min-width: 1201px) {
  .aabd-hero-block::after,
  .aabd-hero-block.swiper::after,
  section.aabd-hero-block.swiper::after {
    content: '';
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 20 !important;
    pointer-events: none !important;
    background: linear-gradient(
      to right,
      #ffffff 0%,
      rgba(255, 255, 255, 0.85) 5%,
      rgba(255, 255, 255, 0) 15%,
      transparent 50%,
      rgba(255, 255, 255, 0) 85%,
      rgba(255, 255, 255, 0.85) 95%,
      #ffffff 100%
    ) !important;
  }
}

/* Carousel wrapper */
.aabd-hero-carousel-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

/* Carousel track */
.aabd-hero-carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform var(--transition-duration) var(--transition-easing);
  will-change: transform;
}

/* Slide Styles - Force background-size with !important */
.aabd-hero-block .swiper-slide,
.aabd-hero-block .swiper-slide[style*="background-image"] {
  position: relative !important;
  background-size: cover !important;
  background-position: center top !important;
  background-repeat: no-repeat !important;
  display: block !important; /* Changed from flex to block for overlay positioning */
  min-height: 100% !important;
  overflow: hidden !important; /* Changed to hidden to contain overlay */
}

/* Individual slide */
.aabd-hero-slide,
.swiper-slide.aabd-hero-slide {
  position: relative !important;
  min-width: 100%;
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  flex-grow: 0;
  overflow: hidden !important;
  z-index: 0 !important;
  /* Ensure slide has proper positioning context for overlay */
  display: block !important;
  /* Force background position to top */
  background-position: center top !important;
}

/* On larger screens, adjust positioning to show more of the top part */
@media (min-width: 1024px) {
  .aabd-hero-block .swiper-slide,
  .aabd-hero-block .swiper-slide[style*="background-image"] {
    background-size: cover !important;
    background-position: center 20% !important;
  }
}

/* On mobile, use contain to maintain aspect ratio */
@media (max-width: 768px) {
  .aabd-hero-block .swiper-slide,
  .aabd-hero-block .swiper-slide[style*="background-image"] {
    background-size: contain !important;
    background-position: center center !important;
  }
}

/* Slide image */
.aabd-hero-slide-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Soft Overlay - Positioned above the swiper slide background image */
/* Radial gradient overlay: más suave, foco en la zona de texto */
.aabd-hero-slide-overlay,
.swiper-slide.aabd-hero-slide .aabd-hero-slide-overlay,
div.swiper-slide.aabd-hero-slide div.aabd-hero-slide-overlay,
.aabd-hero-block .swiper-slide .aabd-hero-slide-overlay,
.aabd-hero-block.swiper-fade .swiper-slide .aabd-hero-slide-overlay,
.aabd-hero-block.swiper-fade .swiper-slide-active .aabd-hero-slide-overlay,
.aabd-hero-block.swiper-fade .swiper-slide[style*="opacity"] .aabd-hero-slide-overlay {
  display: block !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 1 !important;
  pointer-events: none !important;
  background: radial-gradient(
    ellipse 120% 100% at bottom left,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.5) 35%,
    rgba(0, 0, 0, 0.2) 60%,
    rgba(0, 0, 0, 0) 100%
  ) !important;
  transition: background 0.3s ease !important;
  /* Ensure overlay covers entire slide */
  margin: 0 !important;
  padding: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  /* Force render on GPU layer */
  transform: translateZ(0) !important;
  -webkit-transform: translateZ(0) !important;
}

/* Organization text container - Optimized for Swiper transitions */
/* Positioned at bottom left corner of hero */
.aabd-hero-slide-organization,
.swiper-slide .aabd-hero-slide-organization,
.swiper-slide-active .aabd-hero-slide-organization,
.swiper-slide-next .aabd-hero-slide-organization,
.swiper-slide-prev .aabd-hero-slide-organization,
.swiper-slide-duplicate .aabd-hero-slide-organization,
.aabd-hero-block .swiper-slide .aabd-hero-slide-organization,
.aabd-hero-block .swiper-slide-active .aabd-hero-slide-organization,
.aabd-hero-block .swiper-slide-next .aabd-hero-slide-organization,
.aabd-hero-block .swiper-slide-prev .aabd-hero-slide-organization,
.aabd-hero-block.swiper-fade .swiper-slide .aabd-hero-slide-organization,
.aabd-hero-block.swiper-fade .swiper-slide-active .aabd-hero-slide-organization,
.swiper-slide[style*="opacity"] .aabd-hero-slide-organization,
.swiper-slide[style*="opacity: 0"] .aabd-hero-slide-organization,
.swiper-slide[style*="opacity:0"] .aabd-hero-slide-organization {
  position: absolute !important;
  bottom: 2rem !important;
  left: 2rem !important;
  top: auto !important;
  right: auto !important;
  transform: translateZ(0) !important;
  z-index: 10 !important; /* Above overlay but below header */
  text-align: left !important;
  width: auto !important;
  padding: 0 !important;
  pointer-events: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
  /* Prevent Swiper from hiding this element */
  will-change: transform !important;
}

/* Organization text styling - Optimized selectors to override all Swiper states */
.aabd-hero-organization-text,
p.aabd-hero-organization-text,
.aabd-hero-slide-organization .aabd-hero-organization-text,
.aabd-hero-slide-organization p.aabd-hero-organization-text,
.swiper-slide .aabd-hero-organization-text,
.swiper-slide p.aabd-hero-organization-text,
.swiper-slide-active .aabd-hero-organization-text,
.swiper-slide-active p.aabd-hero-organization-text,
.swiper-slide-next .aabd-hero-organization-text,
.swiper-slide-prev .aabd-hero-organization-text,
.swiper-slide-duplicate .aabd-hero-organization-text,
.aabd-hero-block .swiper-slide .aabd-hero-organization-text,
.aabd-hero-block .swiper-slide p.aabd-hero-organization-text,
.aabd-hero-block .swiper-slide-active .aabd-hero-organization-text,
.aabd-hero-block .swiper-slide-active p.aabd-hero-organization-text,
.aabd-hero-block.swiper-fade .swiper-slide .aabd-hero-organization-text,
.aabd-hero-block.swiper-fade .swiper-slide-active .aabd-hero-organization-text,
.aabd-hero-block.swiper-fade .swiper-slide p.aabd-hero-organization-text,
.swiper-slide[style*="opacity"] .aabd-hero-organization-text,
.swiper-slide[style*="opacity: 0"] .aabd-hero-organization-text,
.swiper-slide[style*="opacity:0"] .aabd-hero-organization-text,
.swiper-slide[style*="opacity"] p.aabd-hero-organization-text {
  /* Layout */
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
  gap: 0.35rem !important;
  margin: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  
  /* Typography */
  color: #ffffff !important;
  font-size: clamp(2rem, 5.5vw, 3.5rem) !important; /* A little smaller */
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  line-height: 1.2 !important;
  white-space: normal !important; /* Allow 2 lines */
  text-align: left !important;
  
  /* Modern 2025 Design - Clean, minimal with brand color shadows */
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  text-shadow: 
    2px 2px 8px rgba(23, 112, 184, 0.4),
    0 0 20px rgba(23, 112, 184, 0.3),
    -2px -2px 6px rgba(255, 237, 0, 0.2) !important;
  position: relative !important;
  overflow: visible !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  
  /* Visibility & Interaction */
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateZ(0) !important;
  will-change: transform, opacity !important;
  
  /* Transitions */
  transition: all 0.3s ease !important;
}

/* Modern 2025 - Removed animations for cleaner look */


/* Organization text line styling - 3 lines with elegant brand colors */
.aabd-hero-organization-text {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.35rem !important;
  font-size: clamp(2rem, 5.5vw, 3.5rem) !important;
  position: relative !important;
  z-index: 1 !important;
  font-family: inherit !important;
  animation: elegantFadeIn 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards !important;
}

@keyframes elegantFadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.aabd-hero-org-line-1,
.aabd-hero-org-line-2,
.aabd-hero-org-line-3 {
  display: block !important;
  line-height: 1.2 !important;
  font-size: clamp(2rem, 5.5vw, 3.5rem) !important;
  position: relative !important;
  z-index: 1 !important;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
  font-feature-settings: "kern" 1, "liga" 1 !important;
  text-rendering: optimizeLegibility !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
}

/* Line 1 - Elegant Yellow with sophisticated layered shadows */
.aabd-hero-org-line-1 {
  color: var(--primary-yellow) !important;
  background: none !important;
  -webkit-text-fill-color: var(--primary-yellow) !important;
  text-shadow: 
    /* Deep shadow for depth */
    0 2px 4px rgba(0, 0, 0, 0.8),
    0 4px 8px rgba(0, 0, 0, 0.6),
    /* Primary yellow glow layers */
    0 0 15px rgba(255, 237, 0, 0.4),
    0 0 30px rgba(255, 237, 0, 0.3),
    0 0 45px rgba(255, 237, 0, 0.2),
    /* Blue accent shadow for sophistication */
    3px 3px 8px rgba(23, 112, 184, 0.3),
    5px 5px 12px rgba(23, 112, 184, 0.2) !important;
  filter: none !important;
  font-weight: 900 !important;
  letter-spacing: 0.12em !important;
  animation: elegantGlow1 3s ease-in-out infinite !important;
}

@keyframes elegantGlow1 {
  0%, 100% {
    text-shadow: 
      0 2px 4px rgba(0, 0, 0, 0.8),
      0 4px 8px rgba(0, 0, 0, 0.6),
      0 0 15px rgba(255, 237, 0, 0.4),
      0 0 30px rgba(255, 237, 0, 0.3),
      0 0 45px rgba(255, 237, 0, 0.2),
      3px 3px 8px rgba(23, 112, 184, 0.3),
      5px 5px 12px rgba(23, 112, 184, 0.2);
  }
  50% {
    text-shadow: 
      0 2px 4px rgba(0, 0, 0, 0.8),
      0 4px 8px rgba(0, 0, 0, 0.6),
      0 0 20px rgba(255, 237, 0, 0.5),
      0 0 35px rgba(255, 237, 0, 0.4),
      0 0 50px rgba(255, 237, 0, 0.3),
      3px 3px 8px rgba(23, 112, 184, 0.35),
      5px 5px 12px rgba(23, 112, 184, 0.25);
  }
}

/* Line 2 - Elegant Blue with sophisticated layered shadows */
.aabd-hero-org-line-2 {
  color: var(--secondary-blue) !important;
  text-shadow: 
    /* Deep shadow for depth */
    0 2px 4px rgba(0, 0, 0, 0.8),
    0 4px 8px rgba(0, 0, 0, 0.6),
    /* Primary blue glow layers */
    0 0 15px rgba(49, 169, 224, 0.4),
    0 0 30px rgba(23, 112, 184, 0.35),
    0 0 45px rgba(23, 112, 184, 0.25),
    /* Yellow accent shadow for sophistication */
    -2px -2px 6px rgba(255, 237, 0, 0.3),
    -4px -4px 10px rgba(255, 237, 0, 0.2) !important;
  font-weight: 900 !important;
  letter-spacing: 0.12em !important;
  animation: elegantGlow2 3s ease-in-out infinite 0.3s !important;
}

@keyframes elegantGlow2 {
  0%, 100% {
    text-shadow: 
      0 2px 4px rgba(0, 0, 0, 0.8),
      0 4px 8px rgba(0, 0, 0, 0.6),
      0 0 15px rgba(49, 169, 224, 0.4),
      0 0 30px rgba(23, 112, 184, 0.35),
      0 0 45px rgba(23, 112, 184, 0.25),
      -2px -2px 6px rgba(255, 237, 0, 0.3),
      -4px -4px 10px rgba(255, 237, 0, 0.2);
  }
  50% {
    text-shadow: 
      0 2px 4px rgba(0, 0, 0, 0.8),
      0 4px 8px rgba(0, 0, 0, 0.6),
      0 0 20px rgba(49, 169, 224, 0.5),
      0 0 35px rgba(23, 112, 184, 0.4),
      0 0 50px rgba(23, 112, 184, 0.3),
      -2px -2px 6px rgba(255, 237, 0, 0.35),
      -4px -4px 10px rgba(255, 237, 0, 0.25);
  }
}

/* Line 3 - Elegant White with sophisticated layered shadows */
.aabd-hero-org-line-3 {
  color: #ffffff !important;
  text-shadow: 
    /* Deep shadow for depth */
    0 2px 4px rgba(0, 0, 0, 0.9),
    0 4px 8px rgba(0, 0, 0, 0.7),
    /* Blue glow layers */
    0 0 15px rgba(23, 112, 184, 0.35),
    0 0 30px rgba(49, 169, 224, 0.3),
    0 0 45px rgba(49, 169, 224, 0.2),
    /* Yellow accent shadow for sophistication */
    -1px -1px 4px rgba(255, 237, 0, 0.25),
    -3px -3px 8px rgba(255, 237, 0, 0.15) !important;
  font-weight: 800 !important;
  letter-spacing: 0.1em !important;
  animation: elegantGlow3 3s ease-in-out infinite 0.6s !important;
}

@keyframes elegantGlow3 {
  0%, 100% {
    text-shadow: 
      0 2px 4px rgba(0, 0, 0, 0.9),
      0 4px 8px rgba(0, 0, 0, 0.7),
      0 0 15px rgba(23, 112, 184, 0.35),
      0 0 30px rgba(49, 169, 224, 0.3),
      0 0 45px rgba(49, 169, 224, 0.2),
      -1px -1px 4px rgba(255, 237, 0, 0.25),
      -3px -3px 8px rgba(255, 237, 0, 0.15);
  }
  50% {
    text-shadow: 
      0 2px 4px rgba(0, 0, 0, 0.9),
      0 4px 8px rgba(0, 0, 0, 0.7),
      0 0 20px rgba(23, 112, 184, 0.4),
      0 0 35px rgba(49, 169, 224, 0.35),
      0 0 50px rgba(49, 169, 224, 0.25),
      -1px -1px 4px rgba(255, 237, 0, 0.3),
      -3px -3px 8px rgba(255, 237, 0, 0.2);
  }
}

/* Override Swiper fade effect - ensure overlay is always visible */
/* CRITICAL: Swiper applies opacity: 0 inline to inactive slides */
.aabd-hero-block.swiper-fade .swiper-slide .aabd-hero-slide-overlay,
.aabd-hero-block.swiper-fade .swiper-slide-active .aabd-hero-slide-overlay,
.aabd-hero-block.swiper-fade .swiper-slide-duplicate .aabd-hero-slide-overlay,
.aabd-hero-block.swiper-fade .swiper-slide-next .aabd-hero-slide-overlay,
.aabd-hero-block.swiper-fade .swiper-slide-prev .aabd-hero-slide-overlay,
.swiper-fade .swiper-slide .aabd-hero-slide-overlay,
.swiper-fade .swiper-slide[style*="opacity"] .aabd-hero-slide-overlay,
.swiper-slide[style*="opacity: 0"] .aabd-hero-slide-overlay,
.swiper-slide[style*="opacity:0"] .aabd-hero-slide-overlay,
.swiper-slide[style*="opacity: 0.0"] .aabd-hero-slide-overlay {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
  background: radial-gradient(
    ellipse 120% 100% at bottom left,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.5) 35%,
    rgba(0, 0, 0, 0.2) 60%,
    rgba(0, 0, 0, 0) 100%
  ) !important;
  transform: translateZ(0) !important;
}

/* Additional override for Swiper fade effect - ensure organization text is always visible */
.aabd-hero-block.swiper-fade .swiper-slide .aabd-hero-slide-organization,
.aabd-hero-block.swiper-fade .swiper-slide-active .aabd-hero-slide-organization,
.aabd-hero-block.swiper-fade .swiper-slide-duplicate .aabd-hero-slide-organization,
.aabd-hero-block.swiper-fade .swiper-slide-next .aabd-hero-slide-organization,
.aabd-hero-block.swiper-fade .swiper-slide-prev .aabd-hero-slide-organization {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
  z-index: 10 !important; /* Above overlay but below header */
}

.aabd-hero-block.swiper-fade .swiper-slide .aabd-hero-organization-text,
.aabd-hero-block.swiper-fade .swiper-slide-active .aabd-hero-organization-text,
.aabd-hero-block.swiper-fade .swiper-slide-duplicate .aabd-hero-organization-text,
.aabd-hero-block.swiper-fade .swiper-slide-next .aabd-hero-organization-text,
.aabd-hero-block.swiper-fade .swiper-slide-prev .aabd-hero-organization-text {
  opacity: 1 !important;
  visibility: visible !important;
  display: inline-block !important;
}

/* Dance name label */
.aabd-hero-slide-label {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  background: rgba(0, 0, 0, 0.6);
  color: var(--text-color);
  padding: 0.75rem 1.5rem;
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 4px;
  z-index: 3;
  backdrop-filter: blur(4px);
  pointer-events: none;
}

/* Hero slide content container */
.aabd-hero-slide-content,
.swiper-slide .aabd-hero-slide-content,
.aabd-hero-slide .aabd-hero-slide-content,
.swiper-slide-active .aabd-hero-slide-content {
  position: absolute !important;
  z-index: 100 !important; /* Below header (9999) but above overlay */
  pointer-events: none !important;
  /* Top right corner positioning */
  top: 2rem !important;
  right: 2rem !important;
  bottom: auto !important;
  left: auto !important;
  /* Linear gradient background: transparent bottom-left to black top-right */
  background: linear-gradient(to top right, transparent 0%, rgba(0, 0, 0, 0.3) 40%, rgba(0, 0, 0, 0.7) 70%, rgba(0, 0, 0, 1) 100%) !important;
  padding: 0.75rem 1.5rem !important;
  border-radius: 8px !important;
}

/* Hero slide title */
.aabd-hero-slide-title,
h1.aabd-hero-slide-title,
.aabd-hero-slide-content h1,
.aabd-hero-slide-content .aabd-hero-slide-title {
  margin: 0 !important;
  padding: 0 !important; /* Padding is now on parent container */
  color: var(--text-color) !important;
  font-size: clamp(1.5rem, 4vw, 2.5rem) !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  line-height: 1.2 !important;
  text-transform: uppercase !important;
  text-align: right !important;
  text-shadow: 
    2px 2px 8px rgba(0, 0, 0, 0.8),
    0 0 20px rgba(0, 0, 0, 0.2) !important;
  background: transparent !important; /* Background is now on parent container */
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-radius: 0 !important; /* Border radius is on parent */
  display: block !important;
  box-sizing: border-box !important;
}

/* Navigation chevrons */
.aabd-hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  font-weight: 900;
  background: transparent;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #1770B8;
  transition: all 0.3s ease;
  padding: 0;
  margin: 0;
  outline: none;
  pointer-events: auto;
}

.aabd-hero-nav:hover {
  color: #31A9E0;
  transform: translateY(-50%) scale(1.15);
  background: rgba(23, 112, 184, 0.1);
}

.aabd-hero-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.aabd-hero-nav:focus {
  outline: 3px solid #1770B8;
  outline-offset: 2px;
  background: rgba(23, 112, 184, 0.1);
}

.aabd-hero-nav svg {
  width: 32px;
  height: 32px;
  stroke-width: 3;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  pointer-events: none;
}

/* Previous button - LEFT side */
.aabd-hero-nav--prev {
  left: 2rem;
  right: auto;
}

/* Next button - RIGHT side */
.aabd-hero-nav--next {
  right: 2rem;
  left: auto;
}

/* Mobile responsive */
@media (max-width: 768px) {
  :root {
    --header-height: 100px; /* Keep header height consistent */
    --hero-height: calc(100vh - var(--header-height));
  }
  
  /* Ensure hero starts below header on mobile */
  .aabd-hero-block,
  .aabd-hero-block.swiper,
  section.aabd-hero-block.swiper {
    margin-top: var(--header-height) !important;
  }
  
  .aabd-hero-slide-organization {
    bottom: 1.5rem;
    left: 1rem;
    top: auto;
    padding: 0;
  }
  
  .aabd-hero-organization-text {
    font-size: clamp(1.5rem, 6vw, 2.75rem) !important; /* A little smaller */
    padding: 0.75rem 1.5rem 1.5rem 1.5rem !important; /* Added bottom padding */
    letter-spacing: 0.1em;
    white-space: normal;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.25rem !important;
  }
  
  .aabd-hero-org-line-1,
  .aabd-hero-org-line-2,
  .aabd-hero-org-line-3 {
    font-size: clamp(1.5rem, 6vw, 2.75rem) !important; /* A little smaller for spans */
  }
  
  /* Position title at top right for mobile */
  .aabd-hero-slide-content,
  .swiper-slide .aabd-hero-slide-content,
  .aabd-hero-slide .aabd-hero-slide-content,
  .swiper-slide-active .aabd-hero-slide-content,
  .swiper-slide-next .aabd-hero-slide-content,
  .swiper-slide-prev .aabd-hero-slide-content {
    top: 1.5rem !important;
    right: 1rem !important;
    left: auto !important;
    bottom: auto !important;
    width: auto !important;
    position: absolute !important;
    z-index: 100 !important; /* Below header but above overlay */
    /* Linear gradient background: transparent bottom-left to black top-right */
    background: linear-gradient(to top right, transparent 0%, rgba(0, 0, 0, 0.3) 40%, rgba(0, 0, 0, 0.7) 70%, rgba(0, 0, 0, 1) 100%) !important;
    padding: 0.75rem 1.25rem !important;
    border-radius: 8px !important;
  }
  
  .aabd-hero-slide-title,
  h1.aabd-hero-slide-title,
  .aabd-hero-slide-content h1,
  .aabd-hero-slide-content .aabd-hero-slide-title {
    font-size: clamp(1.25rem, 5vw, 2rem) !important;
    padding: 0.75rem 1.25rem !important;
    background: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border-radius: 8px !important;
    text-align: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    display: block !important;
  }
  
  .aabd-hero-slide-label {
    bottom: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    font-size: clamp(0.875rem, 3vw, 1.25rem);
  }
  
  .aabd-hero-nav {
    width: 50px;
    height: 50px;
  }
  
  .aabd-hero-nav svg {
    width: 28px;
    height: 28px;
  }
  
  .aabd-hero-nav--prev {
    left: 1rem;
    right: auto;
  }
  
  .aabd-hero-nav--next {
    right: 1rem;
    left: auto;
  }
}

@media (max-width: 480px) {
  .aabd-hero-slide-organization {
    bottom: 1rem;
    left: 0.75rem;
    top: auto;
    padding: 0;
  }
  
  .aabd-hero-organization-text {
    font-size: clamp(1.25rem, 7vw, 2.25rem) !important; /* A little smaller */
    padding: 0.5rem 1rem 1.25rem 1rem !important; /* Added bottom padding */
    letter-spacing: 0.08em;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.2rem !important;
  }
  
  .aabd-hero-org-line-1,
  .aabd-hero-org-line-2,
  .aabd-hero-org-line-3 {
    font-size: clamp(1.25rem, 7vw, 2.25rem) !important; /* A little smaller for spans */
  }
  
  /* Position title at top right for small mobile */
  .aabd-hero-slide-content,
  .swiper-slide .aabd-hero-slide-content,
  .aabd-hero-slide .aabd-hero-slide-content,
  .swiper-slide-active .aabd-hero-slide-content,
  .swiper-slide-next .aabd-hero-slide-content,
  .swiper-slide-prev .aabd-hero-slide-content {
    top: 1rem !important;
    right: 0.75rem !important;
    left: auto !important;
    bottom: auto !important;
    position: absolute !important;
    z-index: 100 !important; /* Below header but above overlay */
    /* Linear gradient background: transparent bottom-left to black top-right */
    background: linear-gradient(to top right, transparent 0%, rgba(0, 0, 0, 0.3) 40%, rgba(0, 0, 0, 0.7) 70%, rgba(0, 0, 0, 1) 100%) !important;
    padding: 0.625rem 1rem !important;
    border-radius: 8px !important;
  }
  
  .aabd-hero-slide-title,
  h1.aabd-hero-slide-title,
  .aabd-hero-slide-content h1,
  .aabd-hero-slide-content .aabd-hero-slide-title {
    font-size: clamp(1rem, 6vw, 1.75rem) !important;
    padding: 0 !important; /* Padding is on parent container */
    background: transparent !important; /* Background is on parent container */
    margin: 0 !important;
    display: block !important;
  }
  
  .aabd-hero-nav {
    width: 45px;
    height: 45px;
  }
  
  .aabd-hero-nav svg {
    width: 24px;
    height: 24px;
  }
  
  .aabd-hero-nav--prev {
    left: 0.75rem;
    right: auto;
  }
  
  .aabd-hero-nav--next {
    right: 0.75rem;
    left: auto;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .aabd-hero-slide-label {
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #ffffff;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .aabd-hero-carousel-track {
    transition: transform 0.3s ease;
  }
}
