/* Jawaharlal Nehru School - Senior Wing: Blue & White design (v2). Loaded after weaver.css / jns-motion.css. */
:root {
	--b900: #030c26; --b800: #061a52; --b700: #0a2a7a; --b600: #0e3a9e; --b500: #1a52c4; --b400: #4a7fdc; --b300: #8fb0ea; --b100: #e6edfb; --b50: #f4f7fd;
	--ink: #14234a; --mute: #5a6a8c; --line: #dbe6fb; --white: #fff;
	--sh1: 0 6px 20px rgba(13, 59, 153, .10); --sh2: 0 18px 44px rgba(13, 59, 153, .20);
	--head: "Poppins", "Segoe UI", system-ui, sans-serif; --body: "Inter", "Segoe UI", system-ui, sans-serif;
}
html { scroll-behavior: smooth; }
body { font-family: var(--body); color: var(--ink); background: #fff !important; font-size: 16px; line-height: 1.7; }
h1, h2, h3, h4, h5, h6 { font-family: var(--head); color: var(--b900); }
a { color: var(--b600); }
a:hover { color: var(--b800); text-decoration: none; }
header { display: contents; }

/* ---------- top bar ---------- */
.jsb-top { background: var(--b900); color: #cfe0ff; font-size: .86rem; }
.jsb-wrap { display: flex; align-items: center; justify-content: space-between; gap: 10px 22px; flex-wrap: wrap; }
.jsb-top .jsb-wrap { padding-top: 8px; padding-bottom: 8px; }
.jsb-top a, .jsb-top span { color: #cfe0ff; }
.jsb-top i { color: var(--b400); margin-right: 5px; }
.jsb-top a:hover { color: #fff; }
.jsb-top-l, .jsb-top-r { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 20px; }
.jsb-soc { display: inline-flex; gap: 8px; margin-left: 6px; }
.jsb-soc a { width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, .12); display: inline-flex; align-items: center; justify-content: center; transition: transform .3s, background .3s; }
.jsb-soc a i { margin: 0; color: #fff; }
.jsb-soc a:hover { background: var(--b500); transform: translateY(-3px) rotate(8deg); }

/* ---------- brand bar ---------- */
.jsb-brand { background: #fff; border-bottom: 1px solid var(--line); }
.jsb-brand .jsb-wrap { padding-top: 12px; padding-bottom: 12px; }
.jsb-logo { display: flex; align-items: center; gap: 16px; text-decoration: none !important; }
.jsb-logo img { width: 72px; height: auto; flex: none; transition: transform .6s ease; filter: drop-shadow(0 4px 8px rgba(13, 59, 153, .25)); }
.jsb-logo:hover img { transform: rotateY(360deg); }
.jsb-logo b { display: block; font: 800 clamp(1.3rem, 2.6vw, 1.9rem)/1.1 var(--head); color: var(--b800); letter-spacing: -.2px; }
.jsb-logo em { display: block; font: 600 .95rem/1.4 var(--head); font-style: normal; color: var(--b500); letter-spacing: 2px; text-transform: uppercase; margin: 2px 0; }
.jsb-logo small { display: block; font-size: .8rem; color: var(--mute); }
.jsb-brand-r { display: flex; flex-wrap: wrap; gap: 10px; }
.jsb-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; border-radius: 50px; font: 600 .92rem/1 var(--head); text-decoration: none !important; background: linear-gradient(135deg, var(--b600), var(--b500)); color: #fff !important; box-shadow: 0 8px 18px rgba(21, 83, 199, .35); border: 2px solid transparent; transition: transform .25s, box-shadow .25s, background .25s; position: relative; overflow: hidden; }
.jsb-btn:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(21, 83, 199, .45); color: #fff; }
.jsb-btn::after { content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .5), transparent); transform: skewX(-20deg); animation: jsbShine 4s ease-in-out infinite; }
.jsb-btn-line { background: #fff; color: var(--b600) !important; border-color: var(--b600); box-shadow: none; }
.jsb-btn-line:hover { background: var(--b600); color: #fff !important; }
.jsb-btn-line::after { display: none; }
.jsb-btn-solid { background: linear-gradient(135deg, var(--b700), var(--b500)); }
.jsb-btn-white { background: #fff; color: var(--b700) !important; box-shadow: 0 8px 20px rgba(0, 0, 0, .2); }
.jsb-btn-white:hover { color: var(--b800) !important; }
.jsb-btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .7); box-shadow: none; }
.jsb-btn-ghost:hover { background: #fff; color: var(--b700) !important; }
@keyframes jsbShine { 0% { left: -80%; } 40%, 100% { left: 140%; } }

/* ---------- navigation ---------- */
nav.jsb-nav { position: sticky !important; top: 0; z-index: 1030; background: linear-gradient(90deg, var(--b800), var(--b600)) !important; padding: 0; box-shadow: 0 8px 22px rgba(6, 26, 68, .25); animation: none !important; transform: none !important; }
nav.jsb-nav .container-fluid { max-width: 1320px; }
nav.jsb-nav .navbar-nav { flex-wrap: wrap; justify-content: center; }
nav.jsb-nav .nav-link { color: #fff !important; font: 500 .88rem/1 var(--head); padding: 17px 13px !important; position: relative; border: 0 !important; transition: background .25s; white-space: nowrap; }
nav.jsb-nav .nav-link::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 9px; height: 2px; background: #fff; transform: scaleX(0); transition: transform .3s; border-radius: 2px; }
nav.jsb-nav .nav-item:hover > .nav-link, nav.jsb-nav .nav-link:hover { background: rgba(255, 255, 255, .1); }
nav.jsb-nav .nav-item:hover > .nav-link::after { transform: scaleX(1); }
nav.jsb-nav .dropdown-toggle::after { border: 0; content: "\f107"; font-family: FontAwesome; margin-left: 6px; vertical-align: 0; position: static; background: none; height: auto; transform: none; }
nav.jsb-nav .dropdown-menu { border: 0; border-radius: 14px; padding: 8px; margin-top: 0; box-shadow: var(--sh2); border-top: 3px solid var(--b500); min-width: 230px; }
nav.jsb-nav .dropdown-item { border-radius: 9px; padding: 9px 14px; font: 500 .9rem var(--body); color: var(--ink); transition: background .2s, padding .2s, color .2s; }
nav.jsb-nav .dropdown-item:hover { background: var(--b100); color: var(--b600); padding-left: 20px; }
@media (min-width: 992px) { nav.jsb-nav .dropdown:hover > .dropdown-menu { display: block; animation: jsbDrop .25s ease; } }
@keyframes jsbDrop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
nav.jsb-nav .navbar-toggler { border: 2px solid rgba(255, 255, 255, .6); margin: 8px 0; padding: 5px 10px; }
nav.jsb-nav .navbar-toggler-icon { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='white' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.4' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"); }
@media (max-width: 991px) { nav.jsb-nav .navbar-nav { background: #fff; border-radius: 14px; margin: 6px 0 12px; padding: 8px; } nav.jsb-nav .nav-link { color: var(--ink) !important; padding: 12px 14px !important; } nav.jsb-nav .nav-link::after { display: none; } nav.jsb-nav .dropdown-menu { box-shadow: none; border-top: 0; background: var(--b50); } }

/* ---------- hero slider ---------- */
.jns-slider { position: relative; }
.jns-slider::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 54px; background: #fff; clip-path: ellipse(60% 100% at 50% 100%); z-index: 3; pointer-events: none; }
.owl-theme .owl-dots .owl-dot span { background: rgba(255, 255, 255, .6); }
.owl-theme .owl-dots .owl-dot.active span { background: #fff; }

/* ---------- quick links ---------- */
.jsb-quick { position: relative; z-index: 5; margin-top: -78px; padding-bottom: 20px; }
.jsb-quick-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.jsb-quick-grid a { background: #fff; border-radius: 18px; padding: 22px 12px 20px; text-align: center; box-shadow: var(--sh2); text-decoration: none !important; border-bottom: 4px solid var(--b500); transition: transform .3s ease-out, background .3s; }
.jsb-quick-grid a span { width: 58px; height: 58px; border-radius: 50%; background: var(--b100); color: var(--b600); display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 10px; transition: background .3s, color .3s, transform .5s; }
.jsb-quick-grid a b { display: block; font: 700 1rem/1.2 var(--head); color: var(--b800); }
.jsb-quick-grid a small { color: var(--mute); font-size: .8rem; }
.jsb-quick-grid a:hover { background: linear-gradient(160deg, var(--b700), var(--b500)); transform: translateY(-8px); }
.jsb-quick-grid a:hover b, .jsb-quick-grid a:hover small { color: #fff; }
.jsb-quick-grid a:hover span { background: rgba(255, 255, 255, .2); color: #fff; transform: rotateY(360deg); }

/* ---------- section titles ---------- */
section h1.text-center, .jsb-head h1 { font: 800 clamp(1.7rem, 3.4vw, 2.4rem)/1.2 var(--head) !important; color: var(--b800) !important; text-transform: none !important; letter-spacing: -.3px; }
.jsb-kick { display: inline-block; font: 600 .8rem/1 var(--head); letter-spacing: 3px; text-transform: uppercase; color: var(--b500); margin-bottom: 8px; }
.line { display: block !important; width: 84px !important; height: 5px !important; margin: 10px auto 26px !important; border-radius: 6px; background: linear-gradient(90deg, var(--b600), var(--b400)) !important; border: 0 !important; position: relative; overflow: hidden; }
.line::after { content: ""; position: absolute; top: 0; left: -40%; width: 40%; height: 100%; background: rgba(255, 255, 255, .8); animation: jsbLine 2.6s ease-in-out infinite; }
@keyframes jsbLine { to { left: 120%; } }

/* ---------- welcome / intro (CMS) ---------- */
.jsb-intro .intro-box { background: var(--b50); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--sh1); }
.jsb-intro { padding: 20px 0 10px; }

/* ---------- about ---------- */
section.about-home { background: #fff; padding: 56px 0 30px; }
.ab-text p { font-size: 1.05rem; color: var(--ink); text-align: left; }
.pdesk-btn, a.pdesk-btn { display: inline-flex; align-items: center; gap: 10px; background: linear-gradient(135deg, var(--b600), var(--b500)); color: #fff !important; padding: 12px 26px; border-radius: 50px; font: 600 .95rem var(--head); box-shadow: 0 8px 18px rgba(21, 83, 199, .35); text-decoration: none !important; transition: transform .25s, box-shadow .25s; }
.pdesk-btn:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(21, 83, 199, .45); }
.ab-collage img { border-radius: 20px !important; box-shadow: var(--sh2); }
.ab-badge { background: linear-gradient(160deg, var(--b700), var(--b500)) !important; color: #fff !important; border-radius: 16px !important; }
.ab-card { background: #fff !important; border: 1px solid var(--line); border-radius: 22px !important; box-shadow: var(--sh1) !important; transition: transform .35s, box-shadow .35s; }
.ab-card:hover { transform: translateY(-6px); box-shadow: var(--sh2) !important; }
.ab-ico { background: linear-gradient(135deg, var(--b700), var(--b500)) !important; color: #fff !important; border-radius: 16px !important; }
.ab-sub { font: 800 1.7rem var(--head) !important; color: var(--b800) !important; }
.ab-val h4 i { color: var(--b500) !important; }

/* ---------- numbers ---------- */
.jsb-stats { background: linear-gradient(120deg, var(--b900), var(--b700) 60%, var(--b600)); color: #fff; padding: 46px 0; position: relative; overflow: hidden; margin-top: 30px; }
.jsb-stats::before { content: ""; position: absolute; right: -80px; top: -120px; width: 340px; height: 340px; border-radius: 50%; border: 50px solid rgba(255, 255, 255, .06); animation: jsbSpin 40s linear infinite; }
.jsb-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; position: relative; }
.jsb-stats-grid div { padding: 6px 10px; border-right: 1px solid rgba(255, 255, 255, .18); }
.jsb-stats-grid div:last-child { border-right: 0; }
.jsb-stats-grid b { display: block; font: 800 clamp(2rem, 4vw, 3rem)/1.1 var(--head); color: #fff; }
.jsb-stats-grid small { color: #bcd3ff; font-size: .95rem; letter-spacing: 1px; text-transform: uppercase; }
@keyframes jsbSpin { to { transform: rotate(360deg); } }

/* ---------- news & notices ---------- */
.jsb-news { background: var(--b50); padding: 56px 0 50px; }
.jsb-news h1.text-center { margin-bottom: 0; }
.BG-2 { background: #fff; border-radius: 22px; box-shadow: var(--sh1); overflow: hidden; border: 1px solid var(--line); transition: transform .35s, box-shadow .35s; }
.BG-2:hover { transform: translateY(-6px); box-shadow: var(--sh2); }
.BG-2 .bg-1 { background: linear-gradient(135deg, var(--b700), var(--b500)) !important; color: #fff !important; font: 700 1.05rem var(--head) !important; letter-spacing: 1.5px; margin: 0 !important; padding: 16px !important; }
.news-date { background: linear-gradient(160deg, var(--b700), var(--b500)) !important; color: #fff !important; border-radius: 12px !important; }
.news-item a { color: var(--b600) !important; font-weight: 600; }
.news-item strong { color: var(--b900); }
.panel, .panel-default { border: 0 !important; box-shadow: none !important; }
.panel-footer { background: var(--b50) !important; border: 0 !important; }

/* ---------- principal ---------- */
.pdesk { border-radius: 26px !important; box-shadow: var(--sh2) !important; overflow: hidden; }
.pdesk-photo { background: linear-gradient(160deg, var(--b800), var(--b500)) !important; }
.pdesk-tag { background: var(--b100) !important; color: var(--b600) !important; border-radius: 50px; font-weight: 700; }
.pdesk-body h2 { font: 700 1.6rem var(--head) !important; color: var(--b800) !important; }
.pdesk-body h2::after { background: linear-gradient(90deg, var(--b600), var(--b300)) !important; }

/* ---------- photo gallery ---------- */
.jsb-gal { padding: 56px 0 50px; background: #fff; }
.jsb-gal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.jsb-g { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; box-shadow: var(--sh1); background: var(--b800); }
.jsb-g:nth-child(1), .jsb-g:nth-child(6) { grid-column: span 2; aspect-ratio: auto; grid-row: span 2; }
.jsb-g img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; display: block; }
.jsb-g span { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 16px 12px; color: #fff; font: 600 .95rem var(--head); background: linear-gradient(transparent, rgba(6, 26, 68, .9)); transform: translateY(40%); opacity: 0; transition: transform .4s, opacity .4s; }
.jsb-g:hover img { transform: scale(1.1); }
.jsb-g:hover span { transform: none; opacity: 1; }
.jsb-g:hover { box-shadow: var(--sh2); }

/* ---------- highlights ---------- */
.jsb-high { background: var(--b50); padding: 30px 0; }
.counter { background: #fff !important; border: 1px solid var(--line) !important; border-radius: 22px !important; box-shadow: var(--sh1) !important; color: var(--b900) !important; }
.counter .counter-value, .counter h3 { color: var(--b800) !important; }
.counter h3::after { background: var(--b500) !important; }

/* ---------- inner pages ---------- */
.jns-hero { background: linear-gradient(120deg, var(--b900), var(--b700) 60%, var(--b500)) !important; border: 0 !important; padding: 46px 0 56px !important; position: relative; overflow: hidden; }
.jns-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 38px; background: #fff; clip-path: ellipse(55% 100% at 50% 100%); }
.jns-hero h1 { color: #fff !important; font: 800 clamp(1.9rem, 4vw, 2.8rem)/1.15 var(--head) !important; text-shadow: none !important; }
.jns-hero .jns-hero-kicker { color: var(--b300) !important; }
.jns-crumbs, .jns-crumbs a, .jns-crumbs span { color: #cfe0ff !important; }
.jns-crumbs a:hover { color: #fff !important; }
.jns-crumbs a:last-child, .jns-crumbs strong { color: #fff !important; }
.jns-hero-dot { background: rgba(255, 255, 255, .1) !important; }
.page-wrapper { border-radius: 22px !important; border: 1px solid var(--line); border-top: 4px solid var(--b500) !important; box-shadow: var(--sh1) !important; }
.page-wrapper h1, .page-wrapper h2 { color: var(--b800) !important; font-family: var(--head) !important; }
.sidebar, .sidebar-wrapper, aside { border-radius: 22px; }
.jns-list-item { border-radius: 18px !important; border: 1px solid var(--line) !important; box-shadow: var(--sh1) !important; }
.jns-list-item:hover { box-shadow: var(--sh2) !important; transform: translateY(-4px); }
.btn-primary { background: var(--b600); border-color: var(--b600); border-radius: 50px; }
.btn-primary:hover { background: var(--b700); border-color: var(--b700); }
table th { background: var(--b100); color: var(--b800); }

/* ---------- admission band + footer ---------- */
.jsb-cta { background: linear-gradient(120deg, var(--b700), var(--b500)); color: #fff; padding: 46px 0; position: relative; overflow: hidden; }
.jsb-cta::before { content: ""; position: absolute; left: -90px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%; background: rgba(255, 255, 255, .08); animation: jsbFloat 8s ease-in-out infinite; }
.jsb-cta-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; position: relative; }
.jsb-cta h2 { color: #fff; font: 800 2rem var(--head); margin: 0 0 6px; }
.jsb-cta p { margin: 0; color: #dbe8ff; max-width: 620px; }
.jsb-cta-b { display: flex; flex-wrap: wrap; gap: 12px; }
@keyframes jsbFloat { 50% { transform: translateY(-24px); } }
.jns-footer { background: linear-gradient(160deg, var(--b900), #0a2358 60%, var(--b800)) !important; }
.jns-footer h4, .jns-footer h5, .jns-fhead { color: #fff !important; font-family: var(--head) !important; }
.jns-flogo { width: 66px; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .35)); }
.bg-footer, .copyright { background: var(--b900) !important; border-top: 1px solid rgba(255, 255, 255, .12); }

/* fixed social bar on the left */
.fixed-media .box { background: #fff !important; border-radius: 0 12px 12px 0 !important; box-shadow: var(--sh1); }
.fixed-media .box i { color: var(--b600) !important; }

/* responsive */
@media (max-width: 991px) {
	.jsb-brand .jsb-wrap { justify-content: center; text-align: center; }
	.jsb-logo { flex-direction: column; text-align: center; gap: 6px; }
	.jsb-brand-r { justify-content: center; }
	.jsb-top .jsb-wrap { justify-content: center; }
	.jsb-quick-grid { grid-template-columns: repeat(3, 1fr); }
	.jsb-gal-grid { grid-template-columns: repeat(2, 1fr); }
	.jsb-g:nth-child(1), .jsb-g:nth-child(6) { grid-column: span 2; aspect-ratio: 16 / 9; grid-row: auto; }
	.jsb-stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 22px; }
	.jsb-stats-grid div:nth-child(2) { border-right: 0; }
}
@media (max-width: 575px) {
	.jsb-quick { margin-top: -50px; }
	.jsb-quick-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.jsb-quick-grid a:last-child { grid-column: span 2; }
	.jsb-hide-sm { display: none; }
	.jsb-gal-grid { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }

/* fixes round 1 */
.fixed-media { display: none !important; }
nav.jsb-nav .nav-link { font-size: .82rem; padding: 17px 9px !important; letter-spacing: 0; }
nav.jsb-nav .nav-link::after { left: 9px; right: 9px; }
nav.jsb-nav .container-fluid { max-width: 1400px; }
.jsb-btn-line, a.jsb-btn.jsb-btn-line { color: var(--b600) !important; background: #fff; }
a.jsb-btn.jsb-btn-line:hover { color: #fff !important; background: var(--b600); }
/* fonts: weaver.css sets "html * { font-family: math }", so override on every element */
html body, html body * { font-family: var(--body); }
html body h1, html body h2, html body h3, html body h4, html body h5, html body h6, html body .jsb-btn, html body .nav-link, html body .jsb-logo b, html body .jsb-logo em, html body .jsb-quick-grid b, html body .jsb-stats-grid b, html body .jsb-kick, html body .line + * h1 { font-family: var(--head); }
html body .fa, html body i.fa, html body [class^="fa-"], html body [class*=" fa-"] { font-family: FontAwesome; }
html body .dropdown-toggle::after { font-family: FontAwesome; }
/* weaver.css forces "html * { color:#000 }", so colours are set on the elements themselves */
.jsb-stats-grid b, .jsb-stats-grid b span { color: #fff; }
.jsb-stats-grid small { color: #bcd3ff; }
.jsb-quick-grid a span i { color: var(--b600); }
.jsb-quick-grid a:hover span i { color: #fff; }
.jsb-quick-grid a b { color: var(--b800); }
.jsb-quick-grid a:hover b, .jsb-quick-grid a:hover small { color: #fff; }
.jsb-quick-grid a small { color: var(--mute); }
.jsb-cta h2, .jsb-cta p { color: #fff; }
.jsb-cta p { color: #dbe8ff; }
.jsb-cta .jsb-btn i { color: inherit; }
.jsb-btn i { color: inherit; }
.jsb-top i { color: var(--b400); }
.jsb-soc a i { color: #fff; }
.jns-hero h1 { color: #fff !important; }
.news-date span, .news-date strong { color: #fff !important; }
.ab-badge b, .ab-badge { color: #fff !important; }
.ab-badge b { font-family: var(--head); }
.jsb-g:nth-child(1), .jsb-g:nth-child(6) { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 3; }
.jsb-high:not(:has(.counter)) { display: none; }
@media (max-width: 991px) { .jsb-g:nth-child(1), .jsb-g:nth-child(6) { grid-column: auto; aspect-ratio: 4 / 3; } }
.jns-hero .jns-crumbs, .jns-hero .jns-crumbs * { color: #cfe0ff !important; }
.jns-hero .jns-crumbs a:hover { color: #fff !important; }
.jns-hero .jns-crumbs > :last-child { color: #fff !important; font-weight: 600; }
.page-wrapper { border-left: 1px solid var(--line) !important; }
nav.jsb-nav .navbar-toggler { background: transparent !important; border: 2px solid rgba(255, 255, 255, .7) !important; border-radius: 10px; margin: 9px 0; padding: 4px 11px; }
nav.jsb-nav .navbar-toggler-icon { background: none !important; width: auto; height: auto; display: inline-block; }
nav.jsb-nav .navbar-toggler-icon::before { content: "\f0c9"; font-family: FontAwesome; color: #fff; font-size: 1.5rem; line-height: 1.4; }

/* v8: deeper navy / cobalt palette */
nav.jsb-nav { background: linear-gradient(90deg, #04134a, #0a2a7a 55%, #0e3a9e) !important; }
.jsb-top { background: #030c26; }
.jsb-btn { background: linear-gradient(135deg, #0a2a7a, #1a52c4); box-shadow: 0 8px 18px rgba(10, 42, 122, .4); }
.jsb-btn:hover { box-shadow: 0 12px 26px rgba(10, 42, 122, .5); }
.pdesk-btn, a.pdesk-btn { background: linear-gradient(135deg, #0a2a7a, #1a52c4); box-shadow: 0 8px 18px rgba(10, 42, 122, .4); }
.jsb-stats { background: linear-gradient(120deg, #030c26, #061a52 55%, #0a2a7a); }
.jsb-cta { background: linear-gradient(120deg, #061a52, #0e3a9e); }
.jns-hero { background: linear-gradient(120deg, #030c26, #061a52 55%, #0e3a9e) !important; }
.jns-footer { background: linear-gradient(160deg, #030c26, #051544 60%, #061a52) !important; }
.bg-footer, .copyright { background: #030c26 !important; }
.BG-2 .bg-1 { background: linear-gradient(135deg, #061a52, #0e3a9e) !important; }
.pdesk-photo { background: linear-gradient(160deg, #04134a, #0e3a9e) !important; }
.ab-badge, .ab-ico, .news-date { background: linear-gradient(160deg, #061a52, #1a52c4) !important; }
.jsb-quick-grid a { border-bottom-color: #0e3a9e; }
.jsb-quick-grid a:hover { background: linear-gradient(160deg, #061a52, #0e3a9e); }
.jsb-logo b { color: #061a52; }
.jsb-logo em { color: #0e3a9e; }
.line { background: linear-gradient(90deg, #0a2a7a, #4a7fdc) !important; }
.btn-primary { background: #0a2a7a; border-color: #0a2a7a; }
.jsb-news .BG-2 .bg-1, .jsb-news .col-lg-4 .BG-2 .bg-1, .jsb-news .col-lg-4:nth-child(n) .BG-2 h2 { background: linear-gradient(135deg, #061a52, #0e3a9e) !important; }

/* TC search strip (lower on the home page) */
.jsb-tc { padding: 6px 0 46px; background: #fff; }
.jsb-tc-in { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; background: var(--b50); border: 1px solid var(--line); border-left: 6px solid var(--b600); border-radius: 18px; padding: 22px 28px; box-shadow: var(--sh1); }
.jsb-tc-ico { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, #061a52, #1a52c4); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.jsb-tc-ico i { color: #fff; font-size: 1.5rem; }
.jsb-tc-in > div { flex: 1 1 280px; }
.jsb-tc-in h3 { font: 700 1.2rem var(--head); color: var(--b800); margin: 0 0 4px; }
.jsb-tc-in p { margin: 0; color: var(--mute); font-size: .95rem; }
a.jsb-btn.jsb-btn-white { background: #fff; color: #0a2a7a !important; box-shadow: 0 8px 20px rgba(0, 0, 0, .25); }
a.jsb-btn.jsb-btn-ghost { background: transparent; box-shadow: none; }
a.jsb-btn.jsb-btn-ghost:hover { background: #fff; color: #0a2a7a !important; }

/* ---------- News & Notices (new layout) ---------- */
.jsb-news { background: linear-gradient(180deg, var(--b50), #fff); padding: 56px 0 56px; }
.jsb-nw-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 24px; align-items: start; }
.jsb-nw-main, .jsb-nw-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--sh1); padding: 20px; }
.jsb-nw-side { display: grid; gap: 24px; }
.jsb-nw-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--b100); }
.jsb-nw-bar h3 { margin: 0; font: 700 1.1rem var(--head); color: var(--b800); display: flex; align-items: center; gap: 10px; }
.jsb-nw-bar h3 i { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, #061a52, #1a52c4); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; }
.jsb-nw-bar a { font: 600 .85rem var(--head); color: var(--b600); text-decoration: none; white-space: nowrap; }
.jsb-nw-bar a:hover { color: var(--b800); }
.jsb-nw-feat { display: grid; grid-template-columns: 42% 1fr; gap: 20px; text-decoration: none !important; border-radius: 18px; overflow: hidden; background: var(--b50); transition: box-shadow .3s, transform .3s; }
.jsb-nw-feat.nopic { grid-template-columns: 1fr; }
.jsb-nw-feat:hover { box-shadow: var(--sh2); transform: translateY(-3px); }
.jsb-nw-img { position: relative; display: block; min-height: 270px; overflow: hidden; }
.jsb-nw-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.jsb-nw-feat:hover .jsb-nw-img img { transform: scale(1.07); }
.jsb-nw-img em { position: absolute; left: 12px; top: 12px; background: linear-gradient(160deg, #061a52, #1a52c4); color: #fff; border-radius: 12px; padding: 6px 12px; font: 600 .7rem/1.2 var(--head); font-style: normal; text-align: center; letter-spacing: 1px; }
.jsb-nw-img em b { display: block; font-size: 1.4rem; color: #fff; }
.jsb-nw-body { display: block; padding: 20px 20px 20px 0; }
.nopic .jsb-nw-body { padding: 22px; }
.jsb-nw-body small { display: block; color: var(--b500); font-weight: 600; margin-bottom: 6px; }
.jsb-nw-body h4 { font: 700 1.2rem/1.35 var(--head); color: var(--b900); margin: 0 0 10px; }
.jsb-nw-body p { color: var(--mute); font-size: .95rem; margin: 0 0 12px; }
.jsb-nw-more { color: var(--b600); font: 600 .9rem var(--head); }
.jsb-nw-list { display: grid; gap: 10px; margin-top: 16px; }
.jsb-nw-list a, .jsb-nw-row { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 14px; text-decoration: none !important; transition: background .25s, transform .25s; }
.jsb-nw-list a:hover, .jsb-nw-row:hover { background: var(--b50); transform: translateX(5px); }
.jsb-nw-list img { width: 74px; height: 62px; object-fit: cover; border-radius: 10px; flex: none; }
.jsb-nw-list small, .jsb-nw-row small { display: block; color: var(--mute); font-size: .78rem; }
.jsb-nw-list strong, .jsb-nw-row strong { display: block; color: var(--b900); font: 600 .95rem/1.35 var(--head); }
.jsb-nw-d { width: 54px; height: 54px; border-radius: 12px; background: linear-gradient(160deg, #061a52, #1a52c4); color: #fff; flex: none; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; font: 600 .65rem/1 var(--head); letter-spacing: 1px; }
.jsb-nw-d b { font-size: 1.15rem; color: #fff; }
.jsb-nw-empty { text-align: center; padding: 38px 10px; color: var(--mute); }
.jsb-nw-empty i { font-size: 2.2rem; color: var(--b300); }
.jsb-nw-empty p, .jsb-nw-none { margin: 8px 0 0; color: var(--mute); font-size: .92rem; }
.jsb-nw-none { padding: 6px 4px 8px; }
@media (max-width: 991px) { .jsb-nw-grid { grid-template-columns: 1fr; } .jsb-nw-feat { grid-template-columns: 1fr; } .jsb-nw-body { padding: 4px 18px 18px; } .jsb-nw-img { min-height: 230px; } }

/* ---------- News page ---------- */
.jsb-newspage { padding-top: 34px; padding-bottom: 40px; }
.jsb-np-art { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--b600); border-radius: 22px; box-shadow: var(--sh1); padding: 28px; margin-bottom: 34px; }
.jsb-np-date { color: var(--b500); font-weight: 600; }
.jsb-np-head h2 { font: 800 clamp(1.4rem, 3vw, 2rem)/1.3 var(--head) !important; color: var(--b800) !important; margin: 6px 0 20px; border: 0 !important; }
.jsb-np-cols { display: grid; grid-template-columns: 38% 1fr; gap: 28px; align-items: start; }
.jsb-np-cols.one { grid-template-columns: 1fr; }
.jsb-np-pics img { width: 100%; border-radius: 16px; box-shadow: var(--sh2); margin-bottom: 12px; display: block; }
.jsb-np-text p { color: var(--ink); }
.jsb-medals { list-style: none; margin: 14px 0; padding: 0; display: grid; gap: 10px; }
.jsb-medals li { background: var(--b50); border: 1px solid var(--line); border-left: 5px solid var(--b600); border-radius: 12px; padding: 11px 16px; }
.jsb-np-listhead h3 { font: 700 1.3rem var(--head); color: var(--b800); margin: 0 0 16px; }
.jsb-np-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.jsb-np-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--sh1); text-decoration: none !important; transition: transform .3s, box-shadow .3s; }
.jsb-np-card:hover { transform: translateY(-5px); box-shadow: var(--sh2); }
.jsb-np-thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--b800); }
.jsb-np-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.jsb-np-card:hover .jsb-np-thumb img { transform: scale(1.08); }
.jsb-np-cb { display: block; padding: 16px 18px 18px; }
.jsb-np-cb small { display: block; color: var(--b500); font-weight: 600; }
.jsb-np-cb strong { display: block; color: var(--b900); font: 700 1rem/1.4 var(--head); margin: 4px 0; }
.jsb-np-cb span { color: var(--mute); font-size: .9rem; }
@media (max-width: 991px) { .jsb-np-cols { grid-template-columns: 1fr; } .jsb-np-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .jsb-np-grid { grid-template-columns: 1fr; } .jsb-np-art { padding: 18px; } }

/* ===== v9: tighter spacing, wider content on large screens ===== */
@media (min-width: 1200px) { .container { max-width: 1240px; } }
@media (min-width: 1500px) { .container { max-width: 1400px; } }
@media (min-width: 1800px) { .container { max-width: 1560px; } }
nav.jsb-nav .container-fluid { max-width: 1700px; }

/* vertical rhythm */
.jsb-quick { margin-top: -70px; padding-bottom: 6px; }
.jsb-intro { padding: 8px 0 0; }
section.about-home { padding: 30px 0 6px; }
section.about-home .ab-top { margin-bottom: 0; }
.ab-vm, .ab-values { margin-top: 18px !important; }
.ab-bond-wide { margin: 18px 0 !important; }
.jsb-stats { margin-top: 22px; padding: 32px 0; }
.jsb-news { padding: 34px 0 34px; }
.jsb-gal { padding: 34px 0 30px; }
.jsb-tc { padding: 0 0 30px; }
.jsb-high { padding: 14px 0; }
section.counter-box { margin-top: 0 !important; padding: 34px 0 30px; }
section.counter-box > .col-md-12 { padding: 0; }
.jsb-head, section .text-center[data-aos] { margin-bottom: 0; }
section h1.text-center, .jsb-head h1 { margin-bottom: 4px; }
.line { margin: 6px auto 20px !important; }
.jsb-kick { margin-bottom: 4px; }
.jsb-cta { padding: 34px 0; }
.jsb-cta-in { gap: 14px; }
.jsb-cta h2 { font-size: 1.7rem; }
.jns-footer { padding-top: 4px; }
.jns-footer .container, .jns-footer .row { }
.jns-fcol { margin-bottom: 8px; }
.jns-footer > .container { padding-top: 30px !important; padding-bottom: 14px !important; }
.copyright, .bg-footer { padding: 14px 0 !important; }
.ab-top { row-gap: 14px; }
.ab-collage { max-width: 100%; }

/* principal's desk: use the full container width */
.container.col-lg-10 { max-width: 100%; flex: 0 0 100%; width: 100%; padding-left: 15px; padding-right: 15px; }
.pdesk { grid-template-columns: 330px 1fr; }
.pdesk-body { padding: 26px 34px 28px; }
.pdesk-photo { padding: 28px 18px; }

/* cards: lighter inner padding */
.ab-card { padding: 20px 24px !important; }
.jsb-nw-main, .jsb-nw-card { padding: 16px 18px; }
.jsb-nw-grid { gap: 18px; }
.jsb-nw-side { gap: 18px; }
.jsb-quick-grid { gap: 14px; }
.jsb-gal-grid { gap: 12px; }
.jsb-tc-in { padding: 16px 24px; }
.jsb-np-art { padding: 22px; margin-bottom: 24px; }
.page-container, .jsb-newspage { padding-top: 24px; padding-bottom: 28px; }
.page-wrapper { padding: 22px 26px; }
.jns-hero { padding: 34px 0 44px !important; }

@media (max-width: 991px) {
	.container.col-lg-10 { padding-left: 12px; padding-right: 12px; }
	.pdesk { grid-template-columns: 1fr; }
	.jsb-stats { padding: 26px 0; }
	section.about-home { padding-top: 22px; }
}
.ab-collage { max-width: 620px; margin-left: auto; margin-right: auto; }
.jsb-nw-grid { align-items: stretch; }
.jsb-nw-side { grid-template-rows: 1fr 1fr; }
.jsb-nw-card { display: flex; flex-direction: column; }
.jsb-nw-card .jsb-nw-none { margin: auto 0; }
.container.col-lg-10 { max-width: 1140px; margin-left: auto; margin-right: auto; }
@media (min-width: 1200px) { .container.col-lg-10 { max-width: 1240px; } }
@media (min-width: 1500px) { .container.col-lg-10 { max-width: 1400px; } }
@media (min-width: 1800px) { .container.col-lg-10 { max-width: 1560px; } }
@media (max-width: 767px) { .container.col-lg-10 { max-width: 100%; } }
.jsb-nw-grid { align-items: start; }
.jsb-nw-side { grid-template-rows: auto auto; }
.jsb-nw-card .jsb-nw-none { margin: 0; }

/* slider: pictures shown in full get a soft blurred copy of themselves behind them */
.jns-slide { overflow: hidden; }
.jns-slide.fit-full { background: #0a1c4a; }
.jns-bgblur { position: absolute; inset: -30px; background-size: cover; background-position: center; filter: blur(26px) brightness(.75); transform: scale(1.1); }
.jns-slide.fit-full > .jns-media { z-index: 1; }

/* ===== slider: every picture is shown in full (no cropping, no blur) ===== */
.jns-slide { height: auto !important; min-height: 0 !important; max-height: 86vh !important; aspect-ratio: var(--ar, 16 / 9) !important; background: linear-gradient(90deg, #030c26, #0a1c4a 50%, #030c26) !important; }
.jns-slide > .jns-media, .jns-slide.fit-fill > .jns-media, .jns-slide.fit-full > .jns-media, .jns-slide.fit-stretch > .jns-media { object-fit: contain !important; object-position: center center !important; }
.jns-bgblur { display: none !important; }
.jns-slider.jns-zoom .owl-item.active .jns-slide img.jns-media { animation: none !important; }
.owl-height { transition: height .6s ease; }
@media (max-width: 768px) { .jns-slide { max-height: 70vh !important; } }

/* slider: plain white around pictures that are not as wide as the screen (no blur, no colour) */
.jns-slide { background: #fff !important; }
.slider-wrapper.jns-slider, .jns-slider { background: #fff !important; }
.jns-slider .owl-dots .owl-dot span, .owl-theme .owl-dots .owl-dot span { background: rgba(255, 255, 255, .85) !important; box-shadow: 0 0 0 1.5px rgba(10, 42, 122, .55); }
.jns-slider .owl-dots .owl-dot.active span, .owl-theme .owl-dots .owl-dot.active span { background: #0a2a7a !important; box-shadow: 0 0 0 1.5px #fff; }

/* slider: each picture is shown in full width and full height (the slider grows with the picture) */
.jns-slide { max-height: none !important; background: transparent !important; }
@media (max-width: 768px) { .jns-slide { max-height: none !important; } }

/* ===== slider v3: normal fixed height, picture fills it, crop follows the faces / main content (--pos per picture) ===== */
.jns-slide { aspect-ratio: 2.2 / 1 !important; height: auto !important; min-height: 0 !important; max-height: 80vh !important; background: #0a1c4a !important; }
.jns-slide > .jns-media, .jns-slide.fit-fill > .jns-media, .jns-slide.fit-full > .jns-media, .jns-slide.fit-stretch > .jns-media { object-fit: cover !important; object-position: var(--pos, 50% 50%) !important; }
@media (max-width: 768px) { .jns-slide { aspect-ratio: 4 / 3 !important; max-height: none !important; } }

/* slider: pictures set to "full" (text pictures, newspaper) are shown completely, with a soft blurred copy behind */
.jns-slide.fit-full { background: #0a1c4a !important; }
.jns-slide.fit-full > .jns-media { object-fit: contain !important; object-position: center center !important; z-index: 1; }
.jns-bgblur { display: block !important; position: absolute; inset: -30px; background-size: cover; background-position: center; filter: blur(26px) brightness(.8); transform: scale(1.1); }
.jns-slide:not(.fit-full) .jns-bgblur { display: none !important; }

/* ===== mobile fixes ===== */
@media (max-width: 991px) {
	html body nav.jsb-nav .dropdown-menu { background: var(--b50) !important; padding: 4px 8px 8px; margin: 0 0 6px; border-radius: 12px; }
	html body nav.jsb-nav .dropdown-menu .dropdown-item { color: var(--ink) !important; background: transparent; border: 0; padding: 10px 14px; white-space: normal; font-size: .92rem; }
	html body nav.jsb-nav .dropdown-menu .dropdown-item:hover, html body nav.jsb-nav .dropdown-menu .dropdown-item:active { background: var(--b100); color: var(--b600) !important; }
	nav.jsb-nav .navbar-nav { max-height: 70vh; overflow-y: auto; }
}
@media (max-width: 767px) {
	.ab-collage { max-width: 100%; overflow: hidden; padding-right: 8px; }
	.jsb-top .jsb-top-l { justify-content: center; }
	.jsb-brand-r { width: 100%; }
	.jsb-brand-r .jsb-btn { flex: 1 1 auto; justify-content: center; padding: 11px 14px; }
}
@media (max-width: 991px) { nav.jsb-nav .navbar-nav { flex-direction: column !important; flex-wrap: nowrap !important; justify-content: flex-start; } nav.jsb-nav .nav-item { width: 100%; } }

/* ---------- Latest News: slides automatically ---------- */
.jsb-ns-track { position: relative; }
.jsb-ns-slide { display: none; }
.jsb-ns-slide.on { display: grid; animation: jsbNsIn .7s ease; }
@keyframes jsbNsIn { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
.jsb-ns-ctrl { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 14px; }
.jsb-ns-ctrl button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--b700); cursor: pointer; transition: background .25s, color .25s; }
.jsb-ns-ctrl button:hover { background: var(--b700); color: #fff; }
.jsb-ns-dots { display: inline-flex; gap: 8px; }
.jsb-ns-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--b300); cursor: pointer; transition: transform .3s, background .3s; }
.jsb-ns-dots i.on { background: var(--b700); transform: scale(1.35); }
@media (max-width: 991px) { .jsb-ns-slide.on { display: block; } }
@media (prefers-reduced-motion: reduce) { .jsb-ns-slide.on { animation: none; } }
.jsb-ns-ctrl button i { color: var(--b700); font-size: .9rem; }
.jsb-ns-ctrl button:hover i { color: #fff; }
.jsb-ns-slide { touch-action: pan-y; user-select: none; -webkit-user-drag: none; }
.jsb-ns-slide img { -webkit-user-drag: none; user-drag: none; pointer-events: none; }
.jsb-ns-ctrl button { position: relative; z-index: 3; }

/* Latest News slider: every slide has the same height, so the arrows never move while sliding */
.jsb-ns-slide.on { height: 400px; }
.jsb-ns-slide .jsb-nw-img { min-height: 0; height: 100%; }
.jsb-ns-slide .jsb-nw-body { overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.jsb-ns-slide .jsb-nw-body h4 { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.jsb-ns-slide .jsb-nw-body p { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 991px) {
	.jsb-ns-slide.on { height: 560px; display: flex; flex-direction: column; }
	.jsb-ns-slide .jsb-nw-img { height: 250px; flex: none; }
	.jsb-ns-slide .jsb-nw-body { flex: 1; justify-content: flex-start; padding: 6px 18px 14px; }
	.jsb-ns-slide .jsb-nw-body h4 { -webkit-line-clamp: 3; }
	.jsb-ns-slide .jsb-nw-body p { -webkit-line-clamp: 4; }
}

/* Scroll-animation (AOS "fade-down") sections wait 100px higher than their place until they come into view and
   sat on top of the buttons of the section above (news arrows could not be clicked). Earlier sections now stay above later ones. */
.jsb-quick { position: relative; z-index: 9; }
section.about-home { position: relative; z-index: 8; }
.jsb-stats { position: relative; z-index: 7; }
.jsb-news { position: relative; z-index: 6; }
section.counter-box { position: relative; z-index: 5; }
.jsb-gal { position: relative; z-index: 4; }
.jsb-tc { position: relative; z-index: 3; }
.jsb-high { position: relative; z-index: 2; }
