/* Fixed banner container */
.admission-banner {
  position: fixed;
  top: 100px; /* Position below the existing navbar */
  left: 0;
  width: 100%;
  height: 45px;
  background: linear-gradient(
    45deg,
    var(--primary-color),
    var(--heading-color)
  );
  z-index: 80;
  overflow: hidden;
  border-bottom: 3px solid var(--accent-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  display: block;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.admission-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* Running text container */
.running-text {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  animation: runningText 20s linear infinite;
}

/* Blinking text styling */
.blinking-text {
  font-size: 20px;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  letter-spacing: 1.5px;
  animation: blinking 3s ease-in-out infinite;
  padding: 0 50px;
}

/* Running animation */
@keyframes runningText {
  0% {
    transform: translateX(100vw) translateY(-50%);
  }
  100% {
    transform: translateX(-100%) translateY(-50%);
  }
}

/* Blinking animation */
@keyframes blinking {
  0%,
  50% {
    opacity: 1;
    transform: scale(1) translateY(-50%);
  }
  25% {
    opacity: 0.7;
    transform: scale(1.05) translateY(-50%);
  }
  75% {
    opacity: 0.3;
  }
}

/* Alternative glowing effect */
.admission-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: shine 5s infinite;
}

@keyframes shine {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Responsive design */
@media (max-width: 768px) {
  .blinking-text {
    font-size: 16px;
    letter-spacing: 1px;
  }

  body {
    padding-top: 125px;
  }

  .admission-banner {
    height: 40px;
    top: 70px;
  }
}

@media (max-width: 480px) {
  .blinking-text {
    font-size: 14px;
    letter-spacing: 0.5px;
  }

  body {
    padding-top: 120px;
  }

  .admission-banner {
    top: 80px;
    height: 35px;
  }
}
