/* Layout: place label before ticker inline */
.news-story-header {
  box-shadow: 0 0 0px rgba(255, 255, 255, 0.3), 0 0 20px rgba(255, 255, 255, 0.2), 0 0 40px rgba(255, 255, 255, 0.1);
}

.news-story-header .container {
  display: flex;
  align-items: center;
  gap: 0;
}

.news-story-header .news-title {
  display: flex;
  align-items: center;
  white-space: nowrap;
  width: max-content;
  flex: 0 0 auto; /* prevent shrinking/overlap */
}

.news-story-header .news-title .news-content-icon {
  width: 28px;
  height: 28px;
  margin-right: 10px;
  display: inline-block;
  object-fit: contain;
}

/* .news-story-header .news-divider {
    color: rgba(255,255,255,0.7);
    margin: 0 16px;
    display: inline-block;
} */

.news-story-header .news-title .news-content-text {
  font-weight: 600;
  color: white;
  font-size: 16px;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.news-story-header .news-title .btn {
  color: #ffffff;
  font-weight: 700;
  line-height: 1;
}

/* Divider after the static label (border-based for reliability) */
.news-story-header .news-title.news-content {
  position: static;
  padding-right: 0;
  margin-right: 0;
}

/* Ticker should take remaining space */
.news-story-header .news-story-inner {
  flex: 1 1 auto;
  min-width: 0; /* allow slick to shrink inside flex */
}

/* Make slides text look consistent */
.news-story-header .news-story-inner .news-title .btn {
  color: #ffffff;
  font-weight: 400;
}



/* Small screens */
@media screen and (max-width: 767px) {
  .news-story-header .container {
    gap: 10px;
  }
  .news-story-header .news-title.news-content {
    padding-right: 0;
    margin-right: 0;
  }
  .news-story-header.has-content-link .news-story-inner {
    display: none;
  }

  .news-story-header .container {
    height: 100%;
  }

  .news-story-header .news-title .btn {
    padding: 8px 5% 8px 0;
    font-size: 11px;
    display: flex;
    /* line-height: 1.27; */
    justify-content: flex-end;
  }

  /* Show right arrow icon on mobile for header label/link */
  .news-story-header.has-content-link .news-title a.news-content-text::after {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-left: 6px;
    background-image: url("/wp-content/themes/vts/assets/images/ic-arrow-circle-white.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    vertical-align: middle;
    line-height: 1;
    pointer-events: none;
  }
}

/* RTL support: draw divider on the left */
[dir="rtl"] .news-story-header .news-title.news-content {
  padding-right: 0;
  margin-right: 0;
}

/* Use border on the ticker container to avoid overlap */
.news-story-header .news-story-inner {
  position: relative;
  flex: 1 1 auto;
  min-width: 0; /* allow slick to shrink inside flex */
  overflow: hidden; /* avoid overlapping the label */
  padding-left: 16px;
  margin-left: 16px;
}

.news-story-header .news-story-inner::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 1.2em; /* matches text height */
  background: rgba(255, 255, 255, 0.5);
}

[dir="rtl"] .news-story-header .news-story-inner {
  padding-left: 0;
  margin-left: 0;
  padding-right: 16px;
  margin-right: 16px;
}

[dir="rtl"] .news-story-header .news-story-inner::before {
  left: auto;
  right: 0;
}

/* Small screens override: remove left margin on the ticker */
@media screen and (max-width: 767px) {
  .news-story-header .news-story-inner {
    margin-left: 0;
  }
  .news-story-header .news-title .news-content-text {
    font-size: 14px;
  }
}
