/* ==========================================================================
   QLC School Public Web - Best-Practice UI & Hero Slider Enhancements
   ========================================================================== */

html {
	scroll-behavior: smooth;
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Navbar subtle polish */
#navbar {
	transition: box-shadow 0.25s ease, background-color 0.25s ease;
}
#navbar.scrolled {
	box-shadow: 0 6px 24px rgba(15, 23, 42, 0.08);
}
#navbar .navMenu > a > div {
	transition: color 0.2s ease;
}
#navbar .navMenu > a > div:before {
	transition: opacity 0.25s ease, transform 0.25s ease;
	transform: scaleX(0.6);
	border-radius: 2px;
}
#navbar .navMenu > a:hover > div {
	color: var(--text_purple);
}
#navbar .navMenu > a:hover > div:before,
#navbar .navMenu > a.active > div:before {
	opacity: 1;
	transform: scaleX(1);
}

/* Hero Slider - Smooth Crossfade + Subtle Ken Burns + Controls */
.front_header {
	position: relative;
	overflow: hidden;
	background: #14111f;
}
.qlc-hero-stage {
	position: relative;
	width: 100%;
	padding-bottom: 40%; /* 1275 x 510 exact desktop aspect ratio */
	overflow: hidden;
	background: #14111f;
}
.qlc-hero-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	z-index: 1;
	transition: opacity 0.95s cubic-bezier(0.4, 0, 0.2, 1);
	will-change: opacity, transform;
}
.qlc-hero-slide.active {
	opacity: 1;
	z-index: 2;
}
.qlc-hero-slide-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	transform: scale(1.06);
	transition: transform 6.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.qlc-hero-slide.active .qlc-hero-slide-bg {
	transform: scale(1);
}

/* Smooth Dark Gradient Scrim for Text Contrast */
.front_header .fhBox {
	z-index: 6;
	pointer-events: none;
}
.front_header .fhBox a,
.front_header .fhBox button {
	pointer-events: auto;
}
.front_header .fhBox:before {
	height: 120% !important;
	background: linear-gradient(
		to top,
		rgba(18, 12, 34, 0.88) 0%,
		rgba(18, 12, 34, 0.48) 52%,
		rgba(18, 12, 34, 0) 100%
	) !important;
}
.front_header .fhBox > div > div:first-child {
	line-height: 1.25;
	text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}
.front_header .fhBox > div > div:nth-child(2) {
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.92);
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

/* Prev / Next Glass Arrows */
.qlc-slider-arrow {
	position: absolute;
	top: 44%;
	transform: translateY(-50%);
	z-index: 12;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.35);
	background: rgba(18, 12, 34, 0.42);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	color: #ffffff;
	font-size: 20px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	opacity: 0.78;
	transition: opacity 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.qlc-slider-arrow:hover {
	opacity: 1;
	background: rgba(91, 62, 150, 0.85);
	transform: translateY(-50%) scale(1.07);
}
.qlc-slider-arrow.prev { left: 18px; }
.qlc-slider-arrow.next { right: 18px; }

/* Clickable Pill Indicators with Active Progress */
.front_header .fhBubble {
	top: auto !important;
	bottom: 18px !important;
	right: 24px !important;
	z-index: 15 !important;
}
.front_header .fhBubble .fbList {
	display: flex;
	align-items: center;
	gap: 8px;
}
.front_header .fhBubble .fbList > div {
	margin-right: 0 !important;
	cursor: pointer;
	padding: 4px 0;
}
.front_header .fhBubble .fbList > div > div {
	width: 10px !important;
	height: 10px !important;
	border-radius: 999px !important;
	border: none !important;
	background: rgba(255, 255, 255, 0.45) !important;
	transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.25s ease;
	position: relative;
	overflow: hidden;
}
.front_header .fhBubble .fbList > div:hover > div {
	background: rgba(255, 255, 255, 0.8) !important;
}
.front_header .fhBubble .fbList > div.active > div {
	width: 32px !important;
	background: rgba(255, 255, 255, 0.35) !important;
}
.front_header .fhBubble .fbList > div.active > div:after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 100%;
	background: #ffffff;
	border-radius: 999px;
	transform-origin: left center;
	animation: qlcSlideProgress 5s linear forwards;
}
.front_header.paused .fhBubble .fbList > div.active > div:after {
	animation-play-state: paused;
}
@keyframes qlcSlideProgress {
	from { transform: scaleX(0); }
	to { transform: scaleX(1); }
}

/* Interactive Card & Button Polish */
.btn.basic {
	border-radius: 8px;
	transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.btn.basic:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
	filter: brightness(1.05);
}

.card_whatson .cwItem {
	border-radius: 14px;
	transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease;
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}
.card_whatson .cwItem:hover {
	transform: translateY(-6px);
	box-shadow: 0 14px 28px rgba(15, 23, 42, 0.16);
}

.front_box > div {
	border-radius: 14px !important;
	border-width: 1.5px !important;
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.front_box > div:hover {
	transform: translateY(-5px);
	box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
}

.card_news .cnItem {
	border-radius: 12px;
	overflow: hidden;
	transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.card_news .cnItem:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

.front_point .fpIcon > div {
	border-radius: 14px !important;
	box-shadow: 0 8px 22px rgba(15, 23, 42, 0.1);
}
.front_point .fpDesc {
	line-height: 1.65;
}
.front_count .fcItem {
	line-height: 1.7;
}

/* Responsive Hero Ratios matching 1275x510 desktop & 475x617 mobile */
@media (max-width: 1125px) {
	.qlc-hero-stage { padding-bottom: 48%; }
}
@media (max-width: 600px) {
	.qlc-hero-stage { padding-bottom: 75%; }
	.qlc-slider-arrow { width: 36px; height: 36px; font-size: 16px; }
	.qlc-slider-arrow.prev { left: 10px; }
	.qlc-slider-arrow.next { right: 10px; }
}
@media (max-width: 480px) {
	.qlc-hero-stage { padding-bottom: 130%; } /* 475 x 617 exact mobile aspect ratio */
	.front_header .fhBubble { right: 50% !important; transform: translateX(50%); bottom: 12px !important; }
}
