/**
 * Sponsored Spotlight component styles (frontend name for the
 * "Sponsored Ad" CPT - kept off-the-record here to avoid ad-blocker
 * filter lists that match on "ad" in class names, ids, and file names).
 * Layouts: Compact Banner (blog sidebar), Sticky Bottom Strip, Full Width Strip.
 * Values mirror the staging (Advanced Ads) designs.
 * Enqueued only when a Sponsored Ad is actually going to render
 * (see govacademy_enqueue_sponsored_ad_assets()).
 */

.sponsored-spotlight,
.sponsored-spotlight *,
.sponsored-spotlight *::before,
.sponsored-spotlight *::after {
	box-sizing: border-box;
}

/* Shared title / CTA */
.sponsored-spotlight,
.sponsored-spotlight * {
	font-family: Mulish, sans-serif;
}

.sponsored-spotlight__title {
	margin: 0;
	font-weight: 600;
	line-height: 1.2;
}

.sponsored-spotlight__title-highlight {
	font-style: normal;
	color: #008080;
}

.sponsored-spotlight .sponsored-spotlight__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 12px 24px;
	border-radius: 3px;
	font-size: 15px;
	font-weight: 500;
	line-height: 15px;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.2s ease;
}

.sponsored-spotlight .sponsored-spotlight__cta svg {
	width: 15px;
	height: 15px;
	flex-shrink: 0;
}

.sponsored-spotlight .sponsored-spotlight__cta-icon {
	font-style: normal;
}

.sponsored-spotlight .sponsored-spotlight__cta-icon svg {
	display: inline;
	vertical-align: baseline;
}

/* ---------------------------------------------------------------- */
/* Compact Banner (blog sidebar card)                                 */
/* ---------------------------------------------------------------- */
.sponsored-spotlight-popup {
	display: block;
	max-width: 500px;
	margin: 0 15px;
	padding: 12px 12px 32px 20px;
	border-radius: 8px;
	background: #eff6ff;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.sponsored-spotlight-popup.is-visible {
	opacity: 1;
}

.sponsored-spotlight-popup.is-dismissed {
	opacity: 0;
}

.sponsored-spotlight-popup__header {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 12px;
}

.sponsored-spotlight-popup .sponsored-spotlight-popup__close {
	display: block;
	padding: 6px;
	background: none;
	border: none;
	border-radius: 0;
	color: #404041;
	line-height: normal;
	cursor: pointer;
}

.sponsored-spotlight-popup .sponsored-spotlight-popup__close svg {
	display: inline;
	vertical-align: baseline;
}

.sponsored-spotlight-popup .sponsored-spotlight-popup__close:hover,
.sponsored-spotlight-popup .sponsored-spotlight-popup__close:focus {
	background: none;
	color: #000;
}

.sponsored-spotlight-popup__image {
	display: block;
	width: 104px;
	height: 58px;
	object-fit: cover;
}

.sponsored-spotlight-popup .sponsored-spotlight__title {
	margin: 24px 0 8px;
	color: #053056;
	font-size: 20px;
	font-weight: 600;
	line-height: 120%;
}

.sponsored-spotlight-popup .sponsored-spotlight-popup__description {
	margin: 0 0 24px;
	color: #404041;
	font-size: 17px;
	font-weight: 400;
	line-height: 120%;
}

.sponsored-spotlight-popup .sponsored-spotlight__cta {
	align-items: flex-start;
	gap: 5px;
	background-color: #008080;
	color: #fff;
}

.sponsored-spotlight-popup .sponsored-spotlight__cta:hover,
.sponsored-spotlight-popup .sponsored-spotlight__cta:focus {
	background-color: #008080;
	color: #fff;
}

/* ---------------------------------------------------------------- */
/* Sticky Bottom Strip                                                */
/* ---------------------------------------------------------------- */
.sponsored-spotlight-sticky {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 10001;
	font-family: Mulish, sans-serif;
	transform: translateY(100%);
	transition: transform 0.5s ease-out;
}

.sponsored-spotlight-sticky.is-visible {
	transform: translateY(0);
}

.sponsored-spotlight-sticky.is-dismissed {
	transform: translateY(100%);
}

.sponsored-spotlight-sticky__label {
	position: absolute;
	top: 8px;
	right: 8px;
	color: #404041;
	font-size: 12px;
	font-weight: 600;
	line-height: 120%;
	padding: 2px 8px;
	border-radius: 4px;
	z-index: 10;
}

.sponsored-spotlight-sticky__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 84px;
	max-width: 100%;
	padding: 12px 20px;
	background: linear-gradient(to right, #ffffff 0%, #f8f9fa 100%);
	border-top: 1px solid #e0e0e0;
	box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.15);
}

@media (min-width: 768px) {
	.sponsored-spotlight-sticky__bar {
		padding: 32px 20px;
	}
}

.sponsored-spotlight-sticky__content {
	display: flex;
	align-items: center;
	gap: 24px;
	flex: 1;
	max-width: 1200px;
	padding-left: 80px;
	min-width: 0;
}

.sponsored-spotlight-sticky__image {
	width: 104px;
	height: 58px;
	display: block;
	object-fit: cover;
	flex-shrink: 0;
}

.sponsored-spotlight-sticky__text {
	flex: 1;
	min-width: 0;
}

.sponsored-spotlight-sticky .sponsored-spotlight__title {
	display: inline;
	color: #053056;
	font-size: 20px;
	line-height: 120%;
}

.sponsored-spotlight-sticky .sponsored-spotlight__title-highlight {
	display: inline;
	margin: 0;
	color: #008080;
	font-size: 20px;
	font-weight: 600;
	cursor: default;
}

.sponsored-spotlight-sticky__description {
	color: #404041;
	font-size: 17px;
	font-weight: 400;
	line-height: 120%;
	margin: 4px 0 0;
}

.sponsored-spotlight-sticky__actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
}

.sponsored-spotlight-sticky .sponsored-spotlight__cta {
	display: flex;
	align-items: center;
	justify-content: normal;
	max-width: 100%;
	gap: 6px;
	background-color: #0d7d8f;
	color: #fff;
	padding: 12px 24px;
	border-radius: 3px;
	font-size: 15px;
	font-weight: 500;
	line-height: 15px;
	white-space: nowrap;
}

.sponsored-spotlight-sticky .sponsored-spotlight__cta:hover,
.sponsored-spotlight-sticky .sponsored-spotlight__cta:focus {
	background-color: #0a6675;
	color: #fff;
	opacity: 1;
}

.sponsored-spotlight-sticky .sponsored-spotlight__cta svg {
	width: 15px;
	height: 15px;
	flex-shrink: 0;
}

.sponsored-spotlight-sticky__close {
	background: none;
	border: none;
	color: #666;
	font-size: 24px;
	line-height: 1;
	padding: 4px 8px;
	cursor: pointer;
	flex-shrink: 0;
	transition: color 0.2s;
}

.sponsored-spotlight-sticky__close:hover {
	color: #000;
}

/* ---------------------------------------------------------------- */
/* Full Width Strip                                                   */
/* ---------------------------------------------------------------- */
.sponsored-spotlight-full {
	width: 100%;
	margin-block: 30px;
	border-top: 1px solid #053056;
	border-radius: 8px;
	background: linear-gradient(89deg, #053056 -2.21%, #008080 90.29%);
	color: #fff;
}

.sponsored-spotlight-full__inner {
	padding: 24px 32px;
}

@media (min-width: 768px) {
	.sponsored-spotlight-full__inner {
		padding: 32px 60px;
	}
}

.sponsored-spotlight-full .sponsored-spotlight__title {
	max-width: 605px;
	margin: 0 0 8px;
	color: #fff;
	font-size: 24px;
	font-weight: 700;
	line-height: 120%;
}

@media (min-width: 768px) {
	.sponsored-spotlight-full .sponsored-spotlight__title {
		font-size: 28px;
	}
}

.sponsored-spotlight-full .sponsored-spotlight__title-highlight {
	color: #f8b81f;
}

.sponsored-spotlight-full .sponsored-spotlight-full__description {
	margin: 0;
	color: #fff;
	font-size: 17px;
	font-weight: 400;
	line-height: 120%;
}

.sponsored-spotlight-full .sponsored-spotlight__cta {
	gap: 5px;
	margin-top: 24px;
	background-color: #fff;
	color: #053056;
	text-align: center;
	transition: all 0.3s ease;
}

.sponsored-spotlight-full .sponsored-spotlight__cta:hover,
.sponsored-spotlight-full .sponsored-spotlight__cta:focus {
	background-color: #ffffffa8;
	color: #053056;
}

/* ---------------------------------------------------------------- */
/* Responsive                                                         */
/* ---------------------------------------------------------------- */
@media (max-width: 768px) {
	.sponsored-spotlight-sticky__bar {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
		padding: 16px;
	}

	.sponsored-spotlight-sticky__content {
		flex-direction: column;
		align-items: flex-start;
		width: 100%;
		padding-left: 0;
	}

	.sponsored-spotlight-sticky .sponsored-spotlight__title,
	.sponsored-spotlight-sticky .sponsored-spotlight__title-highlight {
		font-size: 18px;
	}

	.sponsored-spotlight-sticky__description {
		font-size: 15px;
	}

	.sponsored-spotlight-sticky__actions {
		justify-content: space-between;
		width: 100%;
	}
}

@media (max-width: 480px) {
	.sponsored-spotlight-sticky__image {
		width: 80px;
		height: 45px;
	}

	.sponsored-spotlight-sticky .sponsored-spotlight__title,
	.sponsored-spotlight-sticky .sponsored-spotlight__title-highlight {
		font-size: 16px;
	}

	.sponsored-spotlight-sticky__description {
		font-size: 14px;
	}

	.sponsored-spotlight-sticky .sponsored-spotlight__cta {
		font-size: 12px;
		padding: 6px 16px;
	}
}
