/* Announcement Bar - Premium 3-Column Layout */

.announcement_bar animated-background-text-colors {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #e5e5e5;
  transition: background-color 0.4s ease;
}

@media screen and (min-width: 992px) {
  .announcement_bar animated-background-text-colors {
    display: grid;
    grid-template-columns: minmax(0, 320px) 1fr minmax(0, 320px);
    grid-template-rows: auto;
    align-items: center;
    padding: 0 60px;
    min-height: 44px; /* Premium slim height */
  }
}

/* Vertical Center for everything */
.announcement_bar animated-background-text-colors > * {
  align-self: center;
}

/* Left Section: Social Icons */
.announcement-bar-left {
  grid-column: 1/2;
  grid-row: 1/2;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.announcement_bar ul#sm-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.announcement_bar ul#sm-icons li {
  margin: 0;
}

.announcement_bar ul#sm-icons a {
  display: flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
  color: inherit;
}

.announcement_bar ul#sm-icons a:hover {
  opacity: 0.6;
}

.announcement_bar ul#sm-icons svg {
  width: 18px;
  height: 18px;
}

/* Center Section: Announcements */
.announcement_block {
  grid-column: 2/3;
  grid-row: 1/2;
  width: 100%;
  text-align: center;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none; /* Disable interaction when hidden */
}

.announcement_block.active {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}

.announcement_wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  padding: 8px 15px;
  line-height: 1.4;
  font-weight: 500;
}

.announcement_wrapper strong,
.announcement_wrapper b {
    font-weight: 700;
}

.announcement_wrapper a {
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 600;
}

/* Right Section: Menu */
.announcement-bar-right {
  grid-column: 3/4;
  grid-row: 1/2;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.top-bar-menu {
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.top-bar-menu__link {
  font-size: 13px;
  color: inherit;
  text-decoration: none;
  font-weight: 400;
  transition: opacity 0.2s;
}

.top-bar-menu__link:hover {
  opacity: 0.7;
}

/* Mobile Styling */
@media screen and (max-width: 991px) {
  .announcement-bar-left,
  .announcement-bar-right {
    display: none;
  }
  
  .announcement_bar animated-background-text-colors {
    display: block;
    padding: 0;
  }
  
  .announcement_block {
    grid-column: 1/2;
    grid-row: 1/2;
  }
}

/* Responsive Visibility Helpers */
@media screen and (max-width: 767px) {
  .small-hide {
    display: none !important;
  }
}

@media screen and (min-width: 768px) {
  .medium-up-hide {
    display: none !important;
  }
}

/* Search Dropdown Z-Index Fix */
[data-search-dropdown-open] .announcement_bar {
  position: relative;
  z-index: 1001;
}