/* Shared "Explore Visa Categories" coverflow slider - used on the homepage
   and every landing page via web/functions/category-slider-lib.php
   (wva_category_coverflow). Keep this file the single source of truth so
   the slider never drifts between pages again. Moved verbatim from the
   homepage's original inline <style> block. */

.wva-catflow-host { position: relative; overflow: hidden; }
.wva-catflow-section { position: relative; overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #eef3f9 38%, #e3ebf5 100%); }
.wva-catflow-section > .container { position: relative; z-index: 1; }
.wva-catflow { position: relative; padding: 6px 0 0; }
/* Ambient: blurred, darkened copy of the active image (desktop only). */
.wva-catflow-amb { position: absolute; left: 50%; top: 50%; width: min(1400px, 120vw); height: 125%;
    transform: translate3d(-50%, -50%, 0); pointer-events: none; z-index: 0;
    -webkit-mask-image: radial-gradient(closest-side, #000 45%, transparent 100%);
    mask-image: radial-gradient(closest-side, #000 45%, transparent 100%); }
.wva-catflow-amb span { position: absolute; inset: 0; background-size: cover; background-position: center;
    filter: blur(48px) brightness(.55) saturate(1.15); transform: scale(1.15) translateZ(0);
    opacity: 0; transition: opacity 1.1s ease; will-change: opacity; }
.wva-catflow-amb span.is-on { opacity: .55; }
.wva-catflow-clip { position: relative; z-index: 1; overflow: hidden; margin: 0 -12px; padding: 0 12px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%); }
.wva-catflow .swiper { overflow: visible; padding: 26px 0 18px; }
.wva-catflow .swiper-wrapper,
.wva-catflow .swiper-slide { transition-timing-function: cubic-bezier(.22, .61, .36, 1); }
.wva-catflow .swiper-slide { width: 380px; transition-property: transform, opacity; will-change: transform; }
.wva-catflow .swiper-slide:not(.swiper-slide-active) .wva-cat-btn { display: none; }
.wva-cat-tilt { transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .35s ease-out;
    transform-style: preserve-3d; will-change: transform; border-radius: 24px; }
.wva-cat-card { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden;
    background: #062946; box-shadow: 0 22px 46px rgba(6, 41, 70, .26); color: #fff; transform: translateZ(0); }
.wva-cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    transform: scale(1) translateZ(0); transition: transform .9s ease; will-change: transform; }
/* Ken Burns: slow zoom while active. */
.wva-catflow .swiper-slide-active .wva-cat-card img { transform: scale(1.09) translateZ(0); transition: transform 7s linear; }
.wva-cat-card::after { content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(6, 41, 70, 0) 30%, rgba(6, 41, 70, .7) 58%, rgba(4, 22, 40, .97) 100%); }
/* Thin orange glow border on the active card (static shadow, only opacity animates). */
.wva-cat-glow { position: absolute; inset: 0; z-index: 3; border-radius: 24px; pointer-events: none;
    box-shadow: inset 0 0 0 2px rgba(248, 148, 31, .95), 0 0 26px rgba(248, 148, 31, .45);
    opacity: 0; transition: opacity .6s ease; }
.wva-catflow .swiper-slide-active .wva-cat-glow { opacity: 1; }
.wva-cat-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 24px 24px 26px; text-align: left; }
.wva-cat-count { display: inline-block; margin-bottom: 10px; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700;
    letter-spacing: .02em; color: #062946; background: #f8941f; }
.wva-cat-name { margin: 0 0 8px; font-size: 24px; line-height: 1.22; font-weight: 700; color: #fff; }
.wva-cat-desc { margin: 0 0 18px; font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, .88); }
.wva-cat-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 10px; font-size: 15px; font-weight: 700;
    color: #fff; background: #f8941f; text-decoration: none; transition: background-color .2s ease, transform .2s ease; }
.wva-cat-btn:hover, .wva-cat-btn:focus { color: #fff; background: #e07d0a; transform: translateY(-1px); }
/* Icon card (category without an image yet) */
.wva-cat-card.is-icon { background: #fff; color: #062946; border: 1px solid #e6ebf1; }
.wva-cat-card.is-icon::after { display: none; }
.wva-cat-card.is-icon .wva-cat-accent { position: absolute; top: 0; left: 0; right: 0; height: 6px; }
.wva-cat-card.is-icon .wva-cat-icon { position: absolute; top: 20%; left: 50%; transform: translateX(-50%); width: 104px; height: 104px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 50px; }
.wva-cat-card.is-icon .wva-cat-name { color: #062946; }
.wva-cat-card.is-icon .wva-cat-desc { color: #4b5563; }
/* Glass arrows */
.wva-catflow-nav { position: absolute; top: calc(50% - 46px); z-index: 5; width: 52px; height: 52px; border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .28); color: #062946;
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 8px 24px rgba(6, 41, 70, .18);
    display: flex; align-items: center; justify-content: center; font-size: 22px; cursor: pointer;
    transition: background-color .2s ease, color .2s ease, transform .2s ease; }
.wva-catflow-nav:hover, .wva-catflow-nav:focus-visible { background: rgba(6, 41, 70, .85); color: #fff; transform: scale(1.06); }
.wva-catflow-prev { left: 6px; }
.wva-catflow-next { right: 6px; }
/* Progress bar + counter */
.wva-catflow-meta { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 18px; }
.wva-catflow-counter { font-size: 14px; font-weight: 700; letter-spacing: .08em; color: #062946; font-variant-numeric: tabular-nums; min-width: 64px; text-align: right; }
.wva-catflow-counter span { color: #8a97a8; font-weight: 600; }
.wva-catflow-bar { position: relative; width: 220px; height: 3px; border-radius: 3px; background: rgba(6, 41, 70, .14); overflow: hidden; }
.wva-catflow-bar i { position: absolute; inset: 0; background: linear-gradient(90deg, #f8941f, #ffb357); transform-origin: left center;
    transform: scaleX(0); will-change: transform; }
@media (max-width: 991px) { .wva-catflow .swiper-slide { width: 320px; } .wva-cat-name { font-size: 22px; } }
@media (max-width: 767px) { .wva-catflow-amb { display: none; } }
@media (max-width: 575px) {
    .wva-catflow .swiper { padding: 18px 0 12px; }
    .wva-catflow .swiper-slide { width: 78vw; }
    .wva-catflow-nav { display: none; }
    .wva-cat-name { font-size: 20px; }
    .wva-cat-desc { font-size: 14px; }
    .wva-cat-body { padding: 20px 20px 22px; }
    .wva-catflow-bar { width: 160px; }
}
@media (prefers-reduced-motion: reduce) {
    .wva-catflow .swiper-slide-active .wva-cat-card img { transform: none; transition: none; }
    .wva-cat-tilt { transform: none !important; }
}
