/* =====================================================================
   Messages On Hold — News section styles
   Place in:  salient-child/news.css
   Loaded only on news pages (see inc/news-functions.php).
   Layout is handled by Bootstrap 4 (already enqueued globally); this file
   only "skins" the news components. Everything is namespaced under .news-*
   so it won't leak into the rest of the Salient theme.
   ===================================================================== */

@font-face {
	font-family: 'Montserrat';
	src: url('/wp-content/themes/salient-child/fonts/Montserrat-Black.woff2') format('woff2');
	font-weight: 900;
	font-style: normal;
}
@font-face {
	font-family: 'Oswald';
	src: url('/wp-content/themes/salient-child/fonts/Oswald-Regular.woff2') format('woff2');
	font-weight: normal;
	font-style: normal;
}

:root {
	--news-black:      #0a0a0a;
	--news-red:        #990000;   /* nav bar + accents */
	--news-red-dark:   #8f040b;
	--news-panel:      #111315;   /* dark hero/overlay panels */
	--news-ink:        #14181b;   /* headings on light bg */
	--news-muted:      #6c757d;   /* secondary text */
	--news-panel-text: #d5d8da;   /* text inside dark panels */
	--news-border:     #e6e6e6;
	--news-promo:      #111315;
}

/* Optional: for the heavy condensed logo/headings in the mockup you can
   load a font such as Anton or Oswald and map it here. Falls back cleanly
   to the theme/system stack if you don't.
   @import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;700&display=swap');
   --news-display: 'Oswald', sans-serif; */

.news-wrap {
	padding: 20px;
	background-color: #fff;
}

/* ---------------------------------------------------------------------
   MASTHEAD + NAV
   --------------------------------------------------------------------- */
.news-masthead__bar {
	background: var(--news-black);
	padding: 22px 0;
	font-family: 'Montserrat';
}

.news-masthead__bar .container {
	justify-content: center;
}

.news-masthead__logo {
	color: #fff;
	font-weight: 900;
	font-size: clamp(1.8rem, 4vw, 3.2rem);
	letter-spacing: 1px;
	line-height: 1;
	text-transform: uppercase;
	text-decoration: none;
}
.news-masthead__logo:hover { color: #fff; text-decoration: none; }

/* Hamburger */
.news-masthead__toggle {
	background: none;
	border: 0;
	padding: 6px;
	cursor: pointer;
	display: none;
}
.news-masthead__toggle span {
	display: block;
	width: 28px;
	height: 3px;
	margin: 5px 0;
	background: #fff;
	border-radius: 2px;
}

.news-nav {
	background: var(--news-red);
	position: relative;
	z-index: 11;
}
.news-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
}
.news-nav__list li a {
	display: inline-block;
	padding: 14px 30px;
	color: #fff;
	font-weight: 600;
	text-decoration: none;
}
.news-nav__list li a:hover { text-decoration: underline !important; }
.news-nav__list li.active a,
.news-nav__list li.current-menu-item a { text-decoration: underline; }

/* ---------------------------------------------------------------------
   TAB BAR (homepage only)
   --------------------------------------------------------------------- */
.news-tabs {
	display: flex;
	align-items: stretch;
	background: var(--news-panel);
	border-radius: 8px;
	overflow: hidden;
	margin-bottom: 28px;
}
.news-tabs__tab {
	padding: 0px 20px;
	color: #fff;
	font-size: 1.25rem;
	font-weight: 700;
}
.news-tabs__tab--active {
	background: var(--news-red);
	display: flex;
	align-items: center;
	justify-content: center;
}
.news-tabs__divider {
	width: 2px;
	background: rgba(255, 255, 255, 0.75);
	margin: 12px 0;
}

/* ---------------------------------------------------------------------
   HERO CARD (image + dark overlay panel)
   --------------------------------------------------------------------- */
.news-hero {
	display: flex;
	background: var(--news-panel);
	border-radius: 10px;
	overflow: hidden;
	margin-bottom: 28px;
	align-items: flex-start;
	padding: 20px;
}
.news-hero__media {
	flex: 0 0 50%;
	max-width: 50%;
	display: block;
	aspect-ratio: 16 / 9;
}
.news-hero__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.news-hero__panel {
	flex: 1 1 auto;
	padding: 0px 30px;
	color: var(--news-panel-text);
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.news-hero__title {
	margin: 0 0 14px;
	font-size: clamp(1rem, 1.2vw, 1.5rem);
	font-weight: 800;
	line-height: 1.25;
}
.news-hero__title a { color: #fff; text-decoration: none; }
.news-hero__title a:hover { color: #fff; text-decoration: underline; }
.news-hero__excerpt {
	margin: 0px;
	font-size: 1rem;
	line-height: 1.5;
	color: var(--news-panel-text);
}
.news-hero__byline {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: rgba(255, 255, 255, 0.08);
	border-radius: 30px;
	padding: 3px 14px 3px 6px;
	font-size: 0.95rem;
	color: #fff;
	align-self: flex-start;
}

.news-byline__avatar {
	border-radius: 50%;
	display: block;
}

/* ---------------------------------------------------------------------
   2x2 GRID OF SMALL CARDS
   --------------------------------------------------------------------- */
.news-grid {
	margin-bottom: 0px;
}
.news-grid__col {
	margin-bottom: 22px;
}
.news-card {
	display: flex;
	gap: 16px;
	align-items: center;
}
.news-card__thumb {
	flex: 0 0 140px;
	max-width: 140px;
	display: block;
	background: var(--news-panel);
	border-radius: 6px;
	overflow: hidden;
	aspect-ratio: 16 / 9;
}
.news-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.news-card__body { flex: 1 1 auto; }
.news-card__cat {
	display: block;
	color: var(--news-red);
	font-weight: 700;
	font-size: 0.85rem;
	margin-bottom: 6px;
	font-weight: normal;
}
.news-card__title {
	display: block;
	color: var(--news-ink);
	font-weight: 600;
	font-size: 1.05rem;
	line-height: 1.3;
	text-decoration: none;
}
.news-card__title:hover { color: var(--news-red); text-decoration: none; }

/* ---------------------------------------------------------------------
   SIDEBAR — THE LATEST + PROMO
   --------------------------------------------------------------------- */
.news-sidebar__title {
	font-size: 1.8rem;
	font-weight: 800;
	color: var(--news-ink);
	margin-bottom: 18px;
}
.news-latest {
	list-style: none;
	margin: 0 0 28px;
	padding: 0;
}
.news-latest__item {
	display: flex;
	gap: 12px;
	padding: 14px 0;
	border-bottom: 1px solid var(--news-border);
}
.news-latest__item:first-child { padding-top: 0; }
.news-latest__bullet {
	flex: 0 0 10px;
	width: 10px;
	height: 10px;
	margin-top: 8px;
	background: var(--news-red);
}
.news-latest__meta {
	display: flex;
	gap: 25px;
	margin-bottom: 4px;
}
.news-latest__cat { color: var(--news-black); font-weight: 600; font-size: 0.9rem; }
.news-latest__time { color: var(--news-black); font-size: 0.9rem; }
.news-latest__headline {
	display: block;
	color: var(--news-ink);
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
	font-size: 1.05rem;
}
.news-latest__headline:hover { color: var(--news-red); text-decoration: none; }

.news-promo {
	background: var(--news-promo);
	border-radius: 8px;
	min-height: 320px;          /* placeholder height until you add the promo */
	display: flex;
	align-items: center;
	justify-content: center;
}

.news-promo .product-tile {
	padding: 30px;
}
.news-promo .product-image {
	text-align: center;
}
.news-promo .product-image img {
	width: 90%;
	padding: 20px 0px;
}
.news-promo .title-square {
	margin-bottom: 0px;
	color: #fff;
	font-size: 35px;
	text-align: center;
	padding-bottom: 0px;
	font-weight: bold;
	line-height: 1;
	text-transform: uppercase;
	background: linear-gradient(180deg, #fff, #989898);
	font-family: 'Oswald';
}
.news-promo .title-square .title-red {
	background: linear-gradient(180deg, #ff9999, #ff0000);
}
.news-promo .title-square,
.news-promo .title-square .title-red {
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}
/* ---------------------------------------------------------------------
   ARTICLE PAGE
   --------------------------------------------------------------------- */
.news-article { max-width: 760px; }
.news-article__cat {
	display: inline-block;
	color: var(--news-red);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 8px;
}
.news-article__title {
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 800;
	line-height: 1.1;
	color: var(--news-ink);
	margin: 0 0 16px;
}
.news-article__byline {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 24px;
	color: var(--news-ink);
}
.news-article__author { font-weight: 600; }
.news-article__meta { color: var(--news-ink); }
.news-article__ago { color: var(--news-red); font-weight: 700; }

.news-article__featured { margin: 0 0 10px; display: none }
.news-article__featured img { width: 100%; height: auto; border-radius: 6px; display: block; }
.news-article__caption {
	font-style: italic;
	font-size: 0.95rem;
	color: #333;
	margin: 10px 0 26px;
}

.news-article__content {
	font-size: 1.12rem;
	line-height: 1.7;
	color: #1d2125;
}
.news-article__content p { margin: 0 0 1.3em; }
.news-article__content img { max-width: 100%; height: auto; border-radius: 6px; }
.news-article__content figcaption {
	font-style: italic;
	font-size: 0.95rem;
	color: #333;
	margin-top: 8px;
}

/* Share button */
.news-article__share { margin: 40px 0 10px; }
.news-share-btn {
	display: block;
	width: 100%;
	max-width: 620px;
	margin: 0 auto;
	padding: 20px;
	background: var(--news-black);
	color: #fff;
	border: 0;
	border-radius: 8px;
	font-size: 1.6rem;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	cursor: pointer;
}
.news-share-btn:hover { background: #000; }

/* Related (optional) */
.news-related { margin-top: 44px; }
.news-related__title {
	font-size: 1.6rem;
	font-weight: 800;
	color: var(--news-ink);
	margin-bottom: 18px;
}

/* ---------------------------------------------------------------------
   FOOTER
   --------------------------------------------------------------------- */
.news-footer {
	background: var(--news-black);
	color: #cfcfcf;
	padding: 40px 0;
}
.news-footer__logo {
	color: #fff;
	font-weight: 900;
	text-transform: uppercase;
	font-size: 1.6rem;
	letter-spacing: 1px;
}
.news-footer__copy { margin: 0; font-size: 0.9rem; }

/* --- Social share bar --- */
.news-share {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 40px 0 10px;
}
.news-share .news-share__label {
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: var(--news-ink);
}
.news-share .news-share__list {
	display: flex;
	gap: 12px;
	list-style: none;
	margin: 0;
	padding: 0 !important;
}
.news-share .news-share__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 35px;
	height: 35px;
	border-radius: 50%;
	background: var(--news-black);
	color: #fff;
	text-decoration: none;
	transition: background-color .15s ease, transform .15s ease;
}
.news-share .news-share__link:hover {
	color: #fff;
	text-decoration: none;
	transform: translateY(-2px);
}
.news-share .news-share__link svg { width: 20px; height: 20px; display: block; }

/* Brand colour on hover */
.news-share .news-share__link--facebook:hover { background: #1877F2; }
.news-share .news-share__link--twitter:hover  { background: #000000; }
.news-share .news-share__link--linkedin:hover { background: #0A66C2; }

#countdown-ticker {
	display: inline-block;
	line-height: 1;
	padding: 5px;
	font-size: 40px;
}
#countdown-ticker .ticker-text {
	display: inline-block;
	font-size: 20px;
	color: white;
	font-weight: 200 !important;
	margin-left: 5px;
}
#countdown-ticker .ticker {
	font-size: 30px;
	float: left;
	padding: 0 10px;
	font-weight: 600;
}

#ajax-content-wrap {
	background-color: #fff;
}

/* ---------------------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------------------- */
@media (max-width: 991px) {
	/* Sidebar drops below content; add breathing room */
	.news-sidebar { margin-top: 36px; }
}

@media (max-width: 767px) {
	.news-masthead__bar .container,
	.news-nav .container,
	.news-wrap .container {
		max-width: none !important;
	}
	/* Hero stacks: image on top, panel below */
	.news-hero { flex-direction: column; }
	.news-hero__media,
	.news-hero__panel { flex: 1 1 auto; max-width: 100%; }
	.news-hero__media { aspect-ratio: 16 / 9; }

	.news-nav__list { justify-content: flex-start; gap: 4px 18px; }
	.news-tabs { flex-wrap: wrap; }

	.news-tabs__tab { padding: 0px 10px; }

	.news-tabs__tab--active { width: 100%; }

	.news-nav__list li a { padding: 10px; }

	#countdown-ticker .ticker { font-size: 20px; }
	#countdown-ticker .ticker-text { font-size: 15px; }
}

@media (max-width: 575px) {
	.news-card__thumb { flex-basis: 96px; max-width: 96px; }
	.news-share-btn { font-size: 1.25rem; padding: 16px; }
}
