/**
 * IISAUH THEME2026 — IIS Achievements Page Stylesheet
 *
 * @package IISAUH_Theme2026
 */

/* --------------------------------------------------------------------------
   1. Page Layout & Hero Styles (Exact Same Size as Careers Page Header)
   -------------------------------------------------------------------------- */
.achievements-page {
	background: #f8fafc;
	min-height: 100vh;
	overflow-x: hidden;
}

.about-hero.achievements-hero,
.achievements-hero {
	position: relative;
	min-height: auto !important;
	padding: clamp(32px, 3.5vw, 48px) 0 clamp(32px, 3.5vw, 48px) !important;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.achievements-hero__shell {
	position: relative;
	z-index: 2;
	width: min(100%, var(--container-max, 1680px));
	max-width: var(--container-max, 1680px);
	margin: 0 auto;
	padding: 0 var(--gutter, clamp(16px, 3.5vw, 40px));
	box-sizing: border-box;
}

.achievements-hero__title {
	margin: 0;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: #ffffff;
	font-size: clamp(22px, 2.6vw, 32px);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.015em;
}

.achievements-hero__title-icon {
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #00a896;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
}

/* ==========================================================================
   CINEMATIC THEATRICAL STAGE OPENING REVEAL LAYER
   ========================================================================== */
.achieve-stage-curtain {
	position: fixed;
	inset: 0;
	width: 100vw;
	height: 100vh;
	z-index: 99999;
	pointer-events: all;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: visibility 0.8s ease;
	perspective: 1200px;
}

.achieve-stage-curtain.is-opened {
	pointer-events: none;
	visibility: hidden;
}

/* Left & Right Stage Wings / Theatrical Panels */
.achieve-stage-curtain__wing {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 50.5%;
	height: 100%;
	z-index: 2;
	overflow: hidden;
	will-change: transform;
	background: 
		radial-gradient(ellipse at 50% 50%, rgba(13, 40, 74, 0.95) 0%, rgba(7, 23, 43, 0.98) 70%, #030d18 100%);
	box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.8);
	transition: transform 1.25s cubic-bezier(0.85, 0, 0.15, 1);
}

.achieve-stage-curtain__wing--left {
	left: 0;
	transform-origin: left center;
	border-right: 2px solid rgba(0, 168, 150, 0.45);
}

.achieve-stage-curtain__wing--right {
	right: 0;
	transform-origin: right center;
	border-left: 2px solid rgba(0, 168, 150, 0.45);
}

/* Stage Opening Transform Triggers */
.achieve-stage-curtain.is-animating .achieve-stage-curtain__wing--left {
	transform: translateX(-102%) rotateY(-6deg);
}

.achieve-stage-curtain.is-animating .achieve-stage-curtain__wing--right {
	transform: translateX(102%) rotateY(6deg);
}

/* High-End Theatrical Texture on Stage Wings */
.achieve-stage-curtain__wing-texture {
	position: absolute;
	inset: 0;
	background-image: 
		repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0px, rgba(255, 255, 255, 0.02) 2px, transparent 2px, transparent 40px),
		radial-gradient(circle at 50% 30%, rgba(0, 168, 150, 0.2) 0%, transparent 60%);
	opacity: 0.8;
}

/* Luminous Golden Edge Border with Glowing Shimmer */
.achieve-stage-curtain__wing-edge {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 3px;
	background: linear-gradient(180deg, transparent 0%, #fbbf24 30%, #00a896 50%, #38bdf8 70%, transparent 100%);
	box-shadow: 0 0 20px rgba(0, 168, 150, 0.8), 0 0 40px rgba(251, 191, 36, 0.5);
}

.achieve-stage-curtain__wing--left .achieve-stage-curtain__wing-edge {
	right: 0;
}

.achieve-stage-curtain__wing--right .achieve-stage-curtain__wing-edge {
	left: 0;
}

/* Cinematic Volumetric Stage Spotlights */
.achieve-stage-curtain__spotlight {
	position: absolute;
	top: -50%;
	width: 300px;
	height: 200%;
	pointer-events: none;
	background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(0, 168, 150, 0.08) 50%, transparent 80%);
	filter: blur(30px);
	opacity: 0.7;
	transition: opacity 1s ease;
}

.achieve-stage-curtain__spotlight--left {
	left: -50px;
	transform: rotate(25deg);
}

.achieve-stage-curtain__spotlight--right {
	right: -50px;
	transform: rotate(-25deg);
}

/* Center Stage Laser Seam */
.achieve-stage-curtain__seam {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 2px;
	transform: translateX(-50%);
	z-index: 4;
	background: #ffffff;
	box-shadow: 
		0 0 15px #00a896,
		0 0 30px #38bdf8,
		0 0 50px #fbbf24;
	transition: opacity 0.4s ease, width 0.4s ease;
}

.achieve-stage-curtain.is-animating .achieve-stage-curtain__seam {
	opacity: 0;
	width: 20px;
}

/* Horizontal Light Beam Sweep */
.achieve-stage-curtain__beam-sweep {
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	height: 2px;
	transform: translateY(-50%);
	z-index: 5;
	background: linear-gradient(90deg, transparent 0%, rgba(0, 168, 150, 0.6) 30%, #ffffff 50%, rgba(56, 189, 248, 0.6) 70%, transparent 100%);
	box-shadow: 0 0 40px 10px rgba(0, 168, 150, 0.6);
	opacity: 0;
	transition: opacity 0.5s ease;
}

.achieve-stage-curtain.is-animating .achieve-stage-curtain__beam-sweep {
	animation: achieveBeamSweep 0.8s ease-out forwards;
}

@keyframes achieveBeamSweep {
	0% {
		opacity: 0;
		transform: translateY(-50%) scaleX(0.2);
	}
	40% {
		opacity: 1;
		transform: translateY(-50%) scaleX(1);
	}
	100% {
		opacity: 0;
		transform: translateY(-50%) scaleX(1.4);
	}
}

/* Center Golden Trophy Emblem Crest */
.achieve-stage-curtain__crest {
	position: relative;
	z-index: 6;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
	pointer-events: none;
	transition: transform 0.8s cubic-bezier(0.85, 0, 0.15, 1), opacity 0.6s ease;
}

.achieve-stage-curtain.is-animating .achieve-stage-curtain__crest {
	transform: scale(1.35);
	opacity: 0;
}

.achieve-stage-curtain__crest-rings {
	position: absolute;
	inset: -15px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.achieve-stage-curtain__crest-ring {
	position: absolute;
	border-radius: 50%;
}

.achieve-stage-curtain__crest-ring--1 {
	width: 110px;
	height: 110px;
	border: 1.5px dashed rgba(251, 191, 36, 0.6);
	animation: achieveCrestSpin 10s linear infinite;
}

.achieve-stage-curtain__crest-ring--2 {
	width: 90px;
	height: 90px;
	border: 1.5px solid transparent;
	border-top-color: #00a896;
	border-bottom-color: #38bdf8;
	animation: achieveCrestSpinRev 4s linear infinite;
}

@keyframes achieveCrestSpin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

@keyframes achieveCrestSpinRev {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(-360deg); }
}

.achieve-stage-curtain__crest-emblem {
	position: relative;
	z-index: 2;
	width: 76px;
	height: 76px;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 35%, #ffffff 0%, #fef3c7 40%, #fbbf24 100%);
	box-shadow: 
		0 0 30px rgba(251, 191, 36, 0.6),
		0 0 60px rgba(0, 168, 150, 0.4),
		0 10px 30px rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #78350f;
	border: 2px solid #ffffff;
}

.achieve-stage-curtain__crest-emblem svg {
	filter: drop-shadow(0 2px 4px rgba(180, 83, 9, 0.4));
}

.achieve-stage-curtain__crest-title {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: #ffffff;
	background: linear-gradient(135deg, rgba(0, 168, 150, 0.3) 0%, rgba(15, 42, 74, 0.6) 100%);
	border: 1px solid rgba(0, 168, 150, 0.5);
	padding: 6px 18px;
	border-radius: 50px;
	backdrop-filter: blur(8px);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Post-Stage Opening Elevation for Cards */
.achievements-page .achievement-card {
	animation: achieveCardStageIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.achievements-page .achievement-card:nth-child(1) { animation-delay: 0.4s; }
.achievements-page .achievement-card:nth-child(2) { animation-delay: 0.52s; }
.achievements-page .achievement-card:nth-child(3) { animation-delay: 0.64s; }
.achievements-page .achievement-card:nth-child(4) { animation-delay: 0.76s; }
.achievements-page .achievement-card:nth-child(5) { animation-delay: 0.88s; }
.achievements-page .achievement-card:nth-child(6) { animation-delay: 1.0s; }

@keyframes achieveCardStageIn {
	0% {
		opacity: 0;
		transform: translateY(30px) scale(0.96);
	}
	100% {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@media (prefers-reduced-motion: reduce) {
	.achieve-stage-curtain {
		display: none !important;
	}
	.achievements-page .achievement-card {
		animation: none !important;
	}
}

/* --------------------------------------------------------------------------
   2. Main Grid Container (3 Columns in a Row)
   -------------------------------------------------------------------------- */
.achievements-section {
	position: relative;
	overflow: hidden;
	padding: clamp(40px, 5vw, 64px) 0 clamp(72px, 9vw, 108px);
	background: #f8fafc;
}

/* --------------------------------------------------------------------------
   2a. Animated Outer Backdrop with Achievement-Themed Motifs & Glowing Orbs
   -------------------------------------------------------------------------- */
.achieve-outer-backdrop {
	position: absolute;
	inset: 0;
	pointer-events: none;
	overflow: hidden;
	z-index: 1;
}

/* Animated Subtle Moving Achievements Motif Pattern (Trophies, Medals, Laurels, Caps, Stars) */
.achieve-outer-pattern-svg {
	position: absolute;
	top: -60px;
	left: -60px;
	width: calc(100% + 120px);
	height: calc(100% + 120px);
	pointer-events: none;
	animation: achieveMotifDrift 90s linear infinite;
	opacity: 0.95;
}

@keyframes achieveMotifDrift {
	0% {
		transform: translate(0, 0);
	}
	50% {
		transform: translate(-120px, -120px);
	}
	100% {
		transform: translate(0, 0);
	}
}

/* Ambient Animated Glowing Orbs */
.achieve-ambient-orb {
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
	filter: blur(80px);
	opacity: 0.65;
	will-change: transform;
}

.achieve-ambient-orb--1 {
	top: 8%;
	left: -120px;
	width: 520px;
	height: 520px;
	background: radial-gradient(circle, rgba(2, 132, 199, 0.18) 0%, rgba(56, 189, 248, 0.04) 70%, transparent 100%);
	animation: achieveOrbFloat1 18s ease-in-out infinite alternate;
}

.achieve-ambient-orb--2 {
	bottom: 6%;
	right: -140px;
	width: 580px;
	height: 580px;
	background: radial-gradient(circle, rgba(0, 168, 150, 0.16) 0%, rgba(2, 196, 174, 0.03) 70%, transparent 100%);
	animation: achieveOrbFloat2 22s ease-in-out infinite alternate;
}

.achieve-ambient-orb--3 {
	top: 48%;
	right: 18%;
	width: 440px;
	height: 440px;
	background: radial-gradient(circle, rgba(234, 88, 12, 0.08) 0%, transparent 70%);
	animation: achieveOrbFloat3 26s ease-in-out infinite alternate;
}

@keyframes achieveOrbFloat1 {
	0% {
		transform: translate(0, 0) scale(1);
	}
	50% {
		transform: translate(45px, 60px) scale(1.15);
	}
	100% {
		transform: translate(-30px, 30px) scale(0.95);
	}
}

@keyframes achieveOrbFloat2 {
	0% {
		transform: translate(0, 0) scale(1);
	}
	50% {
		transform: translate(-50px, -45px) scale(1.18);
	}
	100% {
		transform: translate(25px, -20px) scale(0.92);
	}
}

@keyframes achieveOrbFloat3 {
	0% {
		transform: translate(0, 0) scale(0.9);
	}
	50% {
		transform: translate(-35px, 40px) scale(1.12);
	}
	100% {
		transform: translate(30px, -25px) scale(1);
	}
}

/* Floating Subtle Icons in Outer Margins */
.achieve-drift-icon {
	position: absolute;
	color: rgba(2, 132, 199, 0.28);
	opacity: 0.55;
	pointer-events: none;
	z-index: 1;
	transition: opacity 0.3s ease;
}

.achieve-drift-icon--1 {
	top: 14%;
	left: 2.5%;
	animation: achieveIconFloat 14s ease-in-out infinite alternate;
}

.achieve-drift-icon--2 {
	top: 68%;
	left: 3.5%;
	color: rgba(0, 168, 150, 0.32);
	animation: achieveIconFloat 18s ease-in-out infinite alternate-reverse;
}

.achieve-drift-icon--3 {
	top: 22%;
	right: 2.8%;
	color: rgba(2, 132, 199, 0.26);
	animation: achieveIconFloat 16s ease-in-out infinite alternate;
}

.achieve-drift-icon--4 {
	top: 76%;
	right: 3.2%;
	color: rgba(234, 88, 12, 0.28);
	animation: achieveIconFloat 20s ease-in-out infinite alternate-reverse;
}

@keyframes achieveIconFloat {
	0% {
		transform: translateY(0) rotate(0deg);
	}
	50% {
		transform: translateY(-22px) rotate(8deg);
	}
	100% {
		transform: translateY(14px) rotate(-6deg);
	}
}

/* --------------------------------------------------------------------------
   2b. Main Grid Container (3 Columns in a Row)
   -------------------------------------------------------------------------- */
.achievements-container {
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 clamp(16px, 3.5vw, 40px);
}

/* 3-Column Grid in a row */
.achievements-grid,
.achievements-grid--3col {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(20px, 2.5vw, 32px);
	margin-bottom: clamp(36px, 4.5vw, 52px);
}

/* --------------------------------------------------------------------------
   3. Modern 3D Achievement Card Design
   -------------------------------------------------------------------------- */
.achievement-card {
	position: relative;
	perspective: 1200px;
	cursor: pointer;
	border-radius: 16px;
}

.achievement-card__3d-wrap {
	position: relative;
	background: #ffffff;
	border: 1px solid rgba(226, 232, 240, 0.9);
	border-radius: 16px;
	overflow: hidden;
	transform-style: preserve-3d;
	transform: perspective(1000px) rotateX(0deg) rotateY(0deg) translateZ(0);
	transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease;
	box-shadow: 
		0 4px 6px -1px rgba(0, 0, 0, 0.03),
		0 10px 24px -3px rgba(7, 26, 45, 0.08),
		0 20px 38px -6px rgba(2, 132, 199, 0.08),
		inset 0 1px 0 rgba(255, 255, 255, 0.95);
	height: 100%;
	display: flex;
	flex-direction: column;
}

/* 3D Dynamic Specular Light Glare */
.achievement-card__glare {
	position: absolute;
	inset: 0;
	border-radius: 16px;
	background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.1) 40%, transparent 70%);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.35s ease;
	z-index: 6;
}

/* 3D Hover Elevation & Angle */
.achievement-card:hover .achievement-card__3d-wrap {
	transform: perspective(1000px) translateY(-10px) rotateX(3deg) scale3d(1.02, 1.02, 1.02);
	border-color: rgba(56, 189, 248, 0.55);
	box-shadow: 
		0 16px 36px -4px rgba(7, 26, 45, 0.14),
		0 28px 60px -8px rgba(2, 132, 199, 0.25),
		0 2px 0 rgba(255, 255, 255, 0.8) inset,
		0 -2px 0 rgba(2, 132, 199, 0.15) inset;
}

.achievement-card:hover .achievement-card__glare {
	opacity: 1;
}

.achievement-card__inner {
	display: flex;
	flex-direction: column;
	height: 100%;
	transform-style: preserve-3d;
}

.achievement-card__image-box {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	background: #0b1f36;
	overflow: hidden;
}

.achievement-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	display: block;
	transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.achievement-card:hover .achievement-card__image {
	transform: scale(1.06);
}

.achievement-card__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(7, 26, 45, 0.7) 0%, transparent 60%);
	opacity: 0;
	transition: opacity 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
}

.achievement-card:hover .achievement-card__overlay {
	opacity: 1;
}

.achievement-card__zoom-btn {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.94);
	color: #0284c7;
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
	cursor: pointer;
	transform: scale(0.85) translateZ(20px);
	transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.achievement-card:hover .achievement-card__zoom-btn {
	transform: scale(1) translateZ(30px);
}

.achievement-card__zoom-btn:hover {
	background: #0284c7;
	color: #ffffff;
	transform: scale(1.1) translateZ(35px);
}

.achievement-card__badge {
	position: absolute;
	top: 14px;
	right: 14px;
	background: #0284c7;
	color: #ffffff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 6px;
	box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
	transform: translateZ(25px);
}

/* 3D Caption Bottom Sheet with Multi-Color Gradient Background & Single-Line Fit */
.achievement-card__caption {
	padding: 8px 12px;
	background: linear-gradient(125deg, #0b1528 0%, #1e1b4b 22%, #1e40af 45%, #0284c7 68%, #0d9488 88%, #10b981 100%);
	background-size: 180% 180%;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	border-top: 1px solid rgba(255, 255, 255, 0.22);
	position: relative;
	overflow: hidden;
	height: 38px;
	box-sizing: border-box;
	transition: background-position 0.6s ease, border-color 0.3s ease;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.achievement-card:hover .achievement-card__caption {
	background-position: right center;
	border-top-color: rgba(56, 189, 248, 0.85);
}

.achievement-card__title {
	font-size: clamp(10.5px, 0.9vw, 12px);
	font-weight: 600;
	color: #ffffff;
	margin: 0;
	line-height: 1.2;
	text-align: center;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: nowrap;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	letter-spacing: 0.15px;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
	transition: color 0.25s ease;
}

.achieve-card-typewriter {
	display: inline-block;
	color: #ffffff;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
	vertical-align: middle;
	transition: color 0.2s ease;
}

.achievement-card:hover .achieve-card-typewriter {
	color: #ffffff;
}

.achieve-card-cursor {
	display: inline-block;
	margin-left: 2px;
	color: #38bdf8;
	font-weight: 400;
	font-size: 0.95em;
	animation: achieveBlinkCaret 0.85s infinite;
	vertical-align: middle;
	text-shadow: 0 0 6px rgba(56, 189, 248, 0.9);
}

@keyframes achieveBlinkCaret {
	0%, 100% {
		opacity: 1;
	}
	50% {
		opacity: 0;
	}
}

/* --------------------------------------------------------------------------
   4. Modern Next & Previous Pagination Controls
   -------------------------------------------------------------------------- */
.achievements-pagination-modern {
	display: flex;
	align-items: center;
	justify-content: center;
	padding-top: 20px;
	margin-top: 10px;
}

.achieve-nav-group {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	background: #ffffff;
	padding: 8px 12px;
	border-radius: 50px;
	box-shadow: 0 4px 20px -2px rgba(7, 26, 45, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
	border: 1px solid #e2e8f0;
	flex-wrap: wrap;
	justify-content: center;
}

.achieve-nav-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 22px;
	border-radius: 50px;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none !important;
	transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
	line-height: 1.3;
	white-space: nowrap;
}

.achieve-nav-btn--prev {
	background: #f1f5f9;
	color: #0f172a !important;
	border: 1.5px solid #cbd5e1;
}

.achieve-nav-btn--prev:hover {
	background: #0284c7;
	color: #ffffff !important;
	border-color: #0284c7;
	transform: translateX(-3px);
	box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
}

.achieve-nav-btn--next {
	background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
	color: #ffffff !important;
	border: 1.5px solid transparent;
	box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
}

.achieve-nav-btn--next:hover {
	background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
	transform: translateX(3px);
	box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45);
}

.achieve-nav-btn--disabled {
	background: #f8fafc;
	color: #94a3b8 !important;
	border: 1.5px solid #e2e8f0;
	cursor: not-allowed;
	opacity: 0.6;
}

.achieve-nav-counter {
	font-size: 13.5px;
	font-weight: 700;
	color: #475569;
	padding: 0 10px;
	letter-spacing: 0.4px;
}

/* --------------------------------------------------------------------------
   5. Lightbox Modal
   -------------------------------------------------------------------------- */
.achievement-lightbox {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
	padding: 24px;
}

.achievement-lightbox.is-open {
	opacity: 1;
	visibility: visible;
}

.achievement-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(7, 26, 45, 0.88);
	backdrop-filter: blur(8px);
}

.achievement-lightbox__content {
	position: relative;
	z-index: 2;
	max-width: 900px;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	transform: scale(0.94);
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.achievement-lightbox.is-open .achievement-lightbox__content {
	transform: scale(1);
}

.achievement-lightbox__close {
	position: absolute;
	top: -46px;
	right: 0;
	background: rgba(255, 255, 255, 0.2);
	color: #ffffff;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	width: 38px;
	height: 38px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.2s ease;
}

.achievement-lightbox__close:hover {
	background: #ef4444;
	border-color: #ef4444;
	transform: rotate(90deg);
}

.achievement-lightbox__figure {
	position: relative;
	background: #071628;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 16px 50px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.12);
	max-height: 82vh;
	display: flex;
	flex-direction: column;
	min-width: 280px;
	min-height: 200px;
}

/* Lightbox Micro Loading Indicator */
.achievement-lightbox__loader {
	position: absolute;
	top: 40%;
	left: 50%;
	transform: translate(-50%, -50%);
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.25s ease;
	z-index: 5;
}

.achievement-lightbox.is-loading-full .achievement-lightbox__loader {
	opacity: 1;
}

.achievement-lightbox__spinner {
	display: block;
	width: 36px;
	height: 36px;
	border: 3px solid rgba(255, 255, 255, 0.2);
	border-top-color: #38bdf8;
	border-radius: 50%;
	animation: achieveSpin 0.7s linear infinite;
	filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

@keyframes achieveSpin {
	100% {
		transform: rotate(360deg);
	}
}

.achievement-lightbox__img {
	max-width: 100%;
	max-height: 72vh;
	object-fit: contain;
	display: block;
	background: #071628;
	transition: filter 0.2s ease, opacity 0.2s ease;
}

.achievement-lightbox__info {
	padding: 12px 20px;
	background: linear-gradient(180deg, #0a1f38 0%, #071628 100%);
	color: #ffffff;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

/* --------------------------------------------------------------------------
   5b. Celebratory Animated Icons & Confetti Burst Effect
   -------------------------------------------------------------------------- */
.achievement-lightbox__celebration {
	position: absolute;
	inset: 0;
	pointer-events: none;
	overflow: hidden;
	z-index: 20;
	border-radius: 14px;
}

/* Floating Congratulations Banner */
.celebration-badge-banner {
	position: absolute;
	top: 22px;
	left: 50%;
	transform: translateX(-50%) translateY(-20px) scale(0.85);
	background: linear-gradient(135deg, #f59e0b 0%, #ea580c 50%, #db2777 100%);
	color: #ffffff;
	font-size: 13.5px;
	font-weight: 800;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	padding: 7px 22px;
	border-radius: 50px;
	box-shadow: 0 8px 24px rgba(234, 88, 12, 0.45), 0 0 0 2px rgba(255, 255, 255, 0.35);
	z-index: 25;
	opacity: 0;
	animation: celebrationBannerAnim 2.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes celebrationBannerAnim {
	0% {
		opacity: 0;
		transform: translateX(-50%) translateY(-20px) scale(0.8);
	}
	15% {
		opacity: 1;
		transform: translateX(-50%) translateY(0) scale(1.08);
	}
	25% {
		transform: translateX(-50%) translateY(0) scale(1);
	}
	80% {
		opacity: 1;
		transform: translateX(-50%) translateY(0) scale(1);
	}
	100% {
		opacity: 0;
		transform: translateX(-50%) translateY(-15px) scale(0.9);
	}
}

/* Animated Bursting Achievement Icon Particles */
.celebration-particle {
	position: absolute;
	top: 50%;
	left: 50%;
	pointer-events: none;
	display: flex;
	align-items: center;
	justify-content: center;
	will-change: transform, opacity;
	filter: drop-shadow(0 2px 8px currentColor);
	animation: celebrationParticleBurst var(--duration, 1.5s) cubic-bezier(0.12, 0.8, 0.32, 1) var(--delay, 0s) forwards;
}

.celebration-particle svg {
	width: 100%;
	height: 100%;
	display: block;
}

@keyframes celebrationParticleBurst {
	0% {
		opacity: 0;
		transform: translate(-50%, -50%) scale(0.15) rotate(0deg);
	}
	18% {
		opacity: 1;
		transform: translate(calc(-50% + var(--tx) * 0.4), calc(-50% + var(--ty) * 0.4)) scale(calc(var(--scale) * 1.25)) rotate(calc(var(--rot) * 0.35));
	}
	65% {
		opacity: 0.95;
		transform: translate(calc(-50% + var(--tx) * 0.85), calc(-50% + var(--ty) * 0.85)) scale(var(--scale)) rotate(calc(var(--rot) * 0.85));
	}
	100% {
		opacity: 0;
		transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(calc(var(--scale) * 0.5)) rotate(var(--rot));
	}
}

.achievement-lightbox__badge {
	display: inline-block;
	background: #0284c7;
	color: #ffffff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	padding: 2px 8px;
	border-radius: 4px;
	margin-bottom: 6px;
	text-align: center;
}

.achievement-lightbox__badge:empty {
	display: none;
}

.achievement-lightbox__title {
	font-size: 16px;
	font-weight: 700;
	margin: 0;
	color: #ffffff;
	text-align: center;
	width: 100%;
}

/* --------------------------------------------------------------------------
   6. Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
	.achievements-grid,
	.achievements-grid--3col {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
	}
}

@media (max-width: 640px) {
	.achievements-grid,
	.achievements-grid--3col {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.achievements-pagination {
		justify-content: center;
	}
}
