/* Modern UI Enhancements for Variations */

:root {
	--transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	--shadow-soft: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
	--shadow-elevated: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Smooth Transitions */
a, button, .wp-element-button, .wp-block-button__link {
	transition: var(--transition-smooth);
}

/* Hover Lift Effect */
.has-hover-lift:hover {
	transform: translateY(-5px);
	box-shadow: var(--shadow-elevated) !important;
}

/* Entrance Animations */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.animate-in {
	animation: fadeInUp 0.6s ease-out forwards;
}

/* Glassmorphism Utility */
.is-glass {
	background: rgba(255, 255, 255, 0.7) !important;
	backdrop-filter: blur(12px) saturate(180%);
	-webkit-backdrop-filter: blur(12px) saturate(180%);
	border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

/* Modern Scrollbar */
::-webkit-scrollbar {
	width: 10px;
}

::-webkit-scrollbar-track {
	background: var(--wp--preset--color--neutral-100);
}

::-webkit-scrollbar-thumb {
	background: var(--wp--preset--color--neutral-800);
	border-radius: 10px;
	border: 2px solid var(--wp--preset--color--neutral-100);
}

::-webkit-scrollbar-thumb:hover {
	background: var(--wp--preset--color--primary);
}

/* Card Style */
.is-card {
	background: var(--wp--preset--color--white) !important;
	border: 1px solid var(--wp--preset--color--neutral-100) !important;
	border-radius: 16px !important;
	padding: var(--wp--preset--spacing--m) !important;
	transition: var(--transition-smooth);
	box-shadow: var(--shadow-soft) !important;
}

.is-card:hover {
	transform: translateY(-8px);
	box-shadow: var(--shadow-elevated) !important;
	border-color: var(--wp--preset--color--primary) !important;
}

/* Gradient Text */
.has-text-gradient {
	background: linear-gradient(135deg, var(--wp--preset--color--primary) 0%, #a855f7 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	display: inline-block;
}

/* Stats Polish */
.wp-block-variation-stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.wp-block-variation-stat .number {
	font-size: 3rem;
	font-weight: 800;
	color: var(--wp--preset--color--primary);
	line-height: 1;
}

.wp-block-variation-stat .label {
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--wp--preset--color--neutral-800);
}

/* Form Elements */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="search"],
input[type="password"],
textarea,
select {
	background-color: var(--wp--preset--color--white) !important;
	border: 1px solid var(--wp--preset--color--neutral-100) !important;
	border-radius: 8px !important;
	padding: 0.75rem 1rem !important;
	font-family: inherit !important;
	font-size: 1rem !important;
	transition: var(--transition-smooth) !important;
	box-shadow: inset 0 2px 4px 0 rgb(0 0 0 / 0.05) !important;
	width: 100% !important;
}

input:focus,
textarea:focus,
select:focus {
	border-color: var(--wp--preset--color--primary) !important;
	outline: none !important;
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2) !important;
}

label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 500;
	color: var(--wp--preset--color--neutral-800);
}

/* Page Layout Refinement */
.wp-site-blocks {
	overflow-x: hidden;
}

.entry-content > * {
	margin-bottom: var(--wp--preset--spacing--m);
}

.wp-block-heading {
	letter-spacing: -0.02em;
}

/* Button Refinement */
.wp-block-button__link {
	border: none !important;
	box-shadow: var(--shadow-soft);
}

.wp-block-button__link:hover {
	filter: brightness(1.1);
	transform: scale(1.05);
}

/* News Marquee Rolling Slim */
.news-marquee {
	background: var(--wp--preset--color--primary) !important;
	color: white;
	padding: 0 !important;
	overflow: hidden;
	white-space: nowrap;
	font-size: 0.75rem;
	font-weight: 500;
	min-height: 28px;
	display: flex;
	align-items: center;
	width: 100vw !important;
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50vw !important;
	margin-right: -50vw !important;
}

.news-marquee p {
	margin: 0 !important;
	display: inline-block;
	padding-left: 100%;
	animation: marquee-scroll 30s linear infinite;
}

@keyframes marquee-scroll {
	0% { transform: translateX(0); }
	100% { transform: translateX(-100%); }
}

/* School Notice Board */
.notice-board {
	border-left: 5px solid var(--wp--preset--color--accent);
	background: #fff;
	padding: 1.5rem;
	border-radius: 4px;
	box-shadow: var(--shadow-soft);
}

.notice-board h3 {
	margin-top: 0;
	color: var(--wp--preset--color--secondary);
	font-family: var(--wp--preset--font-family--eb-garamond);
}

/* Admission Button */
.is-admission-btn .wp-block-button__link {
	background: var(--wp--preset--color--accent) !important;
	color: white !important;
	border-radius: 4px !important;
	font-weight: 700 !important;
}

/* Secondary Section BG */
.has-secondary-bg {
	background-color: var(--wp--preset--color--secondary) !important;
	color: white !important;
}

.has-secondary-bg h1, .has-secondary-bg h2, .has-secondary-bg h3, .has-secondary-bg p {
	color: white !important;
}
