/* Announcement Bar Base Styles */
.announcement-bar {
  background: linear-gradient(90deg, #4360ed 0%, #9fc8ff 100%);
  color: white;
  padding: 12px 0;
  overflow: hidden;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

/* Scrolling Text Container */
.scrolling-text {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

/* Scrolling Content Animation */
.scroll-content {
  display: inline-block;
  animation: announcement-scroll 25s linear infinite;
  padding-left: 100%;
  white-space: nowrap;
  font-size: 0.95em;
  line-height: 1.5;
}

/* Keyframes for Infinite Scroll */
@keyframes announcement-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* Contact Elements Styling */
.call-now, .whatsapp-us {
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 20px;
}

.announcement-phone-link,
.announcement-whatsapp-link {
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
}

/* Hover Effects */
.announcement-phone-link:hover,
.announcement-whatsapp-link:hover {
  opacity: 0.9;
  text-decoration: none;
}

.announcement-whatsapp-icon {
  width: 22px;
  height: 22px;
  vertical-align: middle;
  margin-left: 8px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.announcement-whatsapp-link:hover .announcement-whatsapp-icon {
  transform: scale(1.15);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .scroll-content {
    font-size: 0.9em;
    animation-duration: 20s;
  }
}

@media (max-width: 768px) {
  .announcement-bar {
    padding: 10px 0;
  }
  
  .scroll-content {
    font-size: 0.85em;
    animation-duration: 18s;
  }
  
  .call-now, .whatsapp-us {
    margin: 0 12px;
    gap: 6px;
  }
  
  .announcement-whatsapp-icon {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 600px) {
  .scroll-content {
    font-size: 0.8em;
    animation-duration: 15s;
  }
  
  .call-now span:not(.announcement-phone-link),
  .whatsapp-us span:not(.announcement-whatsapp-link) {
    display: none;
  }
  
  .call-now::after {
    content: "Call Now!";
    margin-left: 4px;
  }
  
  .whatsapp-us::after {
    content: "Chat Now!";
    margin-left: 4px;
  }
}

@media (max-width: 480px) {
  .scroll-content {
    font-size: 0.75em;
    animation-duration: 12s;
  }
  
  .call-now, .whatsapp-us {
    margin: 0 8px;
  }
  
  .announcement-whatsapp-icon {
    width: 18px;
    height: 18px;
    margin-left: 4px;
  }
}

@media (max-width: 360px) {
  .scroll-content {
    font-size: 0.7em;
  }
  
  .call-now::after,
  .whatsapp-us::after {
    content: "";
  }
  
  .call-now::before,
  .whatsapp-us::before {
    margin-right: 2px;
  }
}