/* ==========================================================
   MSE School Theme — Website Announcement Popup
   ========================================================== */

.mse-notice-popup {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.mse-notice-popup.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}


/* Overlay */

.mse-notice-popup-overlay {
	position: absolute;
	inset: 0;
	background: rgba(11, 18, 32, 0.78);
	backdrop-filter: blur(4px);
}


/* Popup Box */

.mse-notice-popup-box {
	position: relative;
	z-index: 2;
	width: min(900px, 100%);
	max-height: calc(100vh - 48px);
	background: #ffffff;
	border-radius: 18px;
	overflow: hidden;
	box-shadow:
		0 30px 80px rgba(0, 0, 0, 0.35),
		0 8px 24px rgba(0, 0, 0, 0.15),
		0 0 0 1px rgba(255, 255, 255, 0.06);
	transform: scale(0.9) translateY(20px);
	opacity: 0;
	transition: none;
}

.mse-notice-popup.is-open .mse-notice-popup-box {
	animation: msePopIn 0.5s cubic-bezier(.22, .9, .32, 1.15) forwards;
}

@keyframes msePopIn {
	from {
		transform: scale(0.9) translateY(20px);
		opacity: 0;
	}
	to {
		transform: scale(1) translateY(0);
		opacity: 1;
	}
}


/* Slides */

.mse-notice-popup-slides {
	position: relative;
	width: 100%;
}

.mse-notice-popup-slide {
	display: none;
	width: 100%;
	opacity: 0;
}

.mse-notice-popup-slide.is-active {
	display: block;
	animation: mseSlideIn 0.7s ease forwards;
}

@keyframes mseSlideIn {
	from {
		opacity: 0;
		transform: scale(1.04);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

.mse-notice-popup-slide img {
	display: block;
	width: 100%;
	height: auto;
	max-height: calc(100vh - 110px);
	object-fit: contain;
}


/* Close Button */

.mse-notice-popup-close {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 5;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(11, 18, 32, 0.75);
	color: #ffffff;
	font-size: 27px;
	line-height: 38px;
	text-align: center;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
	transition: background 0.25s ease, transform 0.25s ease;
}

.mse-notice-popup-close:hover {
	background: rgba(11, 18, 32, 0.95);
	transform: scale(1.08) rotate(90deg);
}


/* Navigation */

.mse-notice-popup-navigation {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	padding: 12px 18px;
	background: #ffffff;
}

.mse-notice-popup-prev,
.mse-notice-popup-next {
	width: 34px;
	height: 34px;
	padding: 0;
	border: 1px solid #e2e8f0;
	border-radius: 50%;
	background: #ffffff;
	color: #0b1220;
	font-size: 16px;
	cursor: pointer;
	transition: all 0.25s ease;
}

.mse-notice-popup-prev:hover,
.mse-notice-popup-next:hover {
	background: #f5f3ff;
	border-color: #7c3aed;
	color: #7c3aed;
	transform: scale(1.08);
}

.mse-notice-popup-dots {
	display: flex;
	align-items: center;
	gap: 7px;
}

.mse-notice-popup-dot {
	width: 7px;
	height: 7px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #cbd5e1;
	cursor: pointer;
	transition: all 0.35s cubic-bezier(.4, 0, .2, 1);
}

.mse-notice-popup-dot.is-active {
	width: 24px;
	border-radius: 5px;
	background: linear-gradient(135deg, #7c3aed, #a855f7);
	box-shadow: 0 0 10px rgba(124, 58, 237, 0.5);
}


/* Mobile */

@media (max-width: 767px) {

	.mse-notice-popup {
		padding: 14px;
	}

	.mse-notice-popup-box {
		width: 100%;
		max-height: calc(100vh - 28px);
		border-radius: 14px;
	}

	.mse-notice-popup-slide img {
		max-height: calc(100vh - 90px);
	}

	.mse-notice-popup-close {
		top: 10px;
		right: 10px;
		width: 34px;
		height: 34px;
		line-height: 34px;
		font-size: 24px;
	}

}