/* Rotating Titles Banner Styles - Matching Design */
.rotating-titles {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.rotating-titles .container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.rotating-titles .intro-inner {
  text-align: center !important;
  color: white;
  max-width: none !important;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rotating-titles .rotating-titles-wrapper {
  position: relative;
  min-height: 120px;
}

.rotating-titles .rotating-title {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-in-out;
  color: #fff;
  width: 100%;
  text-align: center;
  font-size: 5rem;
  line-height: 5.5rem;
  font-weight: 700;
}

.rotating-titles .rotating-title.active {
  opacity: 1;
  transform: translateY(0);
}

.rotating-titles .static-description {
  font-size: 23px;
  font-weight: 300;
  color: #86c5ca;
  text-align: center;
  line-height: 1.4;
  max-width: 600px;
  margin: 0 auto;
  letter-spacing: 0.338px;
}

/* Background overlay for better text readability */
.rotating-titles::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.rotating-titles .container {
  position: relative;
  z-index: 2;
}

/* Animation for smoother transitions */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.rotating-titles .rotating-title.active {
  animation: fadeInUp 0.8s ease-in-out;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .rotating-titles .rotating-title {
    font-size: 4.5rem;
    line-height: 5rem;
  }

  .rotating-titles .static-description {
    font-size: 1.3rem;
  }

  .rotating-titles .rotating-titles-wrapper {
    min-height: 100px;
  }
}

@media (max-width: 768px) {
  .rotating-titles .rotating-title {
    font-size: 3rem;
    line-height: 3.5rem;
  }

  .rotating-titles .static-description {
    font-size: 1.1rem;
    padding: 0 10px;
  }

  .rotating-titles .rotating-titles-wrapper {
    min-height: 80px;
  }
}

@media (max-width: 480px) {
  .rotating-titles .rotating-title {
    font-size: 2.5rem;
    line-height: 3rem;
  }

  .rotating-titles .static-description {
    font-size: 1rem;
  }

  .rotating-titles .rotating-titles-wrapper {
    min-height: 70px;
  }
}
