/* =========================================================
   NEWS TICKER BAR
   Sits directly under the hero on every page — wraps the
   Ditty News Ticker plugin's own output in a styled navy bar
   with a "Latest News" label. See endo_render_news_ticker()
   in functions.php.
   ========================================================= */

.endo-news-ticker {
	max-width: var(--endo-hero-max);
	margin: 0 auto;
	background: var(--endo-navy);
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.endo-news-ticker-inner {
	margin: 0 auto;
	padding: 0 24px;
	display: flex;
	align-items: center;
	gap: 18px;
	min-height: 44px;
}

.endo-news-ticker-label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--endo-gold);
	color: var(--endo-navy);
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: .3px;
	text-transform: uppercase;
	white-space: nowrap;
}
.endo-news-ticker-label .dashicons {
	font-size: 15px;
	width: 15px;
	height: 15px;
}

.endo-news-ticker-content {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	color: #E5E9F2;
	font-size: 14px;
}

/* Reset the plugin's own default list/anchor styling so it reads as
   part of this bar instead of its bare out-of-the-box appearance. */
.endo-news-ticker-content ul,
.endo-news-ticker-content ol {
	margin: 0;
	padding: 0;
	list-style: none;
}
.endo-news-ticker-content a {
	color: #fff;
	text-decoration: none;
}
.endo-news-ticker-content a:hover {
	color: var(--endo-gold);
	text-decoration: underline;
}

/* ---- Tablets & below ---- */
@media (max-width: 991px) {
	.endo-news-ticker-inner {
		padding: 0 16px;
		gap: 12px;
		min-height: 40px;
	}
	.endo-news-ticker-content { font-size: 13px; }
}

/* ---- Phones: icon-only label to leave more room for the ticker text ---- */
@media (max-width: 560px) {
	.endo-news-ticker-label-text {
		display: none;
	}
	.endo-news-ticker-label {
		padding: 6px 9px;
	}
}
