/* ==========================================================================
   AIMS (All India Modern School) — Premium Enhancement Layer
   Theme-compatible (Kentwood). Palette: Yellow + White + Dark Blue.
   No blur / no glassmorphism. Additive only — does not modify theme files.
   By Jamavisa Enterprises Private Limited | www.jamavisa.in
   ========================================================================== */

:root {
	--jv-yellow: #ffc107;
	--jv-yellow-dark: #e6a700;
	--jv-blue: #020048;          /* matches theme primary */
	--jv-blue-2: #0a1a6b;
	--jv-white: #ffffff;
	--jv-ink: #232d3f;           /* theme contrast */
	--jv-radius: 16px;
	--jv-shadow-sm: 0 6px 18px rgba(2, 0, 72, .10);
	--jv-shadow: 0 14px 36px rgba(2, 0, 72, .14);
	--jv-ease: cubic-bezier(.2, .7, .2, 1);
}

@media (prefers-reduced-motion: reduce) {
	* { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* --------------------------------------------------------------------------
   1. Typography polish
   -------------------------------------------------------------------------- */
.wp-site-blocks h2.wp-block-heading,
.wp-site-blocks h3.wp-block-heading { font-weight: 600; letter-spacing: -0.01em; }

.wp-site-blocks p { line-height: 1.7; }

/* Yellow accent bar under centered section headings in main content */
.wp-site-blocks main h2.wp-block-heading.has-text-align-center::after {
	content: "";
	display: block;
	width: 64px;
	height: 4px;
	margin: 18px auto 0;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--jv-yellow), var(--jv-yellow-dark));
}

/* --------------------------------------------------------------------------
   2. Sticky header + active menu highlight
   -------------------------------------------------------------------------- */
/* Sticky ONLY on interior pages. The homepage header is a full-screen (100vh)
   hero cover, and making that sticky would pin the whole hero and freeze the
   page. So we exclude the home template from sticky behaviour. */
body:not(.home) .wp-site-blocks > header.wp-block-template-part {
	position: -webkit-sticky;
	position: sticky;
	top: 0;
	z-index: 1000;
	transition: box-shadow .35s var(--jv-ease), background-color .35s var(--jv-ease);
}

/* Inner-page header gets a shadow once scrolled (it is already dark-blue). */
body:not(.home).jv-scrolled .wp-site-blocks > header.wp-block-template-part {
	background-color: var(--jv-blue);
	box-shadow: 0 8px 28px rgba(2, 0, 72, .28);
}

/* Active / current navigation item */
.wp-block-navigation-item.jv-active > a .wp-block-navigation-item__label,
a.jv-active .wp-block-navigation-item__label {
	color: var(--jv-yellow) !important;
}
.wp-block-navigation .wp-block-navigation-item__content {
	transition: color .25s var(--jv-ease), opacity .25s var(--jv-ease);
}
.wp-block-navigation .wp-block-navigation-item__content:hover { color: var(--jv-yellow) !important; }

/* Smooth-scroll + keep anchors clear of the sticky header */
html { scroll-behavior: smooth; }
:target { scroll-margin-top: 110px; }

/* --------------------------------------------------------------------------
   3. Buttons — premium hover with yellow accent
   -------------------------------------------------------------------------- */
.wp-element-button,
.wp-block-button__link {
	transition: transform .25s var(--jv-ease), background-color .25s var(--jv-ease),
		color .25s var(--jv-ease), box-shadow .25s var(--jv-ease), border-color .25s var(--jv-ease);
	will-change: transform;
}
.wp-element-button:hover,
.wp-block-button__link:hover {
	background-color: var(--jv-yellow) !important;
	color: var(--jv-blue) !important;
	border-color: var(--jv-yellow) !important;
	transform: translateY(-3px);
	box-shadow: 0 12px 24px rgba(255, 193, 7, .35);
}
/* Outline buttons fill with yellow on hover */
.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background-color: var(--jv-yellow) !important;
	color: var(--jv-blue) !important;
}

/* --------------------------------------------------------------------------
   4. Cards — content feature boxes (homepage columns w/ background)
   -------------------------------------------------------------------------- */
.wp-site-blocks main .wp-block-columns .wp-block-column > .wp-block-group.has-background {
	border-radius: var(--jv-radius);
	box-shadow: var(--jv-shadow-sm);
	transition: transform .35s var(--jv-ease), box-shadow .35s var(--jv-ease);
	position: relative;
	overflow: hidden;
}
.wp-site-blocks main .wp-block-columns .wp-block-column > .wp-block-group.has-background:hover {
	transform: translateY(-8px);
	box-shadow: var(--jv-shadow);
}
/* Yellow top accent strip on hover */
.wp-site-blocks main .wp-block-columns .wp-block-column > .wp-block-group.has-background::before {
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--jv-yellow), var(--jv-yellow-dark));
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .4s var(--jv-ease);
}
.wp-site-blocks main .wp-block-columns .wp-block-column > .wp-block-group.has-background:hover::before {
	transform: scaleX(1);
}

/* --------------------------------------------------------------------------
   5. Images — rounded, subtle zoom on hover (galleries / cards)
   -------------------------------------------------------------------------- */
.wp-site-blocks main .wp-block-image {
	overflow: hidden;
	border-radius: var(--jv-radius);
}
.wp-site-blocks main .wp-block-image img {
	transition: transform .6s var(--jv-ease);
	display: block;
	width: 100%;
}
.wp-site-blocks main .wp-block-image:hover img { transform: scale(1.06); }

/* --------------------------------------------------------------------------
   6. Inner-page hero band (built from the page title)
   -------------------------------------------------------------------------- */
.wp-site-blocks main .wp-block-group:has(> .wp-block-post-title),
.wp-site-blocks main .wp-block-group:has(> .wp-block-query-title) {
	background: linear-gradient(120deg, var(--jv-blue) 0%, var(--jv-blue-2) 100%);
	border-radius: 22px;
	max-width: 1120px;
	margin-left: auto;
	margin-right: auto;
	padding: clamp(2.5rem, 6vw, 4.75rem) 1.5rem;
	box-shadow: 0 20px 44px rgba(2, 0, 72, .20);
	position: relative;
	overflow: hidden;
}
.wp-site-blocks main .wp-block-group:has(> .wp-block-post-title)::after,
.wp-site-blocks main .wp-block-group:has(> .wp-block-query-title)::after {
	content: "";
	position: absolute;
	right: -60px; top: -60px;
	width: 220px; height: 220px;
	border-radius: 50%;
	background: radial-gradient(circle at center, rgba(255, 193, 7, .28), transparent 70%);
}
.wp-site-blocks main .wp-block-post-title,
.wp-site-blocks main .wp-block-query-title {
	color: var(--jv-white) !important;
	text-align: center;
	position: relative;
	z-index: 1;
}
.wp-site-blocks main .wp-block-group:has(> .wp-block-post-title) .wp-block-post-title::after {
	content: "";
	display: block;
	width: 80px; height: 5px;
	margin: 20px auto 0;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--jv-yellow), var(--jv-yellow-dark));
}

/* --------------------------------------------------------------------------
   6b. Homepage announcements ticker (inserted after the hero)
   -------------------------------------------------------------------------- */
.jv-ticker {
	display: flex;
	align-items: stretch;
	background: var(--jv-blue);
	color: var(--jv-white);
	overflow: hidden;
	border-top: 3px solid var(--jv-yellow);
	border-bottom: 3px solid var(--jv-yellow);
}
.jv-ticker__label {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: .55rem;
	background: linear-gradient(90deg, var(--jv-yellow), var(--jv-yellow-dark));
	color: var(--jv-blue);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .05em;
	padding: .85rem 1.35rem;
	white-space: nowrap;
	z-index: 2;
	box-shadow: 6px 0 14px rgba(2, 0, 72, .25);
}
.jv-ticker__viewport { flex: 1 1 auto; overflow: hidden; position: relative; }
.jv-ticker__track {
	display: inline-flex;
	align-items: center;
	white-space: nowrap;
	will-change: transform;
	animation: jv-ticker-move linear infinite;
}
.jv-ticker:hover .jv-ticker__track { animation-play-state: paused; }
.jv-ticker__item {
	display: inline-flex;
	align-items: center;
	gap: .6rem;
	padding: .85rem 2.25rem;
	font-size: 1rem;
	font-weight: 500;
	position: relative;
}
.jv-ticker__item::after {
	content: "";
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--jv-yellow);
}
.jv-ticker__item i { color: var(--jv-yellow); }
@keyframes jv-ticker-move {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}
@media (max-width: 600px) {
	.jv-ticker__label { padding: .7rem .9rem; font-size: .8rem; }
	.jv-ticker__item { padding: .7rem 1.4rem; font-size: .9rem; }
}

/* --------------------------------------------------------------------------
   7. Footer touches
   -------------------------------------------------------------------------- */
.wp-block-social-link { transition: transform .25s var(--jv-ease); }
.wp-block-social-link:hover { transform: translateY(-4px) scale(1.08); }

.has-primary-background-color a:hover,
footer a:hover { color: var(--jv-yellow) !important; }

/* JS-injected footer info strip */
.jv-footer-info {
	background: var(--jv-blue-2);
	color: var(--jv-white);
	padding: clamp(2rem, 5vw, 3.25rem) clamp(1rem, 5vw, 3rem);
}
.jv-footer-info__grid {
	max-width: 1120px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1.75rem;
}
.jv-footer-info h4 {
	color: var(--jv-yellow);
	font-size: 1.05rem;
	margin: 0 0 1rem;
	letter-spacing: .02em;
}
.jv-footer-info a, .jv-footer-info p { color: rgba(255, 255, 255, .9); text-decoration: none; }
.jv-footer-info a { display: inline-flex; align-items: center; gap: .55rem; line-height: 1.9; }
.jv-footer-info a:hover { color: var(--jv-yellow); }
.jv-footer-info i { color: var(--jv-yellow); width: 18px; text-align: center; }
.jv-footer-info ul { list-style: none; margin: 0; padding: 0; }

/* --------------------------------------------------------------------------
   8. Floating WhatsApp + Scroll-to-top buttons
   -------------------------------------------------------------------------- */
.jv-fab {
	position: fixed;
	right: 22px;
	z-index: 1200;
	width: 56px; height: 56px;
	border: none;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 26px;
	box-shadow: 0 10px 26px rgba(0, 0, 0, .25);
	transition: transform .3s var(--jv-ease), box-shadow .3s var(--jv-ease), opacity .3s var(--jv-ease);
	text-decoration: none;
}
.jv-fab:hover { transform: translateY(-4px) scale(1.06); }

.jv-whatsapp {
	bottom: 22px;
	background: #25d366;
	color: #fff;
	animation: jv-pulse 2.4s infinite;
}
.jv-whatsapp:hover { color: #fff; box-shadow: 0 12px 30px rgba(37, 211, 102, .5); }

.jv-top {
	bottom: 90px;
	background: var(--jv-blue);
	color: var(--jv-yellow);
	font-size: 22px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(16px);
}
.jv-top.jv-show { opacity: 1; visibility: visible; transform: translateY(0); }
.jv-top:hover { background: var(--jv-yellow); color: var(--jv-blue); }

@keyframes jv-pulse {
	0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); }
	70%  { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
	100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* --------------------------------------------------------------------------
   9. Scroll-reveal animations + counters
   -------------------------------------------------------------------------- */
.jv-anim .jv-reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity .7s var(--jv-ease), transform .7s var(--jv-ease);
	will-change: opacity, transform;
}
.jv-anim .jv-reveal.jv-in { opacity: 1; transform: none; }

.jv-counter { font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   9b. Premium page components (used by page content via wp:html blocks)
   -------------------------------------------------------------------------- */
.jv-container { max-width: 1200px; margin: 0 auto; }

.jv-sec-head { text-align: center; max-width: 760px; margin: 0 auto clamp(2rem, 4vw, 3rem); }
.jv-sec-head .jv-eyebrow {
	display: inline-block;
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--jv-yellow-dark);
	margin-bottom: .6rem;
}
.jv-sec-head h2 { margin: 0 0 .6rem; color: var(--jv-blue); font-weight: 700; line-height: 1.15; }
.jv-sec-head p { margin: 0; color: #4a5568; font-size: 1.05rem; }
.jv-sec-head .jv-bar { width: 70px; height: 4px; margin: 1rem auto 0; border-radius: 999px; background: linear-gradient(90deg, var(--jv-yellow), var(--jv-yellow-dark)); }

.jv-grid { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.jv-grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.jv-grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.jv-card {
	background: var(--jv-white);
	border-radius: var(--jv-radius);
	padding: 2rem 1.6rem;
	box-shadow: var(--jv-shadow-sm);
	border: 1px solid #eef0f6;
	transition: transform .35s var(--jv-ease), box-shadow .35s var(--jv-ease), border-color .35s var(--jv-ease);
	position: relative;
	overflow: hidden;
}
.jv-card::before {
	content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
	background: linear-gradient(90deg, var(--jv-yellow), var(--jv-yellow-dark));
	transform: scaleX(0); transform-origin: left; transition: transform .4s var(--jv-ease);
}
.jv-card:hover { transform: translateY(-8px); box-shadow: var(--jv-shadow); border-color: transparent; }
.jv-card:hover::before { transform: scaleX(1); }
.jv-card__icon {
	width: 60px; height: 60px; border-radius: 16px;
	display: flex; align-items: center; justify-content: center;
	background: linear-gradient(135deg, var(--jv-blue), var(--jv-blue-2));
	color: var(--jv-yellow); font-size: 26px; margin-bottom: 1.1rem;
	transition: transform .35s var(--jv-ease);
}
.jv-card:hover .jv-card__icon { transform: rotate(-6deg) scale(1.08); }
.jv-card h3 { margin: 0 0 .55rem; color: var(--jv-blue); font-size: 1.2rem; font-weight: 700; }
.jv-card p { margin: 0; color: #51596b; font-size: .98rem; line-height: 1.65; }

/* Section wrappers */
.jv-section { padding: clamp(2.75rem, 6vw, 4.75rem) clamp(1rem, 5vw, 2.5rem); }
.jv-section--tint { background: #f6f8fc; }
.jv-section--blue { background: linear-gradient(135deg, var(--jv-blue), var(--jv-blue-2)); color: #fff; }
.jv-section--blue .jv-sec-head h2, .jv-section--blue h2, .jv-section--blue h3 { color: #fff; }
.jv-section--blue .jv-sec-head p { color: rgba(255,255,255,.85); }

/* Gallery */
.jv-gallery { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.jv-gallery a { display: block; overflow: hidden; border-radius: var(--jv-radius); position: relative; aspect-ratio: 4/3; box-shadow: var(--jv-shadow-sm); }
.jv-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--jv-ease); }
.jv-gallery a:hover img { transform: scale(1.08); }

/* Stats / counters */
.jv-stats { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); text-align: center; }
.jv-stat__num { font-size: clamp(2.2rem, 5vw, 3rem); font-weight: 800; color: var(--jv-yellow); line-height: 1; }
.jv-stat__label { margin-top: .5rem; font-size: .95rem; color: rgba(255,255,255,.9); letter-spacing: .02em; }

/* Inline CTA band */
.jv-cta { text-align: center; }
.jv-cta h2 { margin: 0 0 .8rem; }
.jv-cta p { margin: 0 auto 1.6rem; max-width: 640px; }
.jv-btn {
	display: inline-flex; align-items: center; gap: .6rem;
	background: var(--jv-yellow); color: var(--jv-blue) !important;
	font-weight: 700; text-decoration: none;
	padding: .9rem 2rem; border-radius: 999px;
	transition: transform .25s var(--jv-ease), box-shadow .25s var(--jv-ease), background-color .25s var(--jv-ease);
	box-shadow: 0 10px 24px rgba(255,193,7,.35);
}
.jv-btn:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(255,193,7,.5); color: var(--jv-blue) !important; }
.jv-btn--ghost { background: transparent; color: #fff !important; border: 2px solid rgba(255,255,255,.6); box-shadow: none; }
.jv-btn--ghost:hover { background: #fff; color: var(--jv-blue) !important; border-color: #fff; }
.jv-btn-row { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

/* Info list (contact) */
.jv-info { display: grid; gap: 1.1rem; }
.jv-info__item { display: flex; gap: 1rem; align-items: flex-start; }
.jv-info__item i { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--jv-blue); color: var(--jv-yellow); font-size: 20px; }
.jv-info__item h4 { margin: 0 0 .2rem; color: var(--jv-blue); font-size: 1.02rem; }
.jv-info__item a, .jv-info__item p { margin: 0; color: #51596b; text-decoration: none; }
.jv-info__item a:hover { color: var(--jv-yellow-dark); }

/* --------------------------------------------------------------------------
   9c. Premium footer (template part)
   -------------------------------------------------------------------------- */
.jv-foot { background: var(--jv-blue); color: rgba(255,255,255,.86); }
.jv-foot__top {
	display: grid;
	gap: 2rem;
	grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
	padding: clamp(2.5rem, 5vw, 4rem) clamp(1rem, 5vw, 2.5rem) clamp(2rem, 4vw, 3rem);
}
.jv-foot__logo { max-width: 220px; height: auto; margin-bottom: 1rem; }
.jv-foot__about p { line-height: 1.7; margin: 0 0 1.1rem; font-size: .95rem; }
.jv-foot h4 {
	color: #fff; font-size: 1.08rem; font-weight: 700; margin: 0 0 1.1rem;
	position: relative; padding-bottom: .6rem;
}
.jv-foot h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 38px; height: 3px; border-radius: 999px; background: var(--jv-yellow); }
.jv-foot ul { list-style: none; margin: 0; padding: 0; }
.jv-foot ul li { margin: 0 0 .7rem; }
.jv-foot a { color: rgba(255,255,255,.86); text-decoration: none; transition: color .25s var(--jv-ease), padding-left .25s var(--jv-ease); }
.jv-foot__col ul li a:hover { color: var(--jv-yellow); padding-left: 4px; }
.jv-foot__contact li { display: flex; gap: .7rem; align-items: flex-start; font-size: .95rem; }
.jv-foot__contact i { color: var(--jv-yellow); margin-top: 4px; width: 18px; text-align: center; flex: 0 0 auto; }
.jv-foot__map { display: inline-flex; align-items: center; gap: .5rem; margin-top: .3rem; color: var(--jv-yellow); font-weight: 600; }
.jv-foot__social { display: flex; gap: .6rem; margin-top: .4rem; }
.jv-foot__social a {
	width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
	background: rgba(255,255,255,.10); color: #fff; font-size: 18px;
	transition: transform .25s var(--jv-ease), background-color .25s var(--jv-ease), color .25s var(--jv-ease);
}
.jv-foot__social a:hover { background: var(--jv-yellow); color: var(--jv-blue); transform: translateY(-4px); }
.jv-foot__bottom { border-top: 1px solid rgba(255,255,255,.12); background: rgba(0,0,0,.18); }
.jv-foot__bottom-in {
	display: flex; flex-wrap: wrap; gap: .6rem; justify-content: space-between; align-items: center;
	padding: 1.1rem clamp(1rem, 5vw, 2.5rem); font-size: .88rem;
}
.jv-foot__bottom a { color: var(--jv-yellow); font-weight: 600; }
.jv-foot__bottom a:hover { color: #fff; }
@media (max-width: 900px) { .jv-foot__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .jv-foot__top { grid-template-columns: 1fr; text-align: left; } .jv-foot__bottom-in { justify-content: center; text-align: center; } }

/* --------------------------------------------------------------------------
   10. Responsive refinements
   -------------------------------------------------------------------------- */
@media (max-width: 781px) {
	.jv-fab { width: 50px; height: 50px; font-size: 22px; right: 16px; }
	.jv-whatsapp { bottom: 16px; }
	.jv-top { bottom: 78px; }
	.wp-site-blocks main .wp-block-group:has(> .wp-block-post-title) { border-radius: 16px; }
}
@media (max-width: 600px) {
	.jv-footer-info__grid { gap: 1.25rem; }
}
