/* Site-wide TESDA training announcement */
.tesda-announcement {
	position: fixed;
	right: 28px;
	bottom: 28px;
	z-index: 1000;
	width: calc(100% - 32px);
	max-width: 410px;
	overflow: hidden;
	border: solid 1px rgba(0, 54, 121, 0.14);
	border-radius: 4px;
	background: #FFFFFF;
	box-shadow: 0 18px 50px rgba(0, 38, 84, 0.24);
	color: #212121;
	font-family: 'Open Sans', sans-serif;
	animation: tesdaAnnouncementIn 500ms ease-out both;
}

.tesda-announcement::before {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 5px;
	background: linear-gradient(90deg, #003679 0%, #003679 72%, #bc1a1a 72%, #bc1a1a 100%);
	content: '';
}

.tesda-announcement__inner {
	display: flex;
	align-items: flex-start;
	gap: 17px;
	padding: 25px 24px 23px;
}

.tesda-announcement__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 64px;
	width: 64px;
	height: 64px;
	margin-top: 2px;
	border: solid 1px #dae8ec;
	border-radius: 50%;
	background: #f5f9fa;
}

.tesda-announcement__logo img {
	display: block;
	width: 42px;
	height: 42px;
	object-fit: contain;
}

.tesda-announcement__content {
	min-width: 0;
	padding-right: 12px;
}

.tesda-announcement__eyebrow {
	display: flex;
	align-items: center;
	gap: 7px;
	margin-bottom: 6px;
	color: #bc1a1a;
	font-family: 'gill', sans-serif;
	font-size: 11px;
	font-weight: bold;
	letter-spacing: 0.13em;
	line-height: 1.3;
	text-transform: uppercase;
}

.tesda-announcement__eyebrow::before {
	width: 7px;
	height: 7px;
	flex: 0 0 7px;
	border-radius: 50%;
	background: #bc1a1a;
	box-shadow: 0 0 0 3px rgba(188, 26, 26, 0.12);
	content: '';
}

.tesda-announcement__title {
	margin: 0;
	color: #003679;
	font-family: 'gill', sans-serif;
	font-size: 25px;
	font-weight: bold;
	letter-spacing: -0.01em;
	line-height: 1.08;
}

.tesda-announcement__text {
	margin: 9px 0 0;
	color: #686868;
	font-size: 13px;
	line-height: 1.6;
}

.tesda-announcement__courses {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin-top: 13px;
}

.tesda-announcement__course {
	display: inline-flex;
	align-items: center;
	padding: 5px 9px;
	border: solid 1px #dae8ec;
	border-radius: 2px;
	background: #f5f9fa;
	color: #003679;
	font-size: 10px;
	font-weight: 700;
	line-height: 1.2;
}

.tesda-announcement__action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 42px;
	margin-top: 17px;
	padding: 10px 16px;
	background: #003679;
	color: #FFFFFF !important;
	font-family: 'gill', sans-serif;
	font-size: 12px;
	font-weight: bold;
	letter-spacing: 0.08em;
	line-height: 1;
	text-transform: uppercase;
	transition: background 200ms ease, transform 200ms ease;
}

.tesda-announcement__action::after {
	font-family: Arial, sans-serif;
	font-size: 16px;
	font-weight: normal;
	line-height: 1;
	content: '\2192';
}

.tesda-announcement__action:hover,
.tesda-announcement__action:focus {
	background: #bc1a1a;
	color: #FFFFFF;
	transform: translateY(-1px);
}

.tesda-announcement__action:focus,
.tesda-announcement__close:focus {
	outline: solid 3px rgba(0, 54, 121, 0.24);
	outline-offset: 2px;
}

.tesda-announcement__note {
	display: block;
	margin-top: 10px;
	color: #949494;
	font-size: 10px;
	line-height: 1.4;
}

.tesda-announcement__close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #7a7a7a;
	font-family: Arial, sans-serif;
	font-size: 21px;
	font-weight: 400;
	line-height: 1;
	cursor: pointer;
	transition: background 200ms ease, color 200ms ease;
}

.tesda-announcement__close:hover {
	background: #f5f9fa;
	color: #003679;
}

.tesda-announcement.is-closing {
	pointer-events: none;
	animation: tesdaAnnouncementOut 220ms ease-in both;
}

@keyframes tesdaAnnouncementIn {
	from {
		opacity: 0;
		transform: translateY(18px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes tesdaAnnouncementOut {
	to {
		opacity: 0;
		transform: translateY(12px);
	}
}

@media only screen and (max-width: 575px) {
	.tesda-announcement {
		right: 12px;
		bottom: 12px;
		width: calc(100% - 24px);
	}

	.tesda-announcement__inner {
		gap: 13px;
		padding: 22px 18px 19px;
	}

	.tesda-announcement__logo {
		flex-basis: 50px;
		width: 50px;
		height: 50px;
	}

	.tesda-announcement__logo img {
		width: 34px;
		height: 34px;
	}

	.tesda-announcement__content {
		padding-right: 5px;
	}

	.tesda-announcement__title {
		font-size: 21px;
	}

	.tesda-announcement__text {
		font-size: 12px;
		line-height: 1.5;
	}

	.tesda-announcement__course {
		font-size: 9px;
	}

	.tesda-announcement__action {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tesda-announcement,
	.tesda-announcement.is-closing,
	.tesda-announcement__action {
		animation: none;
		transition: none;
	}
}
