/* ==========================================================================
   JAGILS design-system layer
   Loaded after main.css on every page. Holds the shared tokens and the
   interaction rules (focus, hover, motion) so every page behaves the same.
   Edit here instead of adding inline styles to individual pages.
   ========================================================================== */

:root {
   --jg-primary: var(--tp-theme-primary, #0089c3);
   --jg-primary-dark: #006f9e;
   --jg-on-primary: #ffffff;
   --jg-ink: var(--tp-heading-primary, #000);
   --jg-text: var(--tp-text-body, #6A5952);
   --jg-surface-alt: var(--tp-grey-2, #F5F6F8);
   --jg-radius: 8px;
   --jg-ease: cubic-bezier(.2, .7, .2, 1);
   --jg-dur: .25s;
}

html { scroll-behavior: smooth; }

/* ---------- Typography: one family, one heading scale ---------- */
h1, h2, h3, h4, h5, h6 { font-family: var(--tp-ff-heading); }

/* main.css ships h1 at 4px; give bare h1s a real size */
h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.5rem); line-height: 1.15; }

/* Page hero title (the one h1 on each inner page) */
.tpbanner-6-content .page-hero__title {
   font-size: clamp(2.25rem, 1.4rem + 3vw, 4.25rem);
   line-height: 1.12;
   overflow-wrap: break-word;
   margin-bottom: 12px;
}
.tpbanner-6-content .page-hero__title.is-long {
   font-size: clamp(1.75rem, 1.2rem + 1.8vw, 3rem);
   line-height: 1.2;
}

/* ---------- Links & focus ---------- */
a, button, .tp-btn, .tp-round-btn {
   transition: color var(--jg-dur) var(--jg-ease), background-color var(--jg-dur) var(--jg-ease),
               border-color var(--jg-dur) var(--jg-ease), box-shadow var(--jg-dur) var(--jg-ease),
               opacity var(--jg-dur) var(--jg-ease), transform var(--jg-dur) var(--jg-ease);
}
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible,
[tabindex]:focus-visible {
   outline: 2px solid var(--jg-primary);
   outline-offset: 3px;
}
.theme-bg a:focus-visible, .theme-bg button:focus-visible,
.header__bottom a:focus-visible, .header__bottom button:focus-visible { outline-color: #fff; }

/* ---------- Header ---------- */
.header-top-links a,
.header__social ul li a { color: #fff; }
.header-top-links a { padding-right: 15px; }
.header-top-links a:hover,
.header__social ul li a:hover { color: #fff; opacity: .75; }

/* Desktop nav: shared underline indicator for hover + current page */
.main-menu-4 .tp-main-menu-content > ul > li > a { position: relative; }
.main-menu-4 .tp-main-menu-content > ul > li > a::after {
   content: "";
   position: absolute;
   left: 0; right: 0; bottom: 9px;
   height: 2px;
   background: currentColor;
   transform: scaleX(0);
   transform-origin: left;
   transition: transform var(--jg-dur) var(--jg-ease);
}
.main-menu-4 .tp-main-menu-content > ul > li:hover > a::after,
.main-menu-4 .tp-main-menu-content > ul > li.is-active > a::after,
.main-menu-4 .tp-main-menu-content > ul > li > a[aria-current="page"]::after { transform: scaleX(1); }

.tp-submenu a[aria-current="page"],
.tp-main-menu-mobile a[aria-current="page"] { color: var(--jg-primary) !important; font-weight: 500; }

.tp-search-toggle { cursor: pointer; }
.tp-search-toggle:hover { opacity: .8; }

/* ---------- Search overlay ---------- */
.tpsearchbar__form input[type="search"] { -webkit-appearance: none; appearance: none; }
.tpsearchbar__form input[type="search"]::-webkit-search-cancel-button { display: none; }

/* ---------- Shared "read more / explore" arrow interaction ---------- */
.services-2-btn a i, .blog-3-btn a i, .blog-btn a i, .blog-5-btn a i, .tp-btn-offcanvas i {
   display: inline-block;
   transition: transform var(--jg-dur) var(--jg-ease);
}
.services-2-btn a:hover i, .blog-3-btn a:hover i, .blog-btn a:hover i, .blog-5-btn a:hover i,
.tp-btn-offcanvas:hover i { transform: translateX(4px); }

/* ---------- Shared card image hover ---------- */
.blog-thumb, .blog-3-thumb, .blog-5-thumb, .blog-6-thumb, .postbox-thumb, .team-3-thumb,
.product-7-thumb, .story-6-thumb { overflow: hidden; }
.blog-thumb img, .blog-3-thumb img, .blog-5-thumb img, .blog-6-thumb img, .postbox-thumb img,
.team-3-thumb img, .product-7-thumb img, .story-6-thumb img {
   transition: transform .5s var(--jg-ease);
}
.blog-item:hover .blog-thumb img, .blog-3-item:hover .blog-3-thumb img, .blog-6-item:hover .blog-6-thumb img,
.postbox-item:hover .postbox-thumb img, .team-3-thumb:hover img, .product-7-thumb:hover img,
.story-6-thumb:hover img { transform: scale(1.04); }

/* ---------- Content images never overflow their column ---------- */
main img { max-width: 100%; }

/* ---------- Footer ---------- */
.footer-copyright, .footer-copyright span { color: aliceblue; }
.footer-copyright a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-copyright a:hover { opacity: .8; }
.footer-6 .footer-social a { color: #fff; }
.footer-6 .footer-social a:hover { opacity: .75; }
.footer-6 .footer-link ul li a:hover { color: #fff; opacity: .8; }

/* ---------- Medium section title (for long, multi-section pages) ---------- */
.tpsection-title.tpsection-title--md {
   font-size: clamp(2rem, 1.4rem + 1.8vw, 3rem);
   line-height: 1.15;
   font-weight: 700;
}

/* ==========================================================================
   Research project page (research.html) — built from the shared tokens
   ========================================================================== */
.rp { --rp-card-border: rgba(0, 0, 0, .08); }
.rp p { font-size: 17px; line-height: 1.7; }
.rp .tpbanner-6-content .page-hero__title { font-weight: 700; }
.rp-hero__sub { display: block; line-height: 1.5; color: aliceblue; font-size: clamp(1rem, .9rem + .5vw, 1.375rem); max-width: 640px; }
.rp-lead { font-size: 18px; color: var(--jg-ink); }

/* stats */
.rp-stat {
   height: 100%;
   padding: 28px 26px;
   background: #fff;
   border: 1px solid var(--rp-card-border);
   border-top: 4px solid var(--jg-primary);
   border-radius: var(--jg-radius);
}
.rp-stat__value { display: block; font-size: 28px; font-weight: 700; line-height: 1.15; color: var(--jg-primary); margin-bottom: 8px; }
.rp-stat__label { display: block; font-size: 15px; color: var(--jg-text); line-height: 1.5; }

/* in-page navigation */
.rp-subnav {
   position: sticky;
   top: 80px;
   z-index: 5;
   background: rgba(255, 255, 255, .96);
   backdrop-filter: blur(6px);
   border-top: 1px solid var(--rp-card-border);
   border-bottom: 1px solid var(--rp-card-border);
}
@media (max-width: 1199px) { .rp-subnav { top: 56px; } }
.rp-subnav ul { display: flex; gap: 6px; margin: 0; padding: 12px 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.rp-subnav ul::-webkit-scrollbar { display: none; }
.rp-subnav a {
   display: inline-block;
   white-space: nowrap;
   padding: 7px 16px;
   border-radius: 999px;
   font-size: 15px;
   font-weight: 500;
   color: var(--jg-ink);
   border: 1px solid transparent;
}
.rp-subnav a:hover { color: var(--jg-primary); border-color: var(--jg-primary); }
.rp-subnav a.is-current { background: var(--jg-primary); color: #fff; }
.rp section[id], .rp [id] { scroll-margin-top: 150px; }

/* panels, lists, cards */
.rp-panel { height: 100%; padding: 40px; background: var(--jg-surface-alt); border-radius: var(--jg-radius); }
.rp-panel__title, .rp-subhead { font-size: 26px; font-weight: 600; margin-bottom: 22px; }
.rp-checklist { list-style: none; margin: 0; padding: 0; }
.rp-checklist li { position: relative; padding-left: 38px; margin-bottom: 18px; font-size: 17px; line-height: 1.65; color: var(--jg-text); }
.rp-checklist li::before {
   content: "\f00c";
   font-family: var(--tp-ff-fontawesome);
   font-weight: 400;
   position: absolute; left: 0; top: 2px;
   width: 26px; height: 26px; line-height: 26px;
   text-align: center; font-size: 13px;
   border-radius: 50%;
   color: #fff; background: var(--jg-primary);
}
.rp-checklist--shield li::before { content: "\f3ed"; }

.rp-card {
   height: 100%;
   padding: 32px 28px;
   background: #fff;
   border: 1px solid var(--rp-card-border);
   border-radius: var(--jg-radius);
   transition: transform var(--jg-dur) var(--jg-ease), box-shadow var(--jg-dur) var(--jg-ease), border-color var(--jg-dur) var(--jg-ease);
}
.rp-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(0, 60, 90, .10); border-color: transparent; }
.rp-card p { margin-bottom: 0; color: var(--jg-text); }
.rp-card__num { display: block; font-size: 15px; font-weight: 700; letter-spacing: .08em; color: var(--jg-primary); margin-bottom: 14px; }
.rp-card--icon i {
   display: inline-flex; align-items: center; justify-content: center;
   width: 54px; height: 54px; margin-bottom: 20px;
   font-size: 22px; border-radius: 50%;
   color: var(--jg-primary); background: rgba(0, 137, 195, .10);
}
.rp-card--icon h3 { font-size: 22px; font-weight: 600; margin-bottom: 10px; }

/* dark band text */
.rp-on-dark span { color: #fff; }
.rp-on-dark-text { color: aliceblue; }

/* countries */
.rp-country {
   height: 100%;
   padding: 26px 22px;
   border-radius: var(--jg-radius);
   background: #fff;
   border: 1px solid var(--rp-card-border);
   border-left: 4px solid var(--jg-primary);
}
.rp-country__name { display: block; font-size: 21px; font-weight: 700; color: var(--jg-ink); margin-bottom: 10px; }
.rp-country__label { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--jg-primary); margin-bottom: 6px; }
.rp-country p { font-size: 16px; margin: 0; color: var(--jg-text); }

/* timeline */
.rp-timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: rp-step; }
.rp-timeline__item { position: relative; padding-top: 46px; counter-increment: rp-step; }
.rp-timeline__item::before {
   content: counter(rp-step);
   position: absolute; top: 0; left: 0; z-index: 1;
   width: 34px; height: 34px; line-height: 34px;
   text-align: center; font-weight: 700; color: #fff;
   border-radius: 50%; background: var(--jg-primary);
   box-shadow: 0 0 0 6px var(--tp-grey-2, #F5F6F8);
}
.rp-timeline__item::after { content: ""; position: absolute; top: 16px; left: 34px; right: -24px; height: 2px; background: rgba(0, 137, 195, .3); }
.rp-timeline__item:last-child::after { display: none; }
.rp-timeline__when { display: block; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--jg-primary); margin-bottom: 6px; }
.rp-timeline__stage { font-size: 24px; font-weight: 600; margin-bottom: 10px; }
.rp-timeline__item p { font-size: 16px; color: var(--jg-text); margin: 0; }
.rp-note { font-size: 15px !important; color: var(--jg-text); }
.rp-note i { color: var(--jg-primary); margin-right: 6px; }
@media (max-width: 991px) {
   .rp-timeline { grid-template-columns: 1fr; gap: 0; }
   .rp-timeline__item { padding: 0 0 32px 56px; }
   .rp-timeline__item::after { top: 34px; bottom: 0; left: 16px; right: auto; width: 2px; height: auto; }
}

/* team */
.rp-lead-card {
   display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: 40px; align-items: center;
   padding: 28px; background: #fff; border-radius: var(--jg-radius);
   border: 1px solid var(--rp-card-border);
}
.rp-lead-card__photo { border-radius: var(--jg-radius); overflow: hidden; aspect-ratio: 4 / 5; }
.rp-lead-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.rp-role-tag { display: inline-block; padding: 6px 14px; margin-bottom: 14px; border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--jg-primary); background: rgba(0, 137, 195, .10); }
.rp-lead-card__name { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.25rem); font-weight: 700; margin-bottom: 6px; }
.rp-lead-card__title { font-weight: 500; color: var(--jg-ink); }
@media (max-width: 767px) { .rp-lead-card { grid-template-columns: 1fr; gap: 24px; } }

.rp-member {
   height: 100%; overflow: hidden;
   background: #fff; border-radius: var(--jg-radius);
   border: 1px solid var(--rp-card-border);
   transition: transform var(--jg-dur) var(--jg-ease), box-shadow var(--jg-dur) var(--jg-ease);
}
.rp-member:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(0, 60, 90, .10); }
.rp-member__photo { aspect-ratio: 1 / 1; overflow: hidden; background: var(--jg-surface-alt); }
.rp-member__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; transition: transform .5s var(--jg-ease); }
.rp-member:hover .rp-member__photo img { transform: scale(1.04); }
.rp-member__body { padding: 22px 22px 26px; }
.rp-member__name { font-size: 20px; font-weight: 600; margin-bottom: 4px; }
.rp-member__role { display: block; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--jg-primary); margin-bottom: 12px; }
.rp-member__body p { font-size: 15px; line-height: 1.6; color: var(--jg-text); margin: 0; }

/* FAQ uses the site accordion; tune size for this page */
.rp-accordion .accordion-button { font-size: 21px; padding: 26px 40px 26px 0; }
.rp-accordion .accordion-item { border-bottom: 1px solid rgba(0, 0, 0, .12); }
.rp-accordion .accordion-header { margin: 0; }

/* contact CTA */
.rp-cta { padding: clamp(32px, 5vw, 64px); border-radius: calc(var(--jg-radius) * 2); }
.rp-contact-list { list-style: none; margin: 0 0 26px; padding: 0; }
.rp-contact-list li { display: grid; grid-template-columns: 28px 1fr; column-gap: 12px; margin-bottom: 16px; color: aliceblue; }
.rp-contact-list i { grid-row: span 2; margin-top: 4px; font-size: 18px; color: #fff; }
.rp-contact-list span { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.rp-contact-list a, .rp-contact-list strong { color: #fff; font-weight: 500; overflow-wrap: anywhere; }
.rp-contact-list a:hover { text-decoration: underline; text-underline-offset: 3px; }
.rp-cta .tp-round-btn.rp-cta__btn { background: #fff; color: var(--jg-primary); padding: 14px 30px; }
.rp-cta .tp-round-btn.rp-cta__btn:hover { background: var(--jg-ink); color: #fff; }

/* ---------- Homepage slider: photo backgrounds need a stronger overlay for legible text ---------- */
.tpbanner-6-bg.tpbanner-6-bg--photo { position: relative; background-position: center 58% !important; }
@media (max-aspect-ratio: 2/1) { .tpbanner-6-bg.tpbanner-6-bg--photo { background-position: center 67% !important; } }
@media (max-aspect-ratio: 1/1) { .tpbanner-6-bg.tpbanner-6-bg--photo { background-position: center 62% !important; } }

/* Hero slider headlines wrap on small screens instead of running off the edge */
@media (max-width: 767px) {
   .tpbanner-6-title { font-size: clamp(2.5rem, 13vw, 4.5rem) !important; line-height: 1.05 !important; overflow-wrap: anywhere; }
   .tpbanner-6-content .page-hero__title { font-size: clamp(2rem, 9vw, 3rem); }
}

/* Header: keep the main menu on one line between 1200px and 1399px */
@media (min-width: 1200px) and (max-width: 1399px) {
   .main-menu-4 .tp-main-menu-content > ul > li { margin-right: 26px; }
   .main-menu-4 .tp-main-menu-content > ul > li:last-child { margin-right: 0; }
   .main-menu-4 .tp-main-menu-content > ul > li > a { font-size: 18px; }
}

/* Homepage counters: solid numbers with the label clearly underneath */
.counter-6-content .count { display: block; font-size: clamp(3rem, 2rem + 3vw, 4.5rem); font-weight: 700; color: var(--jg-primary); line-height: 1.1; }
.counter-6-content .count::after { color: var(--jg-primary); font-size: .7em; }
.counter-6-content .count .odometer.odometer-auto-theme { transform: none; }
.counter-6-item p { position: static; transform: none; left: auto; bottom: auto; margin-top: 6px; font-size: 18px; font-weight: 500; color: var(--jg-ink); }
.tpbanner-6-bg.tpbanner-6-bg--photo::after {
   content: "";
   position: absolute; inset: 0; z-index: 0;
   background: linear-gradient(180deg, rgba(0, 25, 45, .35) 0%, rgba(0, 25, 45, .65) 100%);
   pointer-events: none;
}
.tpbanner-6-bg.tpbanner-6-bg--photo > .container { position: relative; z-index: 1; }
.tpbanner-6-bg--photo .tpbanner-6-title { color: #fff; opacity: 1; -webkit-text-stroke: 0; }

/* ---------- Application pages: embedded JotForm starts below the header ---------- */
main > iframe[id^="JotFormIFrame"] { display: block; margin-top: 80px; }
@media (max-width: 1199px) { main > iframe[id^="JotFormIFrame"] { margin-top: 56px; } }

/* Pages without a photo banner (application forms, 404): give the transparent header a solid background */
body:has(main > iframe[id^="JotFormIFrame"]) .transparent__header,
body:has(.nf-section) .transparent__header { background-color: var(--tp-theme-primary); }

/* ---------- 404 page ---------- */
.nf-section { padding: 200px 0 120px; }
.nf-code { display: block; font-size: clamp(5rem, 3rem + 8vw, 9rem); font-weight: 700; line-height: 1; color: var(--jg-primary); opacity: .9; margin-bottom: 10px; }
.nf-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.nf-btn-outline.tp-round-btn { background: transparent; color: var(--jg-primary); box-shadow: inset 0 0 0 2px var(--jg-primary); }
.nf-btn-outline.tp-round-btn:hover { background: var(--jg-primary); color: #fff; }

/* ---------- Journal page (jagils-journal.html) ---------- */
.jr-hero.tpbanner-6-bg { position: relative; }
.jr-hero.tpbanner-6-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 25, 45, .75) 0%, rgba(0, 25, 45, .35) 70%); pointer-events: none; }
.jr-hero.tpbanner-6-bg > .container { position: relative; z-index: 1; }
.rp-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.rp-btn-outline-light.tp-round-btn { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .85); padding: 14px 30px; }
.rp-btn-outline-light.tp-round-btn:hover { background: #fff; color: var(--jg-primary); }
.jr-topics { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; }
.jr-topics li { padding: 9px 16px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--jg-primary); background: #fff; border: 1px solid rgba(0, 137, 195, .3); }
.jr-deflist { margin: 0; }
.jr-deflist > div { display: grid; grid-template-columns: 150px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid rgba(0, 0, 0, .08); }
.jr-deflist > div:last-child { border-bottom: 0; padding-bottom: 0; }
.jr-deflist dt { font-size: 16px; font-weight: 600; color: var(--jg-ink); }
.jr-deflist dd { margin: 0; font-size: 16px; line-height: 1.6; color: var(--jg-text); }
@media (max-width: 575px) { .jr-deflist > div { grid-template-columns: 1fr; gap: 2px; } }
.jr-note { padding: 32px; border-radius: var(--jg-radius); background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .25); }
.jr-note__title { font-size: 20px; font-weight: 600; color: #fff; margin-bottom: 12px; }
.jr-note__title i { margin-right: 6px; }
.jr-note p { color: aliceblue; font-size: 16px !important; }
#process .rp-timeline__item { padding-top: 50px; }

/* ---------- Event cards (events.html + homepage upcoming events) ---------- */
.ev-card {
   position: relative;
   display: flex; flex-direction: column;
   height: 100%; overflow: hidden;
   background: #fff;
   border: 1px solid rgba(0, 0, 0, .08);
   border-radius: var(--jg-radius);
   transition: transform var(--jg-dur) var(--jg-ease), box-shadow var(--jg-dur) var(--jg-ease);
}
.ev-card__media { aspect-ratio: 41 / 37; overflow: hidden; background: var(--jg-surface-alt); }
.ev-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--jg-ease); }
.ev-card__body { padding: 18px 20px 22px; }
.ev-card__date { display: inline-block; margin-bottom: 8px; font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--jg-primary); }
.ev-card__title { margin: 0; font-size: 19px; font-weight: 600; line-height: 1.35; color: var(--jg-ink); }
.ev-card__title i { font-size: 13px; color: var(--jg-primary); margin-left: 4px; }
.ev-card__link { color: inherit; }
.ev-card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }   /* whole card is clickable */
.ev-card__meta { margin: 8px 0 0; font-size: 14px !important; line-height: 1.5 !important; color: var(--jg-text); }
.ev-card--linked:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(0, 60, 90, .10); }
.ev-card--linked:hover .ev-card__media img { transform: scale(1.04); }
.ev-card--linked:hover .ev-card__title { color: var(--jg-primary); }
.ev-card--past .ev-card__media img { filter: grayscale(.35); }
.ev-card--past .ev-card__date { color: var(--jg-text); }

/* ---------- Featured book (homepage "Pre-order" panel + store page) ---------- */
.book-feature__tag { display: inline-block; margin-bottom: 14px; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--jg-primary); }
.offer-7-item.book-feature .offer-7-title { margin-bottom: 18px; }
.offer-7-item.book-feature p { color: aliceblue; margin-bottom: 6px; }
.book-feature__title { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); font-weight: 700; line-height: 1.2; color: #fff !important; }
.book-feature__sub { font-size: 18px; font-weight: 500; }
.book-feature__author { font-size: 15px; opacity: .85; margin-bottom: 24px !important; }
.offer-7-item.book-feature .offer-7-btn { margin-top: 18px; }
.book-feature__cover { text-align: center; }
.book-feature__cover img { max-height: 380px; width: auto; max-width: 100%; border-radius: 6px; transition: transform .5s var(--jg-ease); }
.book-feature__cover a:hover img { transform: translateY(-6px) rotate(-1deg); }
.book-feature--store { padding: clamp(28px, 4vw, 56px); border-radius: calc(var(--jg-radius) * 2); background: var(--tp-grey-2, #F5F6F8); }
.book-feature--store .book-feature__cover img { max-height: 520px; box-shadow: 0 24px 50px rgba(0, 20, 40, .25); }
.book-feature--store .book-feature__sub { color: var(--jg-ink); }
.book-feature--store .book-feature__author { color: var(--jg-text); }
.book-feature__btn.tp-round-btn { padding: 14px 32px; }
.book-feature__btn i { margin-left: 8px; transition: transform var(--jg-dur) var(--jg-ease); }
.book-feature__btn:hover i { transform: translateX(4px); }
.store-banner { background: #050d1f; }
.store-banner img { display: block; width: 100%; height: auto; }
@media (max-width: 1199px) { .store-banner { padding-top: 56px; } }

/* ---------- Program page extras (leap-scholars-program.html) ---------- */
.rp-hero__actions { margin-top: 26px; }
.rp-btn-light.tp-round-btn { background: #fff; color: var(--jg-primary); padding: 14px 30px; }
.rp-btn-light.tp-round-btn:hover { background: var(--jg-ink); color: #fff; }
.rp .tp-round-btn i { margin-left: 8px; transition: transform var(--jg-dur) var(--jg-ease); }
.rp .tp-round-btn:hover i { transform: translateX(4px); }
.rp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 10px; }
.rp-actions__note { font-size: 15px; color: var(--jg-text); }
.rp-figure { border-radius: var(--jg-radius); overflow: hidden; box-shadow: 0 20px 50px rgba(0, 40, 70, .14); }
.rp-figure img { display: block; width: 100%; height: auto; }
.rp-stat__label--top { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--jg-primary); margin-bottom: 8px; }
.rp-stat__label--top + .rp-stat__value { color: var(--jg-ink); font-size: 24px; }
.rp-panel--white { background: #fff; border: 1px solid var(--rp-card-border); }
.rp-panel__icon { color: var(--jg-primary); margin-right: 6px; }
.rp-timeline--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 991px) { .rp-timeline--3 { grid-template-columns: 1fr; } }

.rp-steps { list-style: none; counter-reset: rp-s; margin: 0 0 24px; padding: 0; }
.rp-steps li { position: relative; counter-increment: rp-s; padding: 0 0 18px 46px; font-size: 17px; line-height: 1.6; color: var(--jg-text); }
.rp-steps li::before {
   content: counter(rp-s);
   position: absolute; left: 0; top: 0;
   width: 30px; height: 30px; line-height: 30px;
   text-align: center; font-weight: 700; font-size: 14px;
   border-radius: 50%; color: var(--jg-primary);
   border: 2px solid var(--jg-primary);
}

.rp-scores { list-style: none; margin: 0; padding: 0; }
.rp-scores li { margin-bottom: 26px; }
.rp-scores__head { display: flex; justify-content: space-between; gap: 16px; color: #fff; font-size: 19px; font-weight: 600; margin-bottom: 10px; }
.rp-scores__head strong { font-size: 22px; }
.rp-scores__bar { height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .22); overflow: hidden; }
.rp-scores__bar span { display: block; height: 100%; width: calc(var(--w) * 3.33); max-width: 100%; border-radius: inherit; background: #fff; }
.rp-scores li p { color: aliceblue; font-size: 15px; margin: 8px 0 0; opacity: .9; }

.rp-details { margin: 0; padding: 10px 30px; background: #fff; border-radius: var(--jg-radius); border: 1px solid var(--rp-card-border); border-top: 4px solid var(--jg-primary); }
.rp-details > div { display: grid; grid-template-columns: 160px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--rp-card-border); }
.rp-details > div:last-child { border-bottom: 0; }
.rp-details dt { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--jg-primary); align-self: center; }
.rp-details dd { margin: 0; font-size: 18px; font-weight: 600; color: var(--jg-ink); overflow-wrap: anywhere; }
@media (max-width: 575px) { .rp-details > div { grid-template-columns: 1fr; gap: 4px; } }

.rp-contact-inline { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 18px 0 0; padding: 0; }
.rp-contact-inline li { display: flex; align-items: center; gap: 10px; color: #fff; }
.rp-contact-inline a { color: #fff; font-weight: 500; }
.rp-contact-inline a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
   html { scroll-behavior: auto; }
   *, *::before, *::after {
      animation-duration: .01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: .01ms !important;
   }
}
