/* Layout */
.rotating-hero {
  background: #fff;
  padding: 0;
}

.rotating-hero .hero-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  gap: 40px;
  align-items: center;
}

.hero-content {
  color: #000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Text */
.hero-eyebrow {
  font-size: 18px;
  font-weight: 550;
  color: #35368f;
  margin: 0 0 6px;
}

.hero-headline {
  font-size: 48px;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 18px;
  margin-top: 20px;
  max-width: 575px;
  line-height: 1.6;
  color: #000;
}

/* Rotating headline */
.rotating-headline-simple {
  margin-top: 10px;
  line-height: 1.1;
  font-size: 60px;
  font-weight: 700;
}

.rotating-headline-simple .word {
  display: inline-block;
  opacity: 1;
  transition: opacity 200ms linear;
  min-width: 6ch;
}

/* CTA */
.hero-ctas .btn {
  display: inline-block;
  padding: 14px 14px;
  border-radius: 8px;
  font-weight: 550 !important;
  font-size: 16px;
  text-decoration: none;
  margin-top: 28px;
}

.btn-primary {
  background: #35368f;
  color: #fff !important;
}

.btn-primary:hover {
  background: #f0f1f5;
  color: #35368f !important;
  border: 1px solid #35368f;
}

/* Gradient Animation */
.gradient-text {
  background: linear-gradient(270deg, #08A8DD, #35368F, #E71788, #EA2F30, #FBE727);
  background-size: 600% 600%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientShift 30s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

  .rotating-headline-simple {
    font-size: 40px;
  }

  .hero-headline {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 16px;
  }
}
/* === FIX TEXT WRAP + MATCH ROTATING SIZE === */

.hero-content {
  max-width: 525px;
  width: 100%;
}

.rotating-headline-simple {
  margin: 0;
  line-height: 1.2;
  font-size: 48px; /* matches hero-headline */
  font-weight: 700;
  text-align: left;
  word-wrap: break-word;
}

.rotating-headline-simple .word {
  display: inline-block;
  white-space: normal;
  word-break: break-word;
}


/* =========================================================
   ROTATING HERO — FINAL DESKTOP LEFT / MOBILE FIXES
========================================================= */

/* Desktop defaults — LEFT aligned */
.rotating-headline-simple {
  text-align: left;
}

/* Fix rotating headline word-breaking globally */
.rotating-headline-simple .word {
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
}

/* MOBILE OVERRIDES */
@media (max-width: 900px) {

  .hero-content {
    order: 1;
    max-width: 100%;
    margin: 0 auto;
    align-items: flex-start;
  }

  .hero-headline {
    font-size: 28px;
    line-height: 1.2;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
  }

  .rotating-headline-simple {
    font-size: 32px;
    line-height: 1.15;
    text-align: center; /* ONLY center on mobile */
  }

  .rotating-headline-simple .word {
    display: inline-block;
    margin: 0 auto;
    text-align: center !important;
  }

  .hero-subtitle {
    font-size: 16px;
    line-height: 1.4;
  }

  .hero-ctas {
    width: 100%;
    display: flex;
    justify-content: flex-start;
  }
}
@media (max-width: 900px) {

  .hero-content {
    order: 1;
    max-width: 100%;
    margin: 0 auto;
    align-items: flex-start;
  }

  .hero-headline {
    font-size: 28px;
    line-height: 1.2;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
  }

  /* LEFT-ALIGN ROTATING TEXT ON MOBILE */
  .rotating-headline-simple {
    font-size: 32px;
    line-height: 1.15;
    text-align: left; 
  }

  .rotating-headline-simple .word {
    display: inline-block;
    margin: 0;
    text-align: left !important;
  }

  .hero-subtitle {
    font-size: 16px;
    line-height: 1.4;
  }

  .hero-ctas {
    width: 100%;
    display: flex;
    justify-content: flex-start;
  }
}


