/**
 * Newsroom Card Component — Styles
 *
 * All selectors are scoped under "newsroom-" prefixed class names to avoid
 * any conflict with existing theme/global styles.
 */

.newsroom-grid {
	--newsroom-border-color: #e5e7eb;
	--newsroom-text-primary: #111827;
	--newsroom-text-secondary: #6b7280;
	--newsroom-accent: #1d4ed8;
	--newsroom-card-bg: #ffffff;
	--newsroom-radius: 10px;
	--newsroom-gap: 24px;

	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--newsroom-gap);
	width: 100%;
	box-sizing: border-box;
}

.newsroom-grid__empty {
	color: var(--newsroom-text-secondary, #6b7280);
	font-style: italic;
}

.newsroom-card {
	display: flex;
	flex-direction: column;
	background-color: var(--newsroom-card-bg, #ffffff);
	border: 1px solid var(--newsroom-border-color, #e5e7eb);
	border-radius: var(--newsroom-radius, 10px);
	padding: 24px;
	box-sizing: border-box;
	font-family: inherit;
}

.newsroom-card__meta {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
	flex-wrap: wrap;
}

.newsroom-card__category {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--newsroom-accent, #1d4ed8);
}

.newsroom-card__meta-right {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 2px;
	text-align: right;
}

.newsroom-card__date,
.newsroom-card__read-time {
	font-size: 13px;
	line-height: 1.4;
	color: var(--newsroom-text-secondary, #6b7280);
}

.newsroom-card__title {
	font-size: 19px;
	line-height: 1.35;
	font-weight: 700;
	color: var(--newsroom-text-primary, #111827);
	margin: 0 0 12px 0;
}

.newsroom-card__excerpt {
	margin: 0 0 20px 0;
	flex-grow: 1;
}

.newsroom-card__excerpt p {
	font-size: 15px;
	line-height: 1.6;
	color: var(--newsroom-text-secondary, #6b7280);
	margin: 0;
}

.newsroom-card__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 600;
	color: var(--newsroom-accent, #1d4ed8);
	text-decoration: none;
	margin-top: auto;
	width: fit-content;
}

.newsroom-card__link:hover,
.newsroom-card__link:focus {
	text-decoration: underline;
}

.newsroom-card__arrow {
	display: inline-block;
	transition: transform 0.15s ease;
}

.newsroom-card__link:hover .newsroom-card__arrow,
.newsroom-card__link:focus .newsroom-card__arrow {
	transform: translateX(3px);
}
 .newsroom-card__excerpt {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}


/* =========================================================
   NEWSROOM SINGLE ARTICLE
   Hide Search + Recent Posts
   ========================================================= */

/* Hide Newsroom sidebar */
body.single-newsroom .hb-sidebar {
    display: none !important;
}

/* Make Newsroom article content full width */
body.single-newsroom .hb-main-content {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    border: none !important;
}


/* Also handle the Bootstrap/theme column class */
body.single-newsroom .hb-main-content.col-9 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
}


/* Remove the right-sidebar layout effect */
body.single-newsroom .main-row.right-sidebar {
    display: block !important;
}
/* -----------------------------------------------------------------------
 * Responsive breakpoints
 * Desktop: 3 columns (default above)
 * Tablet:  2 columns
 * Mobile:  1 column
 * ----------------------------------------------------------------------- */

@media (max-width: 1024px) {
	.newsroom-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 640px) {
	.newsroom-grid {
		grid-template-columns: 1fr;
	}

	.newsroom-card__meta {
		flex-wrap: wrap;
	}

	.newsroom-card__meta-right {
		align-items: flex-start;
		text-align: left;
	}
}
/* =========================================================
   NEWSROOM - HIDE SIDEBAR ON MAIN PAGE + SINGLE ARTICLES
   ========================================================= */

/* Newsroom single article */
.main-row:has(article.type-newsroom) .hb-sidebar {
    display: none !important;
}

/* Make Newsroom article full width */
.main-row:has(article.type-newsroom) .hb-main-content {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    border: none !important;
}


/* Remove right-sidebar layout */
.main-row:has(article.type-newsroom) {
    display: block !important;
}