/*
 * JNS Senior Wing - motion, hover effects, cursor effect and photo blocks.
 * Colours are not changed: this file only adds animation on top of the existing theme.
 * Everything that moves is switched off for visitors who ask for reduced motion.
 */

/* ---------- page opens with a soft fade ---------- */
@keyframes jnsPageIn { from { opacity: 0; } to { opacity: 1; } }
html.jns-js body { animation: jnsPageIn .6s ease-out both; }

/* ---------- scroll reveal (class added by js/jns-motion.js) ---------- */
html.jns-js .jns-reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); will-change: opacity, transform; }
html.jns-js .jns-reveal.jns-left  { transform: translateX(-40px); }
html.jns-js .jns-reveal.jns-right { transform: translateX(40px); }
html.jns-js .jns-reveal.jns-zoom  { transform: scale(.92); }
html.jns-js .jns-reveal.jns-in { opacity: 1; transform: none; }

/* ---------- top reading-progress bar ---------- */
.jns-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 100001; background: linear-gradient(90deg, #3a2a9d, #a5004f); pointer-events: none; }

/* ---------- cursor effect (desktop mouse only) ---------- */
.jns-cursor-dot, .jns-cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 100000; border-radius: 50%; opacity: 0; transition: opacity .25s ease; }
.jns-cursor-dot  { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: #a5004f; }
.jns-cursor-ring { width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 2px solid rgba(58, 42, 157, .55); transition: opacity .25s ease, width .25s ease, height .25s ease, margin .25s ease, background .25s ease, border-color .25s ease; }
html.jns-cursor-on .jns-cursor-dot, html.jns-cursor-on .jns-cursor-ring { opacity: 1; }
.jns-cursor-ring.jns-hover { width: 62px; height: 62px; margin: -31px 0 0 -31px; background: rgba(165, 0, 79, .10); border-color: rgba(165, 0, 79, .75); }
.jns-cursor-ring.jns-down  { width: 24px; height: 24px; margin: -12px 0 0 -12px; background: rgba(58, 42, 157, .25); }
@media (hover: none), (pointer: coarse) { .jns-cursor-dot, .jns-cursor-ring { display: none !important; } }

/* ---------- click ripple ---------- */
.jns-ripple { position: fixed; z-index: 99999; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; border: 2px solid rgba(165, 0, 79, .7); pointer-events: none; animation: jnsRipple .65s ease-out forwards; }
@keyframes jnsRipple { to { transform: scale(7); opacity: 0; } }

/* ---------- hover effects ---------- */
.page-wrapper img, .intro-box, .counter, .BG-2, .hexagon-gallery .hex, .p-2.pic, .doc-card, .jns-photo, .news-item {
    transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease, filter .35s ease;
}
.counter:hover, .BG-2:hover, .p-2.pic:hover { transform: translateY(-6px); box-shadow: 0 14px 30px rgba(58, 42, 157, .18); }
.hexagon-gallery .hex:hover { transform: scale(1.06); filter: brightness(1.05); z-index: 3; }
.counter .section-icon { transition: transform .5s ease; }
.counter:hover .section-icon { transform: rotateY(360deg) scale(1.08); }
.news-item:hover { transform: translateX(4px); }
.news-date { transition: transform .3s ease; }
.news-item:hover .news-date { transform: rotate(-4deg) scale(1.06); }
.btn, .main-btn, button, input[type=submit] { transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease; }
.btn:hover, .main-btn:hover, input[type=submit]:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0, 0, 0, .18); }
.btn:active, .main-btn:active { transform: translateY(0); }

/* navigation: underline grows from the centre, dropdowns slide in */
.navbar .nav-link { position: relative; transition: color .25s ease; }
.navbar .nav-link::before { content: ""; position: absolute; left: 50%; bottom: 4px; width: 0; height: 2px; background: #fff; transform: translateX(-50%); transition: width .3s ease; }
.navbar .nav-link:hover::before, .navbar .nav-item.active > .nav-link::before { width: 70%; }
@keyframes jnsDrop { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.navbar .dropdown-menu.show { animation: jnsDrop .25s ease-out both; }
.dropdown-item { transition: padding-left .2s ease, background-color .2s ease; }
.dropdown-item:hover { padding-left: 1.7rem; }


/* side menu of inner pages */
.slideber-menu a { transition: background-color .25s ease, color .25s ease, padding .25s ease; }

/* ---------- inner pages: neat structure for text + photos ---------- */
.jns-intro { background: #fff; border-radius: 14px; box-shadow: 0 4px 18px rgba(0, 0, 0, .07); padding: 22px 26px; margin: 18px 0 26px; border-left: 5px solid #a5004f; }
.jns-intro h2 { margin: 0 0 8px; font-size: 1.5rem; }
.jns-intro p { margin: 0; line-height: 1.8; }
.jns-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin: 10px 0 30px; }
.jns-photo { position: relative; margin: 0; overflow: hidden; border-radius: 12px; background: #eee; box-shadow: 0 4px 16px rgba(0, 0, 0, .10); aspect-ratio: 16 / 9; }
.jns-photo a { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.jns-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.jns-photo:hover { box-shadow: 0 14px 32px rgba(58, 42, 157, .25); }
.jns-photo:hover img { transform: scale(1.08); }
.jns-photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 10px; color: #fff; font-size: .95rem; background: linear-gradient(to top, rgba(0, 0, 0, .65), transparent); transform: translateY(100%); transition: transform .35s ease; }
.jns-photo:hover figcaption { transform: none; }
.jns-photos.jns-two { grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); }
@media (max-width: 575px) { .jns-photos, .jns-photos.jns-two { grid-template-columns: 1fr; } .jns-intro { padding: 16px 18px; } }

/* message page */
.jns-message { display: grid; grid-template-columns: 260px 1fr; gap: 30px; align-items: start; margin: 10px 0 30px; }
.jns-message .jns-who { text-align: center; position: sticky; top: 120px; }
.jns-message .jns-who img { width: 100%; max-width: 240px; border-radius: 18px; box-shadow: 0 10px 28px rgba(0, 0, 0, .22); }
.jns-message .jns-who h4 { margin: 14px 0 2px; font-size: 1.15rem; }
.jns-message .jns-who span { color: #666; font-size: .92rem; display: block; }
.jns-message .jns-text { background: #fff; border-radius: 14px; box-shadow: 0 4px 18px rgba(0, 0, 0, .07); padding: 26px 30px; }
.jns-message .jns-text p { line-height: 1.85; text-align: justify; margin-bottom: 14px; }
.jns-message .jns-text .jns-lead { font-size: 1.1rem; font-weight: 600; }
.jns-message .jns-text .jns-quote { border-left: 4px solid #a5004f; padding: 8px 16px; background: #faf3f7; border-radius: 0 8px 8px 0; font-style: italic; }
.jns-message .jns-text .jns-sign { margin-top: 22px; line-height: 1.6; }
@media (max-width: 767px) { .jns-message { grid-template-columns: 1fr; } .jns-message .jns-who { position: static; } .jns-message .jns-text { padding: 18px; } }

/* ---------- lightbox ---------- */
.jns-lb { position: fixed; inset: 0; z-index: 100002; background: rgba(0, 0, 0, .9); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s; }
.jns-lb.jns-open { opacity: 1; visibility: visible; }
.jns-lb img { max-width: 92vw; max-height: 86vh; border-radius: 6px; box-shadow: 0 10px 50px rgba(0, 0, 0, .6); transform: scale(.94); transition: transform .35s ease; }
.jns-lb.jns-open img { transform: none; }
.jns-lb button { position: absolute; border: 0; background: rgba(255, 255, 255, .15); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 26px; line-height: 1; cursor: pointer; }
.jns-lb button:hover { background: rgba(255, 255, 255, .3); }
.jns-lb .jns-x { top: 18px; right: 18px; } .jns-lb .jns-prev { left: 18px; top: 50%; margin-top: -24px; } .jns-lb .jns-next { right: 18px; top: 50%; margin-top: -24px; }
.jns-lb .jns-cap { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: #ddd; font-size: .95rem; }

/* ---------- Home slider ---------- */
.jns-slider { position: relative; overflow: hidden; }
.jns-slider .owl-stage-outer { overflow: hidden; }
.jns-slide { position: relative; width: 100%; aspect-ratio: 9 / 4; background: #fff; overflow: hidden; }
.jns-slide > .jns-media { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.jns-slide.fit-fill > .jns-media { object-fit: cover; object-position: var(--pos, center center); }
.jns-slide.fit-full > .jns-media { object-fit: contain; object-position: center center; }
.jns-slide.fit-stretch > .jns-media { object-fit: fill; }
.jns-slide a.jns-slide-link { position: absolute; inset: 0; z-index: 2; }
@media (max-width: 768px) { .jns-slide { aspect-ratio: 3 / 2; } }
/* slow zoom-out of the picture that is on screen */
@keyframes jnsZoomOut { from { transform: scale(var(--zf, 1.08)); } to { transform: scale(1); } }
.jns-slider.jns-zoom .owl-item.active .jns-slide img.jns-media { animation: jnsZoomOut 6.8s cubic-bezier(.25,.3,.5,1) both; }
.jns-slider .owl-nav button { position: absolute; top: 50%; margin-top: -26px; width: 52px; height: 52px; border-radius: 50%; background: rgba(0, 0, 0, .35) !important; transition: background .25s ease, transform .25s ease; }
.jns-slider .owl-nav button:hover { background: rgba(165, 0, 79, .8) !important; transform: scale(1.1); }
.jns-slider .owl-nav .owl-prev { left: 16px; } .jns-slider .owl-nav .owl-next { right: 16px; }
.jns-slider .owl-nav i { font-size: 22px; }

@media (prefers-reduced-motion: reduce) {
    html.jns-js body, .logo-img, .navbar .dropdown-menu.show { animation: none !important; }
    html.jns-js .jns-reveal { opacity: 1; transform: none; transition: none; }
    .jns-slider.jns-zoom .owl-item.active .jns-slide img.jns-media { animation: none !important; }
    .jns-cursor-dot, .jns-cursor-ring, .jns-ripple, .jns-progress { display: none !important; }
    * { transition-duration: .01ms !important; }
}

/* ---------- Home: Principal's Desk ---------- */
.pdesk { display: grid; grid-template-columns: 340px 1fr; background: #fff; border-radius: 26px; overflow: hidden; box-shadow: 0 14px 40px rgba(58, 42, 157, .16); margin-bottom: 20px; }
.pdesk-photo { background: linear-gradient(160deg, #3a2a9d 0%, #7a2a8f 55%, #a5004f 100%); padding: 34px 26px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #fff; position: relative; overflow: hidden; }
.pdesk-photo::before, .pdesk-photo::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.pdesk-photo::before { width: 220px; height: 220px; top: -70px; left: -70px; }
.pdesk-photo::after { width: 160px; height: 160px; bottom: -50px; right: -50px; }
.pdesk-frame { position: relative; z-index: 1; width: 230px; height: 270px; border-radius: 22px; overflow: hidden; border: 5px solid #fff; box-shadow: 0 12px 30px rgba(0, 0, 0, .35); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.pdesk:hover .pdesk-frame { transform: translateY(-6px) scale(1.03); }
.pdesk-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; }
.pdesk-name { position: relative; z-index: 1; margin-top: 22px; color: #fff; }
.pdesk-name strong, .pdesk-name span { color: #fff !important; }
.pdesk-name strong { display: block; font-size: 1.35rem; letter-spacing: .3px; }
.pdesk-name span { display: block; margin-top: 4px; font-size: .92rem; opacity: .9; line-height: 1.4; }
.pdesk-body { position: relative; padding: 38px 44px 34px; }
.pdesk-body::before { content: "\201C"; position: absolute; top: -6px; right: 30px; font-size: 150px; line-height: 1; font-family: Georgia, serif; color: rgba(165, 0, 79, .12); pointer-events: none; }
.pdesk-tag { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: #a5004f; background: #faf0f5; padding: 4px 14px; border-radius: 30px; }
.pdesk-body h2 { margin: 12px 0 14px; font-size: 1.7rem; padding-bottom: 12px; border-bottom: 3px solid #f0e4ea; position: relative; }
.pdesk-body h2::after { content: ""; position: absolute; left: 0; bottom: -3px; width: 70px; height: 3px; background: linear-gradient(90deg, #3a2a9d, #a5004f); }
.pdesk-text p { line-height: 1.85; text-align: justify; margin-bottom: 12px; }
.pdesk-text p:first-child { font-size: 1.08rem; color: #3a2a9d; }
.pdesk-btn { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; padding: 11px 26px; border-radius: 40px; color: #fff !important; font-weight: 600; text-decoration: none !important; background: linear-gradient(90deg, #3a2a9d, #a5004f); box-shadow: 0 8px 20px rgba(165, 0, 79, .28); transition: transform .3s ease, box-shadow .3s ease, gap .3s ease; }
.pdesk-btn:hover { transform: translateY(-3px); gap: 16px; box-shadow: 0 14px 28px rgba(165, 0, 79, .38); }
@media (max-width: 991px) { .pdesk { grid-template-columns: 1fr; } .pdesk-photo { padding: 28px 20px; } .pdesk-frame { width: 190px; height: 225px; } .pdesk-body { padding: 26px 22px 26px; } .pdesk-text p { text-align: left; } }

/* ---------- Header on top (logo + school name), menu bar below it ---------- */
.header-back { position: relative !important; backdrop-filter: none; background: linear-gradient(90deg, #4a0a6b 0%, #7a116a 55%, #8f0a50 100%) !important; padding-bottom: 12px; }
.navbar { position: relative; z-index: 5; }
@media (max-width: 991px) { .header-back { padding: 0 12px 10px; } }

/* ---------- Logo: bigger, on the left, animated ---------- */
.header-back { padding-left: 50px !important; padding-right: 50px !important; }
.header-back .logo-img { width: 112px; max-width: 100%; height: auto; border-radius: 50%; background: #fff; padding: 3px; display: inline-block; cursor: pointer;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .35), 0 6px 18px rgba(0, 0, 0, .35);
    animation: jnsLogoFloat 4s ease-in-out infinite, jnsLogoGlow 2.8s ease-in-out infinite, jnsLogoSpin 9s ease-in-out infinite; }
.header-back .logo-img:hover { animation: jnsLogoHover 1s ease-in-out 1, jnsLogoGlow 2.8s ease-in-out infinite; transform: scale(1.08); }
@keyframes jnsLogoFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@keyframes jnsLogoGlow { 0%, 100% { box-shadow: 0 0 0 3px rgba(255, 255, 255, .35), 0 6px 18px rgba(0, 0, 0, .35); } 50% { box-shadow: 0 0 0 8px rgba(255, 255, 255, .12), 0 0 28px rgba(255, 190, 230, .75); } }
@keyframes jnsLogoSpin { 0%, 82% { transform: rotateY(0); } 100% { transform: rotateY(360deg); } }
@keyframes jnsLogoHover { from { transform: rotate(0) scale(1); } to { transform: rotate(360deg) scale(1.08); } }
@media (max-width: 991px) { .header-back .logo-img { width: 92px; margin-top: 10px; } .header-back { padding-left: 12px !important; padding-right: 12px !important; } }
@media (prefers-reduced-motion: reduce) { .header-back .logo-img { animation: none !important; } }

/* header: its own shade (darker than the menu bar) and room for the logo */
.header-back { background: linear-gradient(90deg, #14183f 0%, #1f1650 50%, #2d1259 100%) !important; padding-top: 14px; padding-bottom: 20px !important; border-bottom: 3px solid #a5004f; }
.header-back .row { align-items: center; padding-top: 0 !important; }
.header-back .logo-img { width: 100px; margin: 2px 0 4px; }
@media (max-width: 991px) { .header-back .logo-img { width: 84px; } }

/* logo: weaver.css positions it absolutely - keep it in the flow so it never touches the menu bar */
.header-back .logo-img { position: relative !important; top: 0 !important; left: 0 !important; }

/* ---------- Home: hexagon photo gallery ---------- */
html.jns-js .hexagon-gallery .hex { opacity: 0; scale: .4; rotate: -20deg; }
html.jns-hex-ready .hexagon-gallery .hex { opacity: 1; }
.hexagon-gallery.jns-hex-in .hex { animation: jnsHexPop .9s cubic-bezier(.2,.9,.3,1.25) both, jnsHexFloat 6s ease-in-out infinite; animation-delay: calc(var(--i, 0) * .13s), calc(1.2s + var(--i, 0) * .45s); }
@keyframes jnsHexPop { from { opacity: 0; scale: .4; rotate: -20deg; } to { opacity: 1; scale: 1; rotate: 0deg; } }
@keyframes jnsHexFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }
.hexagon-gallery .hex { transition: transform .45s cubic-bezier(.2,.9,.3,1.3), filter .4s ease; }
.hexagon-gallery .hex .img { transition: transform 1.1s cubic-bezier(.2,.7,.2,1); }
.hexagon-gallery .hex:hover { transform: scale(1.1) rotate(2deg) !important; filter: brightness(1.08) saturate(1.15); z-index: 5; animation-play-state: paused, paused; }
.hexagon-gallery .hex:hover .img { transform: scale(1.18); }
.hexagon-gallery:hover .hex:not(:hover) { filter: grayscale(.55) brightness(.9); }

/* special cursor over the hexagons: a "VIEW" bubble */
.jns-cursor-ring.jns-view { width: 92px; height: 92px; margin: -46px 0 0 -46px; border-color: transparent; background: linear-gradient(135deg, rgba(58, 42, 157, .92), rgba(165, 0, 79, .92)); box-shadow: 0 0 0 8px rgba(165, 0, 79, .18), 0 10px 30px rgba(0, 0, 0, .35); display: flex; align-items: center; justify-content: center; animation: jnsViewPulse 1.4s ease-in-out infinite; }
.jns-cursor-ring.jns-view::after { content: attr(data-label); color: #fff; font: 700 13px/1 "Merriweather", serif; letter-spacing: 2px; }
.jns-cursor-ring.jns-view.jns-down { width: 70px; height: 70px; margin: -35px 0 0 -35px; }
@keyframes jnsViewPulse { 0%, 100% { box-shadow: 0 0 0 6px rgba(165, 0, 79, .18), 0 10px 30px rgba(0, 0, 0, .35); } 50% { box-shadow: 0 0 0 16px rgba(165, 0, 79, .06), 0 10px 30px rgba(0, 0, 0, .35); } }
@media (prefers-reduced-motion: reduce) { html.jns-js .hexagon-gallery .hex { opacity: 1; scale: 1; rotate: 0deg; } .hexagon-gallery.jns-hex-in .hex { animation: none; } }

/* phones: header rows must not push the page wider than the screen */
.header-back { overflow-x: clip; }
@media (max-width: 991px) { .header-back .row { margin-left: 0; margin-right: 0; } }

/* ---------- Footer ---------- */
.jns-footer { background: linear-gradient(90deg, #14183f 0%, #1f1650 50%, #2d1259 100%); color: #d9d6ee; padding: 46px 0 26px; border-top: 3px solid #a5004f; }
.jns-footer a { color: #e9e6ff; text-decoration: none; transition: color .25s ease, padding-left .25s ease; }
.jns-footer a:hover { color: #ff9ad0; }
.jns-fbrand { display: flex; align-items: center; gap: 16px; }
.jns-flogo { width: 78px; height: 78px; border-radius: 50%; background: #fff; padding: 3px; box-shadow: 0 0 0 3px rgba(255, 255, 255, .25); transition: transform .6s ease; }
.jns-fbrand:hover .jns-flogo { transform: rotate(360deg); }
.jns-fbrand h4 { margin: 0; color: #fff; font-size: 1.25rem; line-height: 1.25; }
.jns-fbrand span { color: #ffb3d9; font-size: .95rem; }
.jns-fabout { margin: 16px 0 12px; color: #cfcbe8; }
.jns-fsocial a { display: inline-flex; width: 38px; height: 38px; margin-right: 8px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255, 255, 255, .1); transition: transform .3s ease, background .3s ease; }
.jns-fsocial a:hover { background: #a5004f; color: #fff; transform: translateY(-4px); }
.jns-fhead { color: #fff; font-size: 1.1rem; margin: 6px 0 16px; padding-bottom: 10px; position: relative; text-transform: uppercase; letter-spacing: 1px; }
.jns-fhead::after { content: ""; position: absolute; left: 0; bottom: 0; width: 46px; height: 3px; background: linear-gradient(90deg, #6a5df0, #ff3c93); border-radius: 3px; }
.jns-flinks { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 22px; }
.jns-flinks li { margin-bottom: 9px; break-inside: avoid; }
.jns-flinks a::before { content: "\203A"; margin-right: 8px; color: #ff3c93; }
.jns-flinks a:hover { padding-left: 6px; }
.jns-fcontact { list-style: none; margin: 0 0 14px; padding: 0; }
.jns-fcontact li { display: flex; gap: 12px; margin-bottom: 11px; line-height: 1.55; }
.jns-fcontact i { flex: none; width: 20px; margin-top: 4px; color: #ff3c93; text-align: center; }
.jns-fdir { display: inline-block; padding: 9px 22px; border-radius: 30px; background: linear-gradient(90deg, #3a2a9d, #a5004f); color: #fff !important; font-weight: 600; box-shadow: 0 6px 16px rgba(0, 0, 0, .3); transition: transform .3s ease, box-shadow .3s ease; }
.jns-fdir:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(165, 0, 79, .45); }
@media (max-width: 767px) { .jns-flinks { columns: 1; } .jns-fcol { margin-bottom: 26px; } }

/* ---------- Contact page: map ---------- */
.jns-map { margin: 26px 0 10px; border-radius: 16px; overflow: hidden; box-shadow: 0 8px 26px rgba(0, 0, 0, .15); background: #fff; }
.jns-map iframe { display: block; width: 100%; height: 380px; border: 0; }
.jns-map .jns-map-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; }
.jns-map .jns-map-bar strong { display: block; }
.jns-map .jns-map-btn { display: inline-block; padding: 10px 24px; border-radius: 30px; color: #fff !important; font-weight: 600; background: linear-gradient(90deg, #3a2a9d, #a5004f); text-decoration: none; box-shadow: 0 6px 16px rgba(165, 0, 79, .3); transition: transform .3s ease; }
.jns-map .jns-map-btn:hover { transform: translateY(-3px); }

/* slider: never show the old default picture of weaver.css between two slides */
.slider-wrapper.jns-slider { background: #14183f none !important; }
/* footer address text colour (theme sets span colours) */
.jns-footer .jns-fcontact span, .jns-footer .jns-fcontact li, .jns-footer .jns-fabout, .jns-footer .jns-fbrand span { color: #e4e1f7 !important; }
.jns-footer .jns-fbrand span { color: #ffb3d9 !important; }

/* logo animation never changes the layout: header keeps a fixed height */
.header-back .logo-img { will-change: transform, translate; }
.header-back { min-height: 128px; }
@media (max-width: 991px) { .header-back { min-height: 0; } }

.jns-photos.jns-43 .jns-photo { aspect-ratio: 4 / 3; }

/* home slider: 80% of the screen height */
.jns-slide { aspect-ratio: auto; height: 80vh; min-height: 340px; max-height: 900px; }
@media (max-width: 768px) { .jns-slide { height: auto; min-height: 0; aspect-ratio: 3 / 2; } }

/* ---------- Menu bar: always one line, font follows the screen width ---------- */
@media (min-width: 992px) {
  .navbar .navbar-nav { flex-wrap: nowrap; justify-content: center; width: 100%; margin: 0 !important; }
  .navbar ul.navbar-nav li.nav-item a.nav-link { font-size: clamp(9px, 1.02vw, 15px) !important; white-space: nowrap; padding-left: clamp(4px, .5vw, 10px) !important; padding-right: clamp(4px, .5vw, 10px) !important; }
  .navbar .dropdown-toggle::after { margin-left: .25em; }
  .navbar .container-fluid { padding-left: 4px; padding-right: 4px; }
}

/* =====================================================================
   INNER PAGES - title banner, tabs, content card, tables, lists
   ===================================================================== */
.jns-hero { position: relative; overflow: hidden; padding: 38px 0 34px; background: linear-gradient(120deg, #f3effb 0%, #ffffff 55%, #fbeef5 100%); border-bottom: 1px solid #ece6f5; }
.jns-hero::after { content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: linear-gradient(90deg, #3a2a9d, #a5004f, #3a2a9d); background-size: 200% 100%; animation: jnsHeroLine 6s linear infinite; }
@keyframes jnsHeroLine { to { background-position: 200% 0; } }
.jns-hero .container { position: relative; z-index: 1; }
.jns-hero-kicker { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #a5004f; background: #fff; border: 1px solid #f0d6e3; padding: 3px 14px; border-radius: 30px; margin-bottom: 10px; animation: jnsHeroIn .7s ease-out both; }
.jns-hero h1 { margin: 0 0 8px; font-size: clamp(1.5rem, 3.2vw, 2.4rem); font-weight: 700; color: #1f1650; animation: jnsHeroIn .8s .08s ease-out both; }
.jns-crumbs { font-size: .92rem; color: #6b6785; animation: jnsHeroIn .8s .16s ease-out both; }
.jns-crumbs a { color: #3a2a9d; text-decoration: none; } .jns-crumbs a:hover { color: #a5004f; }
.jns-crumbs span { margin: 0 8px; color: #b9b3d3; } .jns-crumbs b { color: #a5004f; font-weight: 600; }
@keyframes jnsHeroIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.jns-hero-dot { position: absolute; border-radius: 50%; background: linear-gradient(135deg, rgba(58, 42, 157, .16), rgba(165, 0, 79, .16)); animation: jnsDot 9s ease-in-out infinite; }
.jns-hero-dot.d1 { width: 150px; height: 150px; right: 8%; top: -50px; }
.jns-hero-dot.d2 { width: 70px; height: 70px; right: 22%; bottom: 14px; animation-delay: -3s; }
.jns-hero-dot.d3 { width: 100px; height: 100px; left: 4%; bottom: -40px; animation-delay: -6s; }
@keyframes jnsDot { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(14px, -16px) scale(1.12); } }

/* the old in-page title ("Infrastructure- Lab") is now shown in the banner */
.page-wrapper .info-title { display: none !important; }

/* tab menu of a section */
.page-wrapper { padding-top: 6px; }
.page-wrapper > .slideber-menu { display: inline-block; margin: 0 8px 12px 0; }
.page-wrapper .slideber-menu a { display: block; padding: 8px 20px; border-radius: 30px; background: #fff; border: 1px solid #e3def2; color: #3a2a9d; font-weight: 600; font-size: .92rem; text-decoration: none; box-shadow: 0 2px 8px rgba(58, 42, 157, .08); transition: all .3s ease; }
.page-wrapper .slideber-menu a:hover { background: #3a2a9d; color: #fff; transform: translateY(-2px); box-shadow: 0 8px 18px rgba(58, 42, 157, .25); }
.page-wrapper .slideber-menu a.jns-active { background: linear-gradient(90deg, #3a2a9d, #a5004f); color: #fff; border-color: transparent; }

/* content as a clean card (pages built with the photo blocks stay open) */
.page-wrapper:not(.jns-plain) { background: #fff; border-radius: 18px; box-shadow: 0 6px 26px rgba(31, 22, 80, .09); padding: 26px 32px 30px; border-top: 4px solid transparent; border-image: linear-gradient(90deg, #3a2a9d, #a5004f) 1; }
.page-wrapper.jns-plain { padding: 0; }
.page-wrapper > .slideber-menu:first-of-type { margin-top: 0; }
.page-wrapper h2, .page-wrapper h3, .page-wrapper h4 { color: #1f1650; position: relative; }
.page-wrapper:not(.jns-plain) h2 { margin: 26px 0 14px; padding-bottom: 10px; border-bottom: 2px solid #f0ebf7; font-size: 1.45rem; }
.page-wrapper:not(.jns-plain) h2::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 64px; height: 2px; background: linear-gradient(90deg, #3a2a9d, #a5004f); }
.page-wrapper h3 { font-size: 1.2rem; margin: 20px 0 10px; }
.page-wrapper p { line-height: 1.85; }
.page-wrapper:not(.jns-plain) a:not(.btn):not(.main-btn) { color: #3a2a9d; }
.page-wrapper:not(.jns-plain) a:not(.btn):not(.main-btn):hover { color: #a5004f; }
.page-wrapper ul:not(.nav) { list-style: none; padding-left: 4px; }
.page-wrapper ul:not(.nav) > li { position: relative; padding: 4px 0 4px 26px; line-height: 1.7; }
.page-wrapper ul:not(.nav) > li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 9px; height: 9px; border-radius: 50%; background: linear-gradient(135deg, #3a2a9d, #a5004f); }
.page-wrapper ol { padding-left: 24px; } .page-wrapper ol > li { padding: 3px 0 3px 4px; line-height: 1.7; }
.page-wrapper img:not(.jns-photo img):not(.jns-who img) { max-width: 100%; height: auto; border-radius: 10px; }
.page-wrapper blockquote { border-left: 4px solid #a5004f; background: #faf3f7; padding: 12px 18px; border-radius: 0 10px 10px 0; font-style: italic; }
.page-wrapper hr { border: 0; height: 2px; background: linear-gradient(90deg, #3a2a9d, #a5004f, transparent); opacity: .5; }

/* tables */
.jns-table-wrap { width: 100%; overflow-x: auto; margin: 14px 0 20px; border-radius: 12px; box-shadow: 0 3px 14px rgba(31, 22, 80, .09); }
.page-wrapper table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; }
.page-wrapper table th { background: linear-gradient(90deg, #2b1a6d, #7a116a); color: #fff; padding: 11px 14px; font-weight: 600; text-align: left; border: 0; }
.page-wrapper table td { padding: 10px 14px; border-bottom: 1px solid #efeaf7; border-top: 0; vertical-align: top; }
.page-wrapper table tbody tr { transition: background-color .25s ease; }
.page-wrapper table tbody tr:nth-child(even) { background: #faf8fe; }
.page-wrapper table tbody tr:hover { background: #f1ebfb; }
.page-wrapper table[border="1"], .page-wrapper table[style*="border"] { border-collapse: separate; }

/* buttons / download links inside pages */
.page-wrapper .btn-primary, .page-wrapper a.btn { border-radius: 30px; border: 0; background: linear-gradient(90deg, #3a2a9d, #a5004f); }
.page-wrapper iframe { max-width: 100%; border-radius: 12px; }

/* list pages (news, circulars ...) and photo cards */
.page-wrapper .p-2.pic { background: #fff; border-radius: 14px; box-shadow: 0 5px 20px rgba(31, 22, 80, .1); overflow: hidden; padding: 0 !important; }
.page-wrapper .p-2.pic img { border-radius: 0 !important; transition: transform .8s ease; }
.page-wrapper .p-2.pic:hover img { transform: scale(1.07); }
.page-wrapper .p-2.pic figure { margin: 0; overflow: hidden; }
.page-wrapper .p-2.pic figcaption { border: 0 !important; background: #fff; }

@media (max-width: 767px) { .page-wrapper:not(.jns-plain) { padding: 18px 16px 22px; } .jns-hero { padding: 26px 0 24px; } }
@media (prefers-reduced-motion: reduce) { .jns-hero::after, .jns-hero-dot, .jns-hero-kicker, .jns-hero h1, .jns-crumbs { animation: none !important; } }

/* ---------- Photo gallery: everything on one page ---------- */
.jns-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 22px; }
.jns-chip { border: 1px solid #e3def2; background: #fff; color: #3a2a9d; padding: 8px 18px; border-radius: 30px; font-weight: 600; cursor: pointer; transition: all .3s ease; box-shadow: 0 2px 8px rgba(58, 42, 157, .08); }
.jns-chip span { display: inline-block; margin-left: 6px; padding: 0 8px; border-radius: 20px; background: #f1ecfb; font-size: .8rem; }
.jns-chip:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(58, 42, 157, .2); }
.jns-chip.active { background: linear-gradient(90deg, #3a2a9d, #a5004f); color: #fff; border-color: transparent; }
.jns-chip.active span { background: rgba(255, 255, 255, .25); }
.jns-photos.jns-gal { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.jns-photos .jns-photo.jns-video { aspect-ratio: 16 / 9; background: #000; }
.jns-photos .jns-photo.jns-video video { width: 100%; height: 100%; display: block; }
/* ---------- Home: News & Notices cards ---------- */
.BG-2 { padding: 0 !important; background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 30px rgba(31, 22, 80, .12); border: 1px solid #efeaf7; }
.BG-2 > h2 { margin: 0 !important; padding: 15px 10px !important; color: #fff !important; font-size: 1.1rem !important; letter-spacing: 2px; text-transform: uppercase; background: linear-gradient(90deg, #3a2a9d, #6a2fa0) !important; position: relative; }
.col-lg-4:nth-child(3) .BG-2 > h2 { background: linear-gradient(90deg, #7a116a, #a5004f) !important; }
.col-lg-4:nth-child(4) .BG-2 > h2 { background: linear-gradient(90deg, #14183f, #3a2a9d) !important; }
.BG-2 > h2::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 44px; height: 3px; margin-left: -22px; background: rgba(255, 255, 255, .8); border-radius: 3px; }
.BG-2 .panel { margin: 0; border: 0; background: transparent; }
.BG-2 .panel-box { padding: 6px 16px 0; height: 300px !important; }
.BG-2 .news-item { border-bottom: 1px dashed #e4dcf2 !important; padding: 8px 4px !important; border-radius: 10px; transition: background-color .25s ease, transform .25s ease; }
.BG-2 .news-item:hover { background: #faf7ff; transform: translateX(4px); }
.BG-2 .news-date { width: 56px; height: auto; margin: 6px 12px 6px 4px; border: 0; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 12px rgba(58, 42, 157, .22); }
.BG-2 .news-date span { background: linear-gradient(135deg, #3a2a9d, #a5004f); color: #fff; font-size: 9pt; letter-spacing: 1px; padding: 2px 0; }
.BG-2 .news-date strong { display: block; font-size: 17pt; padding: 2px 0 4px; color: #1f1650; }
.BG-2 .news-item strong { color: #1f1650; }
.BG-2 .news-item a { display: inline-block; margin-top: 3px; color: #a5004f; font-weight: 600; font-size: 12px !important; text-decoration: none; }
.BG-2 .news-item a::after { content: " \2192"; transition: margin-left .25s ease; }
.BG-2 .news-item a:hover::after { margin-left: 5px; }
.BG-2 .panel-footer { background: #faf8fe; border-top: 1px solid #efeaf7; padding: 10px 16px; }
.BG-2 .pagination { margin: 0; gap: 6px; }
.BG-2 .pagination li a { display: inline-flex; width: 36px; height: 34px; align-items: center; justify-content: center; border-radius: 50% !important; border: 1px solid #e0d8f2; color: #3a2a9d; background: #fff; transition: all .25s ease; }
.BG-2 .pagination li a:hover { background: linear-gradient(135deg, #3a2a9d, #a5004f); color: #fff; border-color: transparent; transform: translateY(-2px); }

/* ---------- list view of news / circulars / upcoming pages ---------- */
.jns-list { display: grid; gap: 16px; margin-top: 6px; }
.jns-list-item { display: flex; gap: 18px; align-items: flex-start; background: #fff; border-radius: 16px; padding: 16px 20px; box-shadow: 0 4px 18px rgba(31, 22, 80, .09); border-left: 4px solid #a5004f; transition: transform .3s ease, box-shadow .3s ease; text-decoration: none !important; color: inherit; }
.jns-list-item:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(58, 42, 157, .2); }
.jns-list-date { flex: none; width: 62px; border-radius: 12px; overflow: hidden; text-align: center; box-shadow: 0 4px 12px rgba(58, 42, 157, .22); }
.jns-list-date span { display: block; background: linear-gradient(135deg, #3a2a9d, #a5004f); color: #fff; font-size: .75rem; letter-spacing: 1px; padding: 3px 0; }
.jns-list-date strong { display: block; font-size: 1.5rem; padding: 4px 0 6px; color: #1f1650; background: #fff; }
.jns-list-body h3 { margin: 0 0 6px; font-size: 1.1rem; color: #1f1650; }
.jns-list-body p { margin: 0 0 6px; color: #555; line-height: 1.6; }
.jns-list-body em { font-style: normal; color: #a5004f; font-weight: 600; font-size: .9rem; }
.copyright a.jns-powered { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; transition: color .25s ease, letter-spacing .25s ease; }
.copyright a.jns-powered:hover { color: #ffd3ea; letter-spacing: .5px; }

/* ---------- Home slider: dots to jump to any picture ---------- */
.jns-slider .owl-dots { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0 70px; z-index: 6; text-align: center; }
.jns-slider .owl-dots .owl-dot { background: none; border: 0; padding: 4px 0; cursor: pointer; outline: none; }
.jns-slider .owl-dots .owl-dot span { display: block; width: 12px; height: 12px; border-radius: 12px; background: rgba(255, 255, 255, .6); box-shadow: 0 1px 6px rgba(0, 0, 0, .45); transition: width .35s ease, background .35s ease, transform .25s ease; }
.jns-slider .owl-dots .owl-dot:hover span { background: #fff; transform: scale(1.25); }
.jns-slider .owl-dots .owl-dot.active span { width: 34px; background: linear-gradient(90deg, #ff9ad0, #ffffff); }
@media (max-width: 768px) { .jns-slider .owl-dots { bottom: 8px; gap: 5px; padding: 0 16px; } .jns-slider .owl-dots .owl-dot span { width: 9px; height: 9px; } .jns-slider .owl-dots .owl-dot.active span { width: 22px; } }
.jns-slider .owl-dots { left: 50%; right: auto; transform: translateX(-50%); width: max-content; max-width: 92%; padding: 6px 18px; background: rgba(15, 12, 45, .45); border-radius: 30px; backdrop-filter: blur(3px); }
@media (max-width: 768px) { .jns-slider .owl-dots { padding: 5px 12px; } }

/* slider dots: small and light */
.jns-slider .owl-dots { bottom: 10px; gap: 4px; padding: 3px 10px; background: rgba(15, 12, 45, .28); backdrop-filter: none; border-radius: 20px; }
.jns-slider .owl-dots .owl-dot { padding: 2px 0; }
.jns-slider .owl-dots .owl-dot span { width: 7px; height: 7px; border-radius: 7px; box-shadow: none; background: rgba(255, 255, 255, .7); }
.jns-slider .owl-dots .owl-dot:hover span { transform: scale(1.3); }
.jns-slider .owl-dots .owl-dot.active span { width: 18px; background: #fff; }
@media (max-width: 768px) { .jns-slider .owl-dots { bottom: 6px; gap: 3px; padding: 2px 8px; } .jns-slider .owl-dots .owl-dot span { width: 6px; height: 6px; } .jns-slider .owl-dots .owl-dot.active span { width: 14px; } }

/* ---------- Home: About Us ---------- */
.about-home { padding: 30px 0 20px; overflow-x: clip; }
.ab-top { margin-top: 26px; }
.ab-text p { line-height: 1.9; text-align: justify; margin-bottom: 14px; }
.ab-text p:first-child::first-letter { float: left; font-size: 3.2rem; line-height: .9; padding: 4px 10px 0 0; color: #a5004f; font-weight: 700; }
.ab-bond { display: flex; gap: 14px; background: #faf3f7; border-left: 4px solid #a5004f; border-radius: 0 14px 14px 0; padding: 14px 18px; margin: 8px 0 20px; }
.ab-bond > i { color: #a5004f; font-size: 1.6rem; opacity: .6; }
.ab-bond strong { display: block; color: #1f1650; margin-bottom: 2px; }
.ab-bond p { margin: 0; line-height: 1.7; font-style: italic; }
.ab-collage { position: relative; padding: 0 0 70px 0; margin-top: 10px; }
.ab-main { position: relative; border-radius: 24px; overflow: hidden; box-shadow: 0 18px 44px rgba(31, 22, 80, .28); width: 88%; aspect-ratio: 4 / 3; }
.ab-main img { width: 100%; height: 100%; object-fit: cover; display: block; animation: abZoom 14s ease-in-out infinite alternate; }
@keyframes abZoom { from { transform: scale(1); } to { transform: scale(1.12); } }
.ab-badge { position: absolute; left: 16px; top: 16px; background: linear-gradient(135deg, #3a2a9d, #a5004f); color: #fff; border-radius: 16px; padding: 8px 16px; text-align: center; font-size: .75rem; letter-spacing: 1px; text-transform: uppercase; box-shadow: 0 6px 16px rgba(0, 0, 0, .3); animation: abFloat 4s ease-in-out infinite; }
.ab-badge b { display: block; font-size: 1.5rem; letter-spacing: 0; order: 2; }
.ab-small { position: absolute; border-radius: 18px; overflow: hidden; border: 5px solid #fff; box-shadow: 0 12px 30px rgba(0, 0, 0, .3); }
.ab-small img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s ease; }
.ab-small:hover img { transform: scale(1.12); }
.ab-small.s1 { width: 44%; aspect-ratio: 4 / 3; right: 0; top: 14%; animation: abFloat 5s ease-in-out infinite; }
.ab-small.s2 { width: 40%; aspect-ratio: 4 / 3; right: 8%; bottom: 0; animation: abFloat 6s ease-in-out -2s infinite; }
@keyframes abFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.ab-vm, .ab-values { margin-top: 26px; }
.ab-card { height: 100%; background: #fff; border-radius: 20px; padding: 28px 28px 22px; box-shadow: 0 10px 30px rgba(31, 22, 80, .12); border: 1px solid #efeaf7; position: relative; overflow: hidden; transition: transform .35s ease, box-shadow .35s ease; margin-bottom: 20px; }
.ab-card:hover { transform: translateY(-8px); box-shadow: 0 20px 44px rgba(58, 42, 157, .22); }
.ab-card::before { content: ""; position: absolute; right: -40px; top: -40px; width: 130px; height: 130px; border-radius: 50%; background: linear-gradient(135deg, rgba(58, 42, 157, .12), rgba(165, 0, 79, .12)); }
.ab-ico { display: inline-flex; width: 58px; height: 58px; border-radius: 16px; align-items: center; justify-content: center; font-size: 1.6rem; color: #fff; background: linear-gradient(135deg, #3a2a9d, #a5004f); box-shadow: 0 8px 18px rgba(165, 0, 79, .3); margin-bottom: 12px; transition: transform .6s ease; }
.ab-card:hover .ab-ico { transform: rotateY(360deg); }
.ab-card h3 { margin: 0 0 8px; font-size: 1.4rem; color: #1f1650; }
.ab-card p { margin: 0; line-height: 1.8; }
.ab-sub { color: #1f1650; font-size: 1.6rem; position: relative; display: inline-block; padding-bottom: 8px; }
.ab-sub::after { content: ""; position: absolute; left: 25%; right: 25%; bottom: 0; height: 3px; border-radius: 3px; background: linear-gradient(90deg, #3a2a9d, #a5004f); }
.ab-val h4 { font-size: 1.15rem; color: #1f1650; margin-bottom: 12px; position: relative; }
.ab-val h4 i { color: #a5004f; margin-right: 8px; }
.ab-val ul { list-style: none; margin: 0; padding: 0; position: relative; }
.ab-val li { padding: 7px 0 7px 30px; position: relative; border-bottom: 1px dashed #ece6f5; line-height: 1.6; transition: padding-left .25s ease; }
.ab-val li:last-child { border-bottom: 0; }
.ab-val li::before { content: "\f00c"; font-family: FontAwesome; position: absolute; left: 0; top: 7px; width: 20px; height: 20px; line-height: 20px; text-align: center; font-size: .7rem; color: #fff; border-radius: 50%; background: linear-gradient(135deg, #3a2a9d, #a5004f); }
.ab-val li:hover { padding-left: 36px; }
@media (max-width: 991px) { .ab-collage { margin: 26px auto 0; max-width: 560px; } }
@media (max-width: 575px) { .ab-collage { padding-bottom: 54px; } .ab-main { width: 92%; } .ab-text p { text-align: left; } }
@media (prefers-reduced-motion: reduce) { .ab-main img, .ab-badge, .ab-small { animation: none !important; } }
.jns-slide.fit-full { background: #f4f1fb; }

/* slider dots: all of them inside about 1 inch (each dot is a tiny segment) */
.jns-slider .owl-dots { width: 96px; max-width: 96px; flex-wrap: nowrap; gap: 2px; padding: 3px 6px; bottom: 10px; }
.jns-slider .owl-dots .owl-dot { flex: 1 1 0; min-width: 0; padding: 7px 0; }
.jns-slider .owl-dots .owl-dot span, .jns-slider .owl-dots .owl-dot.active span { width: 100%; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .5); }
.jns-slider .owl-dots .owl-dot:hover span { transform: scaleY(1.8); background: #fff; }
.jns-slider .owl-dots .owl-dot.active span { background: #fff; transform: scaleY(1.5); }
@media (max-width: 768px) { .jns-slider .owl-dots { width: 96px; max-width: 96px; gap: 2px; padding: 2px 6px; bottom: 6px; } .jns-slider .owl-dots .owl-dot span, .jns-slider .owl-dots .owl-dot.active span { width: 100%; height: 3px; } }

/* slider dots: a little bigger so they are easy to see and click */
.jns-slider .owl-dots { width: 220px; max-width: 86%; gap: 4px; padding: 6px 10px; bottom: 14px; background: rgba(15, 12, 45, .4); border-radius: 20px; }
.jns-slider .owl-dots .owl-dot { padding: 6px 0; }
.jns-slider .owl-dots .owl-dot span, .jns-slider .owl-dots .owl-dot.active span { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .55); }
.jns-slider .owl-dots .owl-dot:hover span { transform: scaleY(1.5); background: #fff; }
.jns-slider .owl-dots .owl-dot.active span { background: #fff; transform: scaleY(1.4); box-shadow: 0 0 6px rgba(255, 255, 255, .8); }
@media (max-width: 768px) { .jns-slider .owl-dots { width: 190px; max-width: 86%; gap: 3px; padding: 5px 8px; bottom: 8px; } .jns-slider .owl-dots .owl-dot span, .jns-slider .owl-dots .owl-dot.active span { height: 5px; } }

/* About Us (home): short text next to the pictures */
.ab-text p { font-size: 1.05rem; line-height: 1.95; margin-bottom: 18px; }
.ab-bond-wide { margin: 6px 0 12px; padding: 18px 26px; border-radius: 16px; border-left: 0; background: linear-gradient(120deg, #f3effb, #fbeef5); box-shadow: 0 6px 20px rgba(31, 22, 80, .08); align-items: center; }
.ab-bond-wide p { font-size: 1.02rem; }
.ab-bond-wide > i { font-size: 2.2rem; }
/* ---------- Home popup: smaller ---------- */
#myModal .modal-dialog { max-width: 560px !important; width: calc(100% - 24px); margin: 70px auto 20px; }
#myModal .modal-content { border: 0; border-radius: 18px; overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
#myModal .modal-header { padding: 10px 16px; background: linear-gradient(90deg, #3a2a9d, #a5004f); color: #fff; border: 0; }
#myModal .modal-title { font-size: 1.05rem; }
#myModal .modal-header .close { color: #fff; opacity: .9; text-shadow: none; }
#myModal .modal-body { padding: 12px 14px; max-height: 62vh; overflow-y: auto; text-align: center; }
#myModal .modal-body img { width: auto !important; max-width: 100%; max-height: 52vh; margin: 0 auto; display: block; border-radius: 10px; object-fit: contain; }
#myModal .modal-footer { padding: 8px 14px; justify-content: center; }
#myModal .modal-footer .btn { padding: 5px 18px; border-radius: 30px; font-size: .92rem; }

/* ---------- Home popup: the picture itself, no frame or background ---------- */
#myModal .modal-dialog { max-width: 96vw !important; width: fit-content; margin: 16px auto; }
#myModal .modal-content { width: fit-content; max-width: 96vw; margin: 0 auto; position: relative; background: transparent; border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
#myModal .modal-header { position: absolute; top: -10px; right: -10px; z-index: 6; padding: 0; background: none; border: 0; }
#myModal .modal-title { display: none; }
#myModal .modal-header .close { float: none; margin: 0; padding: 0; width: 38px; height: 38px; line-height: 34px; border-radius: 50%; background: #fff; color: #a5004f; opacity: 1; font-size: 26px; text-shadow: none; box-shadow: 0 4px 14px rgba(0, 0, 0, .45); transition: transform .25s ease; }
#myModal .modal-header .close:hover { transform: rotate(90deg) scale(1.1); }
#myModal .modal-body { padding: 0; max-height: none; overflow: visible; background: transparent; text-align: center; }
#myModal .modal-body img { width: auto !important; max-width: 94vw; max-height: calc(100vh - 140px); height: auto; border-radius: 12px; box-shadow: 0 16px 60px rgba(0, 0, 0, .55); object-fit: contain; }
#myModal .modal-body p, #myModal .modal-body div:not(.modal-footer) { margin-bottom: 0; }
#myModal .modal-footer { padding: 14px 0 0; border: 0; justify-content: center; background: transparent; }
#myModal .modal-footer .btn { padding: 8px 26px; border-radius: 30px; font-weight: 600; box-shadow: 0 6px 18px rgba(0, 0, 0, .4); }

/* ---------- Message page: bigger photo in a card ---------- */
.jns-message { grid-template-columns: 380px 1fr; gap: 34px; }
.jns-message .jns-who { background: linear-gradient(160deg, #3a2a9d 0%, #7a2a8f 55%, #a5004f 100%); border-radius: 22px; padding: 20px 20px 24px; box-shadow: 0 14px 38px rgba(58, 42, 157, .28); position: sticky; top: 24px; overflow: hidden; }
.jns-message .jns-who::before { content: ""; position: absolute; width: 200px; height: 200px; border-radius: 50%; background: rgba(255, 255, 255, .08); right: -70px; bottom: -70px; }
.jns-message .jns-who img { position: relative; max-width: none; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 28%; border-radius: 16px; border: 4px solid #fff; box-shadow: 0 10px 26px rgba(0, 0, 0, .35); transition: transform .5s ease; }
.jns-message .jns-who:hover img { transform: scale(1.02); }
.jns-message .jns-who h4 { position: relative; margin: 18px 0 2px; color: #fff; font-size: 1.4rem; }
.jns-message .jns-who span { position: relative; color: rgba(255, 255, 255, .9); font-size: .95rem; line-height: 1.5; }
@media (max-width: 991px) { .jns-message { grid-template-columns: 300px 1fr; gap: 24px; } }
@media (max-width: 767px) { .jns-message { grid-template-columns: 1fr; } .jns-message .jns-who { position: static; max-width: 380px; margin: 0 auto; } }
