/* ===================================
   ANIMATED GRADIENT HERO MODULE
   =================================== */

/* Gradient animation */
@keyframes gradientMove {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Main hero container */
.dl_hero {
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  grid-template-rows: min-content;
  align-items: center;
  padding: 80px 20px 40px 20px; /* Added more top padding for mobile header */
  margin-top: 0;
  margin-bottom: 0;`
  position: relative;
  z-index: 1;
}

/* Full-width gradient background layer */
.dl_hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  z-index: -1;
background: linear-gradient(135deg, #0EA6EA 0%, #2B8FD8 25%, #4A7BC9 50%, #6768BA 75%, #8356AB 100%);  background-size: 200% 200%;
  animation: gradientMove 25s ease infinite;
  opacity: 0.95;
}

/* Grid children - mobile first */
.dl_hero__text, 
.dl_hero__image {
  grid-column: auto / span 24;
  position: relative;
}

/* Text container */
.dl_hero__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
  order: -1;
}

/* Image container */
.dl_hero__image {
  order: -1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

/* Strong glow effect */
.dl_hero__image::after {
  content: '';
  position: absolute;
  width: 110%;
  height: 110%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    ellipse, 
    rgba(255, 255, 255, 0.8) 0%, 
    rgba(255, 255, 255, 0.6) 15%,
    rgba(14, 166, 234, 0.5) 35%, 
    rgba(57, 37, 165, 0.3) 55%,
    transparent 75%
  );
  filter: blur(60px);
  z-index: 0;
  pointer-events: none;
}

/* Ensure images appear above glow */
.dl_hero__image img {
  position: relative;
  z-index: 2;
  margin: 0 auto !important;
  display: block !important;
}

/* Tablet and desktop layout */
@media (min-width: 769px) {
  .dl_hero {
    padding: 60px 40px; /* Desktop padding stays the same */
  }
  
  .dl_hero__text {
    grid-column: auto / span 12;
    padding-right: 32px;
    align-items: flex-start;
    order: unset;
    text-align: left;
  }
  
  .dl_hero__text h2, 
  .dl_hero__text h3, 
  .dl_hero__text li, 
  .dl_hero__text {
    text-align: left;
  }
  
  .dl_hero__image {
    grid-column: auto / span 12;
    order: unset;
    justify-content: flex-end;
    display: flex;
    align-items: center;
  }
  
  .dl_hero__image img {
    max-width: 100% !important;
    margin: unset !important;
  }
  
  /* Left-aligned variation */
  .dl_hero--left .dl_hero__image {
    order: -1;
    justify-content: flex-start;
  }
  
  .dl_hero--left .dl_hero__text {
    order: unset;
    padding-right: 0;
    padding-left: 32px;
  }
}

/* Remove blob background image */
.dl_hero__image {
  background: none !important;
}

/* White text on gradient background */
.dl_hero h1,
.dl_hero h2, 
.dl_hero h3,
.dl_hero p,
.dl_hero .featured__headline,
.dl_hero .featured__subheadline {
  color: white !important;
}

/* Top-aligned variation */
.dl_hero--top .dl_hero__text {
  grid-column: auto / span 24;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.dl_hero--top .dl_hero__text h2, 
.dl_hero--top .dl_hero__text h3 {
  text-align: center;
}

.dl_hero--top .dl_hero__image {
  grid-column: auto / span 24;
  order: -1;
  max-width: 820px;
  margin: 0 auto;
}

/* Reduce padding above hero text on mobile */
@media (max-width: 768px) {
  .dl_hero {
    padding: 0px 20px 40px 20px;
  }
  
  .dl_hero__text {
    padding: 10px 0;
  }
}