/* Program Highlight Banner — frontend styles
 * Structural / responsive layout only. Colors, fonts, spacing are
 * controlled live from the Elementor Style tab via inline selectors.
 */

.phb-section {
	position: relative;
	width: 100%;
	box-sizing: border-box;
}

.phb-section * {
	box-sizing: border-box;
}

.phb-inner {
	display: flex;
	flex-direction: row;
	align-items: center;
	width: 100%;
}

.phb-layout-stacked .phb-inner {
	flex-direction: column;
	align-items: stretch;
}

.phb-layout-stacked .phb-content {
	flex-basis: 100% !important;
}

.phb-content {
	flex: 0 0 38%;
	min-width: 0;
}

.phb-cards {
	flex: 1;
	min-width: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	width: 100%;
}

/* Badge */
.phb-badge {
	display: inline-block;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	white-space: normal;
}

/* Title */
.phb-title {
	line-height: 1.2;
	word-wrap: break-word;
}

.phb-title-highlight {
	display: inline;
}

/* Meta row */
.phb-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}

.phb-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.phb-meta-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.phb-meta-icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.phb-meta-text {
	line-height: 1.3;
}

/* Button */
.phb-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
	line-height: 1.2;
}

.phb-button svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

/* Cards */
.phb-card {
	position: relative;
	min-width: 0;
}

.phb-card.phb-reveal {
	transition: opacity 0.6s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.phb-card-icon-box {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 14px;
	margin-bottom: 10px;
	overflow: hidden;
	border: 1px solid transparent;
	transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, backdrop-filter 0.25s ease;
}

.phb-card-icon {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	width: 100%;
	height: 100%;
	border-radius: 10px;
	overflow: hidden;
	transition: background-color 0.25s ease, color 0.25s ease, backdrop-filter 0.25s ease;
}

.phb-card-icon svg,
.phb-card-icon i {
	position: relative;
	z-index: 1;
	width: 1em;
	height: 1em;
	fill: currentColor;
}

/* Glossy effect: soft diagonal light-sheen overlay, layered above the
 * background/blur but below the icon glyph itself. */
.phb-icon-box-glossy-yes .phb-card-icon-box::before,
.phb-icon-glossy-yes .phb-card-icon::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.15) 45%, rgba(255, 255, 255, 0) 65%);
	pointer-events: none;
	z-index: 0;
}

.phb-card-title {
	line-height: 1.35;
}

.phb-card-desc {
	line-height: 1.5;
	margin-top: 6px;
}

/* Scroll reveal (IntersectionObserver driven) */
.phb-reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.phb-reveal.phb-in-view {
	opacity: 1;
	transform: translateY(0);
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
	.phb-reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}
	.phb-card {
		transition: none;
	}
}

/* -------------------------------------------------
 * Responsive fallback breakpoints
 * (Elementor's own responsive controls already emit
 * device-specific rules for columns / spacing based on
 * whatever breakpoints the site is configured with; these
 * are safety-net defaults for structural stacking.)
 * ------------------------------------------------- */
@media (max-width: 1024px) {
	.phb-inner {
		flex-direction: column;
		align-items: stretch;
	}

	.phb-content {
		flex-basis: 100% !important;
	}
}

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

	.phb-meta {
		flex-direction: column;
		align-items: flex-start;
	}

	.phb-button {
		width: 100%;
	}
}
