/* =====================================================================
   Featured popup + trending sidebar overlay
   Markup: template-parts/featured-popup.php
   JS:     assets/js/featured-popup.js
   ===================================================================== */

/* Scroll lock + sidebar overlay styles live in the footer snippet (all pages). */

/* ---------- Featured popup: overlay ---------- */
#featuredcustom {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background-color: rgba(0, 0, 0, .6);
	backdrop-filter: blur(10px);
	visibility: hidden;
	opacity: 0;
	transition: opacity .35s ease, background-color .5s ease;
}
#featuredcustom.is-open {
	visibility: visible;
	opacity: 1;
}
#featuredcustom.is-closing {
	background-color: rgba(0, 0, 0, 0);
}

/* ---------- Close button (reset theme button styles) ---------- */
#featuredcustom .fcPopupClose {
	position: absolute;
	top: 20px;
	right: 20px;
	box-sizing: border-box;
	width: 40px !important;
	height: 40px !important;
	min-width: 0 !important;
	max-width: none;
	padding: 0 !important;
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	border: 0 !important;
	border-radius: 50% !important;
	background: #fff !important;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
	transition: transform .2s ease, opacity .25s ease;
}
#featuredcustom .fcPopupClose:before {
	background: none;
}
#featuredcustom .fcPopupClose:hover:before {
	background: none;
}
#featuredcustom .fcPopupClose:hover {
	transform: rotate(90deg);
}
#featuredcustom .fcPopupClose svg {
	display: block;
	width: 18px;
	height: 18px;
}
#featuredcustom.is-closing .fcPopupClose {
	opacity: 0;
}

/* ---------- Card ---------- */
#featuredcustom .fcPopupCard {
	position: relative;
	box-sizing: border-box;
	width: 100%;
	max-width: 411px;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	background: #fff;
	padding: 20px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
	will-change: transform, opacity;
	overscroll-behavior: contain; /* scrolling inside the card never moves the page */
	border-radius: 24px;
	border: 1px solid  #99C9FF;
	box-shadow: 0 4px 46px 0 rgba(0, 0, 0, 0.10);
}

#featuredcustom .fcPopupImage {
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: 12px;
	overflow: hidden;
	background: #eef2f7;
	height:208px;
}
#featuredcustom .fcPopupImage img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	/* object-fit: cover; */
	object-fit: initial;
}

#featuredcustom .fcPopupBody {
	padding: 8px 0px 4px;
}
#featuredcustom .fcPopupTitle {
	margin: 0 0 8px;
	padding: 0;
	color: #000;
	font-family: Lato;
	font-size: 24px;
	font-style: normal;
	font-weight: 800;
	line-height: 140%; /* 33.6px */
}
#featuredcustom .fcPopupText {
	margin: 0;
	/* display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical; */
	overflow: hidden;
	color:  #5B5B5B;
	font-family: Lato;
	font-size: 16px;
	font-style: normal;
	font-weight: 400;
	line-height: 140%; /* 22.4px */
}

#featuredcustom .fcPopupMeta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 14px;
	color:  #1E1919;
	font-family: Lato;
	font-size: 14px;
	font-style: normal;
	font-weight: 400;
	line-height: 150%; 
}
#featuredcustom .fcPopupMeta span {
	display: inline-flex;
	align-items: start;
	gap: 5px;
}
#featuredcustom .fcPopupMeta img,
#featuredcustom .fcPopupMeta svg {
	width: 24px;
	height: 24px;
	margin: 0;
}

#featuredcustom .fcPopupLink {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-top: 24px;
	color: #007BFF;
	text-decoration: none;
	border-bottom:none;
	color: #007BFF;
	leading-trim: both;
	text-edge: cap;
	font-family: Lato;
	font-size: 20px;
	font-style: normal;
	font-weight: 400;
	line-height: normal;
}
#featuredcustom .fcPopupLink svg {
	transition: transform .2s ease;
}
#featuredcustom .fcPopupLink:hover svg {
	transform: translateX(3px);
}

#featuredcustom .fcPopupClose:focus-visible,
#featuredcustom .fcPopupLink:focus-visible {
	outline: 3px solid #80bdff;
	outline-offset: 2px;
}

/* ---------- Bell "catches" the card ---------- */
.AnnouncementBox.fcBellCatch {
	animation: fcBellCatch .7s cubic-bezier(.34, 1.56, .64, 1);
}
.AnnouncementBox.fcBellCatch::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	border: 2px solid #007BFF;
	pointer-events: none;
	animation: fcBellPulse .9s ease-out;
}
@keyframes fcBellCatch {
	0%   { transform: scale(1); }
	35%  { transform: scale(1.25); }
	100% { transform: scale(1); }
}
@keyframes fcBellPulse {
	from { transform: scale(1);   opacity: .9; }
	to   { transform: scale(1.8); opacity: 0; }
}

/* ---------- Responsive / motion ---------- */
@media(max-width:475px){
	#featuredcustom .fcPopupTitle {
	font-size: 20px;
	}
	#featuredcustom .fcPopupText {
	font-size: 14px;
	}
	#featuredcustom .fcPopupLink {
	font-size: 18px;
	}
	#featuredcustom .fcPopupImage{
		height: 100%;
	}
	
}
@media(max-width:393px){
	#featuredcustom .fcPopupMeta {
		margin-top:15px;
	}
}
@media (max-width: 480px) {
	#featuredcustom .fcPopupClose {
		top: 12px;
		right: 12px;
	}
}
@media (prefers-reduced-motion: reduce) {
	#featuredcustom {
		transition: none;
	}
	.AnnouncementBox.fcBellCatch,
	.AnnouncementBox.fcBellCatch::after {
		animation: none;
	}
}