/*
Theme Name: Immuno Lab
Theme URI: https://www.immunopr.com/
Author: Immuno Reference Lab
Description: Modern, fully editable block theme for Immuno Reference Lab. Editable header and footer (Site Editor), full-width hero slider, animated counters, Quick Guide test menu (559 tests, searchable and sortable), blog/news, site search, Google Map block, social links and reusable section patterns. Everything is edited from the WordPress block editor — no page builder required.
Version: 1.0.6
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: immuno-lab
Tags: full-site-editing, block-patterns, custom-colors, custom-logo, editor-style, wide-blocks, blog, one-column
*/

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
.wp-site-blocks { overflow-x: clip; }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }
::selection { background: var(--wp--preset--color--accent); color: var(--wp--preset--color--primary-dark); }

/* ---------- Header ---------- */
.site-topbar { font-size: .85rem; }
.site-topbar a { color: inherit; text-decoration: none; }
.site-topbar a:hover { color: var(--wp--preset--color--accent); }
.site-topbar .wp-block-social-links { gap: .35rem; }
.site-topbar .wp-block-social-links .wp-social-link { background: transparent !important; color: #fff !important; }
.site-topbar .wp-block-social-links .wp-social-link svg { width: 16px; height: 16px; }

/* The whole header part is sticky; the top bar scrolls away (offset set by theme.js). */
.wp-site-blocks > header.wp-block-template-part { position: sticky; top: calc(-1 * var(--immuno-topbar-h, 0px)); z-index: 50; }
.admin-bar .wp-site-blocks > header.wp-block-template-part { top: calc(32px - var(--immuno-topbar-h, 0px)); }
@media (max-width: 782px) { .admin-bar .wp-site-blocks > header.wp-block-template-part { top: calc(-1 * var(--immuno-topbar-h, 0px)); } }
@media (max-width: 600px) { .site-topbar .wp-block-social-links { display: none; } .header-cta { display: none !important; } .site-header .wp-block-site-logo img { max-width: 170px; } }
.site-header { background: rgba(255,255,255,.96); backdrop-filter: saturate(160%) blur(10px); transition: box-shadow .25s ease; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(31,24,70,.10); }
.site-header .wp-block-site-logo { flex-shrink: 0; }
.site-header .wp-block-site-logo img { height: auto; max-height: none; }
.site-header .wp-block-navigation { flex-shrink: 1; min-width: 0; }
.site-header .wp-block-site-title a { text-decoration: none; }
.site-header .wp-block-navigation a { text-decoration: none; }
.site-header .wp-block-navigation .wp-block-navigation-item__content { padding: .5rem .2rem; position: relative; }
.site-header .wp-block-navigation .wp-block-navigation-item__content::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
	background: var(--wp--preset--color--accent); transform: scaleX(0); transition: transform .25s ease;
}
.site-header .wp-block-navigation .wp-block-navigation-item__content:hover::after,
.site-header .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content::after { transform: scaleX(1); }
.site-header .wp-block-search__input { border-radius: 999px; border: 1px solid #dcd9ea; padding: .45rem .9rem; font-size: .9rem; }
.site-header .wp-block-search__button { border-radius: 999px; }
.site-header .wp-block-search.wp-block-search__button-only .wp-block-search__button { background: var(--wp--preset--color--light); color: var(--wp--preset--color--primary); padding: .55rem; }

/* Mobile menu overlay */
.wp-block-navigation__responsive-container.is-menu-open { background: var(--wp--preset--color--primary-dark) !important; color: #fff !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 1.35rem; padding: .4rem 0; }

/* ---------- Slider block ---------- */
.wp-block-immuno-slider { position: relative; overflow: hidden; --slider-height: 78vh; }
.wp-block-immuno-slider .immuno-slider__track { display: flex; transition: transform .7s cubic-bezier(.65,.05,.36,1); will-change: transform; }
.wp-block-immuno-slider .immuno-slider__track > * { flex: 0 0 100%; min-width: 100%; margin: 0 !important; }
.wp-block-immuno-slider .immuno-slider__track > .wp-block-cover { min-height: var(--slider-height) !important; }
.wp-block-immuno-slider.is-fade .immuno-slider__track { display: grid; transform: none !important; }
.wp-block-immuno-slider.is-fade .immuno-slider__track > * { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility .9s; }
.wp-block-immuno-slider.is-fade .immuno-slider__track > .is-active { opacity: 1; visibility: visible; }
.wp-block-immuno-slider .wp-block-cover__inner-container > * { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.wp-block-immuno-slider .is-active .wp-block-cover__inner-container > * { opacity: 1; transform: none; }
.wp-block-immuno-slider .is-active .wp-block-cover__inner-container > *:nth-child(2) { transition-delay: .15s; }
.wp-block-immuno-slider .is-active .wp-block-cover__inner-container > *:nth-child(3) { transition-delay: .3s; }
.wp-block-immuno-slider .is-active .wp-block-cover__inner-container > *:nth-child(4) { transition-delay: .45s; }
.wp-block-immuno-slider:not(.is-ready) .immuno-slider__track > *:first-child .wp-block-cover__inner-container > * { opacity: 1; transform: none; }

.immuno-slider__arrow {
	position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 52px; height: 52px; border-radius: 50%;
	border: 1px solid rgba(255,255,255,.45); background: rgba(255,255,255,.12); color: #fff; cursor: pointer;
	display: grid; place-items: center; backdrop-filter: blur(6px); transition: background .2s, transform .2s;
}
.immuno-slider__arrow:hover { background: var(--wp--preset--color--accent); color: var(--wp--preset--color--primary-dark); border-color: transparent; }
.immuno-slider__arrow svg { width: 22px; height: 22px; }
.immuno-slider__arrow--prev { left: clamp(.5rem, 2vw, 1.75rem); }
.immuno-slider__arrow--next { right: clamp(.5rem, 2vw, 1.75rem); }
.immuno-slider__dots { position: absolute; left: 0; right: 0; bottom: 1.6rem; display: flex; justify-content: center; gap: .5rem; z-index: 5; }
.immuno-slider__dot { width: 12px; height: 12px; border-radius: 999px; border: 0; padding: 0; background: rgba(255,255,255,.5); cursor: pointer; transition: width .3s, background .3s; }
.immuno-slider__dot.is-active { width: 34px; background: var(--wp--preset--color--accent); }
.immuno-slider__progress { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--wp--preset--color--accent); width: 0; z-index: 5; }
@media (max-width: 781px) {
	.wp-block-immuno-slider { --slider-height: 82vh; }
	.immuno-slider__arrow { display: none; }
}
/* Editor: show slides stacked */
.immuno-slider__editor-track { display: grid; gap: 12px; }
.immuno-slider__editor-label { font: 600 12px/1.4 system-ui, sans-serif; text-transform: uppercase; letter-spacing: .08em; color: #fff; background: #34286E; padding: 6px 12px; border-radius: 6px 6px 0 0; display: inline-block; }
.editor-styles-wrapper .wp-block-immuno-slider .wp-block-cover { min-height: 340px !important; }
.editor-styles-wrapper .wp-block-immuno-slider .wp-block-cover__inner-container > * { opacity: 1; transform: none; }

/* Hero slide with text left + image/logo right */
.wp-block-cover .hero-split { width: 100%; }
.hero-split .hero-split__visual { margin: 0 auto !important; text-align: center; }
.hero-split .hero-split__visual img { width: 100%; max-width: 520px; max-height: 62vh; height: auto; object-fit: contain; margin: 0 auto; filter: drop-shadow(0 24px 40px rgba(0,0,0,.25)); }
.wp-block-immuno-slider .is-active .hero-split .hero-split__visual img { animation: immuno-float 6s ease-in-out infinite; }
@keyframes immuno-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (max-width: 781px) {
	.hero-split { gap: 1.5rem !important; }
	.hero-split .hero-split__visual img { max-width: 240px; max-height: 28vh; }
}
@media (prefers-reduced-motion: reduce) { .hero-split .hero-split__visual img { animation: none !important; } }

/* ---------- Photo slider block ---------- */
.wp-block-immuno-photo-slider { position: relative; --ps-gap: 1.25rem; --pv: var(--per-view, 1); }
.wp-block-immuno-photo-slider .immuno-photos__track { display: flex; gap: var(--ps-gap); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; }
.wp-block-immuno-photo-slider .immuno-photos__track::-webkit-scrollbar { display: none; }
.wp-block-immuno-photo-slider .immuno-photos__track:focus-visible { outline: 3px solid var(--wp--preset--color--accent); outline-offset: 4px; }
.wp-block-immuno-photo-slider .immuno-photos__track > * { flex: 0 0 calc((100% - (var(--pv) - 1) * var(--ps-gap)) / var(--pv)); min-width: 0; margin: 0 !important; scroll-snap-align: start; position: relative; overflow: hidden; }
.wp-block-immuno-photo-slider .immuno-photos__track img { display: block; width: 100%; height: var(--ps-height, 460px); object-fit: cover; }
.wp-block-immuno-photo-slider.is-rounded .immuno-photos__track > * { border-radius: 18px; }
.wp-block-immuno-photo-slider .immuno-photos__track figcaption { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 2.5rem 1.25rem 1rem; color: #fff; font-size: .9rem; text-align: left; background: linear-gradient(180deg, transparent, rgba(31,24,70,.85)); }
.immuno-photos__arrow { position: absolute; top: calc(var(--ps-height, 460px) / 2); transform: translateY(-50%); z-index: 3; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--wp--preset--color--primary-dark); display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 18px rgba(31,24,70,.2); transition: background .2s, color .2s; }
.wp-block-immuno-photo-slider[style*="--ps-height:auto"] .immuno-photos__arrow { top: 45%; }
.immuno-photos__arrow:hover { background: var(--wp--preset--color--accent); }
.immuno-photos__arrow svg { width: 20px; height: 20px; }
.immuno-photos__arrow--prev { left: .75rem; }
.immuno-photos__arrow--next { right: .75rem; }
.immuno-photos__dots { display: flex; justify-content: center; gap: .45rem; margin-top: 1rem; }
.immuno-photos__dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: #d6d3e8; cursor: pointer; transition: width .3s, background .3s; }
.immuno-photos__dot.is-active { width: 28px; background: var(--wp--preset--color--primary); }
.is-dark-section .immuno-photos__dot { background: rgba(255,255,255,.35); }
.is-dark-section .immuno-photos__dot.is-active { background: var(--wp--preset--color--accent); }
@media (max-width: 1024px) { .wp-block-immuno-photo-slider { --pv: min(var(--per-view, 1), 2); } }
@media (max-width: 600px) { .wp-block-immuno-photo-slider { --pv: 1; --ps-gap: .75rem; } .wp-block-immuno-photo-slider .immuno-photos__track img { height: min(var(--ps-height, 460px), 62vh); } .immuno-photos__arrow { width: 38px; height: 38px; } }
/* Photo slider — animated effects */
.wp-block-immuno-photo-slider.is-effect-fade-zoom .immuno-photos__track,
.wp-block-immuno-photo-slider.is-effect-coverflow .immuno-photos__track { overflow: hidden; scroll-snap-type: none; }
/* Ken Burns */
.is-effect-fade-zoom .immuno-photos__track { display: grid; }
.is-effect-fade-zoom .immuno-photos__track > * { grid-area: 1 / 1; flex: none; width: 100%; opacity: 0; transition: opacity 1.4s ease; }
.is-effect-fade-zoom .immuno-photos__track > .is-active { opacity: 1; z-index: 1; }
.is-effect-fade-zoom:not(.is-ready) .immuno-photos__track > :first-child { opacity: 1; }
.is-effect-fade-zoom .immuno-photos__track > .is-active img { animation: immuno-kenburns 9s ease-out both; }
.is-effect-fade-zoom .immuno-photos__track > *:nth-child(even).is-active img { animation-name: immuno-kenburns-alt; }
@keyframes immuno-kenburns { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.14) translate(-2%, -1.5%); } }
@keyframes immuno-kenburns-alt { from { transform: scale(1.14) translate(2%, 1%); } to { transform: scale(1) translate(0, 0); } }
.is-effect-fade-zoom .immuno-photos__track figcaption { transform: translateY(100%); opacity: 0; transition: transform .8s ease .4s, opacity .8s ease .4s; }
.is-effect-fade-zoom .immuno-photos__track > .is-active figcaption { transform: none; opacity: 1; }
/* 3D Coverflow */
.is-effect-coverflow { overflow: hidden; padding: 1.5rem 0 .5rem; }
.is-effect-coverflow .immuno-photos__track { display: block; position: relative; height: var(--ps-height, 460px); perspective: 1400px; overflow: visible !important; }
.is-effect-coverflow .immuno-photos__track > * { position: absolute; top: 0; left: 50%; width: min(58%, 760px); height: 100%; transform: translateX(-50%); transition: transform .8s cubic-bezier(.2,.8,.2,1), opacity .8s, filter .8s; cursor: pointer; box-shadow: 0 28px 60px rgba(31,24,70,.35); }
.is-effect-coverflow .immuno-photos__track > .is-active { cursor: default; }
.is-effect-coverflow .immuno-photos__track img { height: 100%; }
.is-effect-coverflow:not(.is-ready) .immuno-photos__track > :not(:first-child) { opacity: 0; }
.is-effect-coverflow .immuno-photos__arrow { top: calc(1.5rem + var(--ps-height, 460px) / 2); z-index: 30; }
@media (max-width: 700px) { .is-effect-coverflow .immuno-photos__track > * { width: 78%; } }
/* Infinite carousel */
.is-effect-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.is-effect-marquee .immuno-photos__track { overflow: visible; width: max-content; scroll-snap-type: none; animation: immuno-marquee var(--marquee-time, 30s) linear infinite; }
.is-effect-marquee .immuno-photos__track > * { flex: 0 0 var(--item-w, 320px); }
.is-effect-marquee:hover .immuno-photos__track, .is-effect-marquee.is-paused .immuno-photos__track { animation-play-state: paused; }
.is-effect-marquee .immuno-photos__track > * img { transition: transform .6s ease; }
.is-effect-marquee .immuno-photos__track > *:hover img { transform: scale(1.08); }
@keyframes immuno-marquee { from { transform: translateX(0); } to { transform: translateX(calc(-50% - var(--ps-gap) / 2)); } }
.is-effect-marquee .immuno-photos__arrow, .is-effect-marquee .immuno-photos__dots { display: none; }
@media (prefers-reduced-motion: reduce) { .is-effect-fade-zoom img, .is-effect-marquee .immuno-photos__track { animation: none !important; } }
/* Style: arrows in the top corner (as on the original site) */
.wp-block-immuno-photo-slider.is-style-arrows-corner .immuno-photos__arrow { top: 1rem; transform: none; width: 44px; height: 40px; border-radius: 4px; background: rgba(31,24,70,.72); color: #fff; box-shadow: none; }
.wp-block-immuno-photo-slider.is-style-arrows-corner .immuno-photos__arrow:hover { background: var(--wp--preset--color--accent); color: var(--wp--preset--color--primary-dark); }
.wp-block-immuno-photo-slider.is-style-arrows-corner .immuno-photos__arrow--prev { left: auto; right: calc(1rem + 50px); }
.wp-block-immuno-photo-slider.is-style-arrows-corner .immuno-photos__arrow--next { right: 1rem; }
.is-effect-coverflow.is-style-arrows-corner .immuno-photos__arrow { top: 0; }
/* Animated mosaic gallery */
.wp-block-gallery.immuno-mosaic.has-nested-images { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 230px; grid-auto-flow: dense; gap: 14px !important; }
.wp-block-gallery.immuno-mosaic.has-nested-images figure.wp-block-image { width: auto !important; margin: 0 !important; border-radius: 16px; overflow: hidden; position: relative; }
.wp-block-gallery.immuno-mosaic.has-nested-images figure.wp-block-image img { width: 100%; height: 100% !important; object-fit: cover; transition: transform .8s cubic-bezier(.2,.8,.2,1), filter .5s; }
.wp-block-gallery.immuno-mosaic figure.wp-block-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(31,24,70,.55)); opacity: 0; transition: opacity .5s; pointer-events: none; }
.wp-block-gallery.immuno-mosaic figure.wp-block-image:hover img { transform: scale(1.1) rotate(.6deg); }
.wp-block-gallery.immuno-mosaic figure.wp-block-image:hover::after { opacity: 1; }
.wp-block-gallery.immuno-mosaic figure.wp-block-image:nth-child(6n+1) { grid-column: span 2; grid-row: span 2; }
@media (max-width: 781px) { .wp-block-gallery.immuno-mosaic.has-nested-images { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; } .wp-block-gallery.immuno-mosaic figure.wp-block-image:nth-child(6n+1) { grid-column: span 2; grid-row: span 1; } }
/* Editor */
.immuno-photos__editor-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .6rem .8rem; margin-bottom: .75rem; background: #f4f3fa; border-radius: 8px; font: 600 13px/1.4 system-ui, sans-serif; color: #34286E; }
.immuno-photos__editor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.immuno-photos__editor-grid img { width: 100%; height: 160px; object-fit: cover; border-radius: 10px; }

/* ---------- Counter block ---------- */
.wp-block-immuno-counter { text-align: center; }
.immuno-counter__value { font-family: var(--wp--preset--font-family--heading); font-weight: 800; line-height: 1; font-size: clamp(2.6rem, 5vw, 3.75rem); color: var(--wp--preset--color--primary); letter-spacing: -0.02em; display: block; }
.immuno-counter__value .immuno-counter__affix { color: var(--wp--preset--color--secondary); }
.immuno-counter__bar { display: block; width: 36px; height: 3px; margin: .9rem auto .7rem; border-radius: 3px; background: var(--wp--preset--color--accent); }
.immuno-counter__label { margin: 0; font-weight: 600; color: var(--wp--preset--color--muted); text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; }
.has-primary-dark-background-color .immuno-counter__value,
.has-primary-background-color .immuno-counter__value,
.is-dark-section .immuno-counter__value { color: #fff; }
.has-primary-dark-background-color .immuno-counter__label,
.has-primary-background-color .immuno-counter__label,
.is-dark-section .immuno-counter__label { color: rgba(255,255,255,.78); }

/* ---------- Map block ---------- */
.wp-block-immuno-map { position: relative; overflow: hidden; border-radius: 18px; box-shadow: var(--wp--preset--shadow--card); background: var(--wp--preset--color--light); }
.wp-block-immuno-map iframe { display: block; width: 100%; border: 0; }
.wp-block-immuno-map.alignfull { border-radius: 0; }

/* ---------- Block styles ---------- */
.is-style-card { background: #fff; border-radius: 18px; box-shadow: var(--wp--preset--shadow--card); padding: clamp(1.5rem, 3vw, 2.25rem); transition: transform .3s ease, box-shadow .3s ease; height: 100%; }
.is-style-card:hover { transform: translateY(-6px); box-shadow: var(--wp--preset--shadow--lift); }
.wp-block-column.is-style-card { display: flex; flex-direction: column; }
.wp-block-column.is-style-card > .wp-block-buttons:last-child { margin-top: auto; padding-top: .75rem; }
.is-style-card-image-top { background: #fff; border-radius: 18px; box-shadow: var(--wp--preset--shadow--card); overflow: hidden; transition: transform .3s ease, box-shadow .3s ease; display: flex; flex-direction: column; }
.is-style-card-image-top:hover { transform: translateY(-6px); box-shadow: var(--wp--preset--shadow--lift); }
.is-style-card-image-top > .wp-block-image:first-child { margin: 0 !important; overflow: hidden; }
.is-style-card-image-top > .wp-block-image:first-child img { width: 100%; aspect-ratio: 3/2; object-fit: cover; transition: transform .6s ease; border-radius: 0; }
.is-style-card-image-top:hover > .wp-block-image:first-child img { transform: scale(1.06); }
.is-style-card-image-top > :not(.wp-block-image:first-child) { margin-left: clamp(1.25rem, 2.5vw, 1.75rem); margin-right: clamp(1.25rem, 2.5vw, 1.75rem); }
.is-style-card-image-top > :last-child { margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem); }
.is-style-card-image-top > .wp-block-buttons:last-child { margin-top: auto; }

.wp-block-heading.is-style-bar { padding-left: .9rem; border-left: 4px solid var(--wp--preset--color--primary); }
.wp-block-heading.is-style-eyebrow, p.is-style-eyebrow { font-family: var(--wp--preset--font-family--heading); text-transform: uppercase; letter-spacing: .16em; font-size: .78rem !important; font-weight: 700; color: var(--wp--preset--color--secondary); display: inline-flex; align-items: center; gap: .6rem; }
.wp-block-heading.is-style-eyebrow::before, p.is-style-eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--wp--preset--color--accent); display: inline-block; }

ul.is-style-checklist { list-style: none; padding-left: 0; }
ul.is-style-checklist li { position: relative; padding-left: 2.1rem; margin-bottom: .7rem; }
ul.is-style-checklist li::before {
	content: ""; position: absolute; left: 0; top: .2em; width: 1.35rem; height: 1.35rem; border-radius: 6px;
	background: var(--wp--preset--color--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F4C430' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/70% no-repeat;
}
ul.is-style-checklist.has-text-color li::before, .is-dark-section ul.is-style-checklist li::before { background-color: rgba(255,255,255,.14); }

.wp-block-image.is-style-rounded-lg img { border-radius: 18px; }
.wp-block-button.is-style-outline-light .wp-block-button__link { background: transparent; border: 2px solid rgba(255,255,255,.85); color: #fff; }
.wp-block-button.is-style-outline-light .wp-block-button__link:hover { background: #fff; color: var(--wp--preset--color--primary-dark); }
.wp-block-button.is-style-link-arrow .wp-block-button__link { background: transparent; color: var(--wp--preset--color--primary); padding: 0; border-radius: 0; }
.wp-block-button.is-style-link-arrow .wp-block-button__link::after { content: " →"; transition: margin .2s; }
.wp-block-button.is-style-link-arrow .wp-block-button__link:hover::after { margin-left: .3rem; }

/* Icon badge used at top of cards */
.immuno-icon { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; background: var(--wp--preset--color--light); margin-bottom: .25rem !important; }
.immuno-icon img { width: 30px; height: 30px; }

/* Decorative molecule background for sections */
.has-molecule-bg { position: relative; isolation: isolate; }
.has-molecule-bg::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; background: url(assets/img/pattern-molecules.svg) right center / 680px auto no-repeat; pointer-events: none; }

/* Reveal on scroll */
.immuno-reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.immuno-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .immuno-reveal { opacity: 1; transform: none; } * { scroll-behavior: auto !important; } }

/* ---------- Test menu (Quick Guide) ---------- */
.immuno-tests { --tm-radius: 16px; }
.immuno-tests__toolbar { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.immuno-tests__search { position: relative; flex: 1 1 320px; max-width: 480px; }
.immuno-tests__search input { width: 100%; padding: .85rem 1rem .85rem 2.75rem; border: 1px solid #dcd9ea; border-radius: 999px; font-size: 1rem; background: #fff; transition: border-color .2s, box-shadow .2s; }
.immuno-tests__search input:focus { outline: none; border-color: var(--wp--preset--color--secondary); box-shadow: 0 0 0 4px rgba(45,127,211,.15); }
.immuno-tests__search svg { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--wp--preset--color--muted); }
.immuno-tests__filters { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; font-size: .9rem; color: var(--wp--preset--color--muted); }
.immuno-tests__filters select { padding: .6rem 2rem .6rem .9rem; border: 1px solid #dcd9ea; border-radius: 999px; background: #fff; font-size: .9rem; }
.immuno-tests__table-wrap { overflow-x: auto; border-radius: var(--tm-radius); box-shadow: var(--wp--preset--shadow--card); background: #fff; }
.immuno-tests table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 760px; }
.immuno-tests thead th { position: sticky; top: 0; background: var(--wp--preset--color--primary); color: #fff; text-align: left; font-family: var(--wp--preset--font-family--heading); font-weight: 600; padding: .9rem 1rem; white-space: nowrap; cursor: pointer; user-select: none; }
.immuno-tests thead th button { all: unset; cursor: pointer; display: inline-flex; gap: .4rem; align-items: center; }
.immuno-tests thead th button:focus-visible { outline: 2px solid var(--wp--preset--color--accent); outline-offset: 3px; }
.immuno-tests thead th .sort-icon { opacity: .45; font-size: .75em; }
.immuno-tests thead th[aria-sort="ascending"] .sort-icon, .immuno-tests thead th[aria-sort="descending"] .sort-icon { opacity: 1; color: var(--wp--preset--color--accent); }
.immuno-tests tbody td { padding: .8rem 1rem; border-bottom: 1px solid #eeecf5; vertical-align: top; }
.immuno-tests tbody tr:nth-child(even) td { background: #faf9fd; }
.immuno-tests tbody tr:hover td { background: #eef4fc; }
.immuno-tests td.col-dept { font-weight: 700; color: var(--wp--preset--color--primary); white-space: nowrap; }
.immuno-tests td.col-name { font-weight: 600; color: var(--wp--preset--color--contrast); }
.immuno-tests td.col-code, .immuno-tests td.col-cpt { font-variant-numeric: tabular-nums; white-space: nowrap; }
.immuno-tests td.col-cpt { white-space: normal; min-width: 120px; }
.immuno-tests mark { background: #fff1b8; color: inherit; padding: 0 .1em; border-radius: 3px; }
.immuno-tests__footer { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; margin-top: 1rem; font-size: .9rem; color: var(--wp--preset--color--muted); }
.immuno-tests__pager { display: flex; gap: .3rem; flex-wrap: wrap; }
.immuno-tests__pager button { min-width: 38px; height: 38px; padding: 0 .6rem; border-radius: 10px; border: 1px solid #dcd9ea; background: #fff; cursor: pointer; font: inherit; color: var(--wp--preset--color--primary-dark); }
.immuno-tests__pager button:hover:not([disabled]) { border-color: var(--wp--preset--color--secondary); color: var(--wp--preset--color--secondary); }
.immuno-tests__pager button.is-current { background: var(--wp--preset--color--primary); color: #fff; border-color: transparent; }
.immuno-tests__pager button[disabled] { opacity: .4; cursor: default; }
.immuno-tests__empty { padding: 2.5rem 1rem; text-align: center; color: var(--wp--preset--color--muted); }
@media (max-width: 700px) {
	.immuno-tests table { min-width: 0; }
	.immuno-tests thead { display: none; }
	.immuno-tests tbody tr { display: block; padding: .9rem 1rem; border-bottom: 1px solid #eeecf5; }
	.immuno-tests tbody tr:nth-child(even) td, .immuno-tests tbody tr:hover td { background: transparent; }
	.immuno-tests tbody td { display: grid; grid-template-columns: 7.5rem 1fr; gap: .5rem; padding: .2rem 0; border: 0; }
	.immuno-tests tbody td::before { content: attr(data-label); font-weight: 600; color: var(--wp--preset--color--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
	.immuno-tests td.col-name { font-size: 1.05rem; }
}

/* ---------- Posts / news cards ---------- */
.immuno-news-card { background: #fff; border-radius: 18px; overflow: hidden; box-shadow: var(--wp--preset--shadow--card); height: 100%; display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.immuno-news-card:hover { transform: translateY(-6px); box-shadow: var(--wp--preset--shadow--lift); }
.immuno-news-card .wp-block-post-featured-image { margin: 0; }
.immuno-news-card .wp-block-post-featured-image img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.immuno-news-card .wp-block-post-featured-image:empty, .immuno-news-card .immuno-news-card__placeholder { aspect-ratio: 16/10; background: var(--wp--preset--gradient--brand) ; }
.immuno-news-card .wp-block-post-title a { text-decoration: none; color: var(--wp--preset--color--primary-dark); }
.immuno-news-card .wp-block-post-title a:hover { color: var(--wp--preset--color--secondary); }
.immuno-news-card .wp-block-post-date { color: var(--wp--preset--color--secondary); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }
.immuno-news-card .wp-block-read-more { font-weight: 600; text-decoration: none; margin-top: auto; }
.wp-block-query-pagination a, .wp-block-query-pagination .page-numbers { text-decoration: none; padding: .45rem .8rem; border-radius: 10px; }
.wp-block-query-pagination .page-numbers.current { background: var(--wp--preset--color--primary); color: #fff; }

/* ---------- Footer ---------- */
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: var(--wp--preset--color--accent); }
.site-footer .wp-block-heading { color: #fff; }
.site-footer .wp-block-latest-posts li { margin-bottom: .85rem; }
.site-footer .wp-block-latest-posts__post-date { color: rgba(255,255,255,.55); font-size: .78rem; }
.contact-list .ci-address { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E"); }
.contact-list .ci-phone { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E"); }
.contact-list .ci-fax { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 8H5a3 3 0 0 0-3 3v6h4v4h12v-4h4v-6a3 3 0 0 0-3-3zm-3 11H8v-5h8zm3-7a1 1 0 1 1 1-1 1 1 0 0 1-1 1zM18 3H6v4h12z'/%3E%3C/svg%3E"); }
.contact-list .ci-mail { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2zm0 4-8 5-8-5V6l8 5 8-5z'/%3E%3C/svg%3E"); }
.contact-list .ci-clock { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm4.2 14.2L11 13V7h1.5v5.2l4.5 2.7z'/%3E%3C/svg%3E"); }
.contact-list .ci-map { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.5 3l-.16.03L15 5.1 9 3 3.36 4.9a.5.5 0 0 0-.36.48V20.5a.5.5 0 0 0 .5.5l.16-.03L9 18.9l6 2.1 5.64-1.9a.5.5 0 0 0 .36-.48V3.5a.5.5 0 0 0-.5-.5zM15 19l-6-2.11V5l6 2.11z'/%3E%3C/svg%3E"); }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: .7rem; margin-bottom: .7rem; align-items: flex-start; }
.contact-list li::before { content: ""; flex: 0 0 18px; height: 18px; margin-top: .3em; -webkit-mask: var(--icon) center/contain no-repeat; mask: var(--icon) center/contain no-repeat; background: var(--wp--preset--color--secondary); }
.site-footer .contact-list li::before { background: var(--wp--preset--color--accent); }

.back-to-top { position: fixed; right: 1.25rem; bottom: 1.25rem; width: 46px; height: 46px; border-radius: 50%; background: var(--wp--preset--color--primary); color: #fff; border: 0; display: grid; place-items: center; cursor: pointer; box-shadow: var(--wp--preset--shadow--lift); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .3s, transform .3s, background .2s; z-index: 60; }
.back-to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.back-to-top:hover { background: var(--wp--preset--color--secondary); }

/* ---------- Contact form ---------- */
.immuno-form { display: grid; gap: 1rem; }
.immuno-form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .immuno-form .row-2 { grid-template-columns: 1fr; } }
.immuno-form label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .35rem; color: var(--wp--preset--color--primary-dark); }
.immuno-form input, .immuno-form textarea, .immuno-form select { width: 100%; padding: .8rem 1rem; border: 1px solid #dcd9ea; border-radius: 12px; font: inherit; background: #fff; }
.immuno-form input:focus, .immuno-form textarea:focus { outline: none; border-color: var(--wp--preset--color--secondary); box-shadow: 0 0 0 4px rgba(45,127,211,.15); }
.immuno-form .hp { position: absolute; left: -9999px; }
.immuno-form button { justify-self: start; border: 0; cursor: pointer; background: var(--wp--preset--color--primary); color: #fff; border-radius: 999px; padding: .85rem 1.9rem; font-family: var(--wp--preset--font-family--heading); font-weight: 600; }
.immuno-form button:hover { background: var(--wp--preset--color--secondary); }
.immuno-form__notice { padding: .9rem 1.1rem; border-radius: 12px; font-weight: 600; }
.immuno-form__notice.is-success { background: #e6f6ee; color: #146c43; }
.immuno-form__notice.is-error { background: #fdecec; color: #a12622; }

/* ---------- Banners ---------- */
/* Keep banner/slide text aligned with the page grid on wide screens. */
.wp-block-cover.alignfull > .wp-block-cover__inner-container,
.wp-block-immuno-slider .wp-block-cover > .wp-block-cover__inner-container { width: 100% !important; max-width: 1240px; margin-left: auto !important; margin-right: auto !important; padding-left: clamp(.5rem, 4vw, 2rem); padding-right: clamp(.5rem, 4vw, 2rem); box-sizing: border-box; }
.wp-block-immuno-slider .wp-block-cover > .wp-block-cover__inner-container { padding-left: clamp(1rem, 7vw, 6rem); padding-right: clamp(1rem, 7vw, 6rem); max-width: 1400px; }
.wp-block-cover.is-page-banner { background: #1F1846 url(assets/img/slide-1.svg) center / cover no-repeat; }
.wp-block-cover.is-page-banner .wp-block-cover__inner-container { padding-bottom: 2.5rem; }
.wp-block-cover.is-page-banner .wp-block-post-title { margin-top: .4rem; }
.wp-block-cover .is-style-eyebrow { margin-bottom: 0; }
.is-dark-section a:not(.wp-block-button__link) { color: var(--wp--preset--color--accent); }
.is-dark-section p { color: inherit; }

/* ---------- Misc ---------- */
.wp-block-cover.is-page-banner .wp-block-post-title, .wp-block-cover.is-page-banner h1 { color: #fff; }
.wp-block-cover .wp-block-cover__inner-container .wp-block-heading { color: inherit; }
.has-base-color .wp-block-heading, .is-dark-section .wp-block-heading { color: #fff; }
.wp-block-search__input { border-radius: 999px; }
.search-results-list .wp-block-post { padding: 1.5rem 0; border-bottom: 1px solid #eeecf5; }
.wp-block-post-content > .alignfull:first-child { margin-top: 0; }
.site-footer ul.wp-block-list:not(.contact-list) { list-style: none; padding-left: 0; }
.site-footer ul.wp-block-list:not(.contact-list) li { margin-bottom: .45rem; }
