/* Super Simple Tagline Animation */
.animated-taglines {
    position: relative;
    min-height: 80px;
    margin-bottom: 3rem;
    width: 100%;
    z-index: 100;
    padding: 25px;
    border-radius: 10px;
    height: 40px;
    margin-bottom: 3rem;
    text-align: center;
}

/* Base styles for all taglines */
.tagline {
    display: none; /* Hide all by default */
    margin: 0;
    padding: 0;
    width: 100%;
    text-align: center;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(0,0,0,1);
    font-weight: bold;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    width: 100%;
    text-align: center;
    font-size: 1.25rem;
    transform: translateY(20px);
}

  .tagline:nth-child(1) {
    animation: fadeInOut 16s ease infinite 0s;
  }
  .tagline:nth-child(2) {
    animation: fadeInOut 16s ease infinite 4s;
  }
  .tagline:nth-child(3) {
    animation: fadeInOut 16s ease infinite 8s;
  }
  .tagline:nth-child(4) {
    animation: fadeInOut 16s ease infinite 12s;
  }


/* Show the first tagline by default */
.tagline:nth-child(1) {
    display: block;
}

/* Animation using a simple CSS animation approach */
@keyframes cycleTaglines {
    0%, 24% {
        display: none;
        opacity: 0;
    }
    25%, 49% {
        display: block;
        opacity: 1;
    }
    50%, 100% {
        display: none;
        opacity: 0;
    }
}

/* Apply animations with proper timing */
.tagline:nth-child(1) {
    animation: cycleTaglines 16s infinite 0s;
}

.tagline:nth-child(2) {
    animation: cycleTaglines 16s infinite 4s;
}

.tagline:nth-child(3) {
    animation: cycleTaglines 16s infinite 8s;
}

.tagline:nth-child(4) {
    animation: cycleTaglines 16s infinite 12s;
}

/* Container and overlay styles */
.animated-text-container {
    z-index: 10;
    position: relative;
}

.home-video-overlay {
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.4); /* Semi-transparent overlay */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .animated-taglines {
        min-height: 70px;
        padding: 15px;
        margin-bottom: 2rem;
    }
    
    .tagline {
        font-size: 1.3rem;
        padding: 0 5px;
    }
}

@media (max-width: 576px) {
    .animated-taglines {
        min-height: 60px;
        padding: 10px;
        margin-bottom: 1.5rem;
    }
    
    .tagline {
        font-size: 1.1rem;
    }
}
