.animate-shows-up {
    animation: 1.5s shows-up;
}

@keyframes shows-up {
    0%   {
        transform: translateY(100px);
        opacity: 0;
    }
    80%   {
        opacity: 1;
    }
    100%   {
        transform: translateY(0px);
    }
}
/* Home video: keep 16:9 instead of a full-viewport box that left large empty bands on phones. */
.home-video {
    aspect-ratio: 16 / 9;
    width: 100%;
    max-height: 100vh;
    margin-left: auto;
    margin-right: auto;
}
.home-video iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Justified text opens wide gaps between words on narrow screens. */
@media (max-width: 639px) {
    .uk-text-justify,
    .privacy-policy p,
    .privacy-policy li {
        text-align: left !important;
    }
}

/* Home statistics: 4 items laid out 2x2 below the m breakpoint (the theme rules assume 5). */
@media (max-width: 959px) {
    .monee-custom-card .home-stats > div:nth-child(n) {
        border-right: 0;
        border-bottom: 0;
    }
    .monee-custom-card .home-stats > div:nth-child(-n+2) {
        border-bottom: 2px solid #7246a0;
    }
    .monee-custom-card .home-stats > div:nth-child(odd) {
        border-right: 2px solid #7246a0;
    }
}

/* Proof-of-work captcha status (public/js/pow-captcha.js). */
.pow-captcha-status { margin: 6px 0 4px; font-size: 13px; color: #555; }
.pow-captcha-status.is-working { color: #55218d; }
.pow-captcha-status.is-done { color: #1e7e34; font-weight: 600; }
.pow-captcha-status.is-error { color: #c62828; }

/* ===== Homepage hero carousel (resources/views/front/main/home/index.blade.php, public/js/hero-carousel.js) ===== */
.hero-carousel {
    --hero-purple: #55218d;
    --hero-purple-dark: #2b1050;
    --hero-magenta: #f30078;
    --hero-height: clamp(420px, 68vh, 600px);
    position: relative;
    margin: 12px clamp(8px, 1.6vw, 24px) 0;
    border-radius: 24px;
    overflow: hidden;
    background: var(--hero-purple-dark);
    box-shadow: 0 18px 40px -24px rgba(43, 16, 80, 0.55);
    isolation: isolate;
}
.hero-carousel__track {
    position: relative;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    touch-action: pan-x pan-y;
}
.hero-carousel__track::-webkit-scrollbar { display: none; }
/* Announcements for screen readers only. */
.hero-carousel__status {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}
.hero-carousel__track:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }
@media (prefers-reduced-motion: no-preference) {
    .hero-carousel__track { scroll-behavior: smooth; }
}
.hero-slide {
    position: relative;
    flex: 0 0 100%;
    scroll-snap-align: center;
    height: var(--hero-height);
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    color: #fff;
}
/* Text panel: brand purple with a soft magenta glow. */
.hero-slide__body {
    grid-column: 1;
    grid-row: 1;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    padding: 56px clamp(28px, 4vw, 72px) 110px;
    background:
        radial-gradient(120% 90% at 0% 100%, rgba(243, 0, 120, 0.28), transparent 55%),
        linear-gradient(160deg, var(--hero-purple) 0%, var(--hero-purple-dark) 100%);
}
.hero-slide__media {
    grid-column: 2;
    grid-row: 1;
    position: relative;
    overflow: hidden;
}
.hero-slide__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hero-slide__label {
    align-self: flex-start;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--hero-magenta);
    font: 600 12px/1.2 'Open Sans', sans-serif;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.hero-slide__title {
    margin: 0;
    color: #fff;
    font: 700 clamp(1.6rem, 2.5vw, 2.6rem)/1.2 'Work Sans', sans-serif;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-wrap: balance;
}
.hero-slide__date {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
}
.hero-slide__cta {
    align-self: flex-start;
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 999px;
    background: #fff;
    color: var(--hero-purple) !important;
    font-weight: 600;
    text-decoration: none !important;
    transition: background-color .2s, color .2s, transform .2s;
}
.hero-slide__cta:hover,
.hero-slide__cta:focus-visible {
    background: var(--hero-magenta);
    color: #fff !important;
}
.hero-slide__cta:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
    .hero-slide__cta:hover { transform: translateX(3px); }
}

/* Controls sit over the text panel's bottom edge; the track stays scrollable between them. */
.hero-carousel__controls,
.hero-carousel__footer {
    position: absolute;
    z-index: 2;
    bottom: 32px;
    display: none;
    align-items: center;
    gap: 10px;
    pointer-events: none;
}
.hero-carousel.is-enhanced .hero-carousel__controls,
.hero-carousel.is-enhanced .hero-carousel__footer { display: flex; }
.hero-carousel.is-single .hero-carousel__controls,
.hero-carousel.is-single .hero-carousel__footer { display: none; }
.hero-carousel__controls { left: clamp(28px, 4vw, 72px); }
.hero-carousel__footer { left: calc(clamp(28px, 4vw, 72px) + 112px); }
.hero-carousel__controls > *,
.hero-carousel__footer > * { pointer-events: auto; }
.hero-carousel__btn {
    width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border: 1.5px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
    touch-action: manipulation;
    transition: background-color .2s, border-color .2s;
}
.hero-carousel__btn:hover { background: rgba(255, 255, 255, 0.2); border-color: #fff; }
.hero-carousel__btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.hero-carousel__counter {
    color: rgba(255, 255, 255, 0.75);
    font: 500 14px/1 'Work Sans', sans-serif;
    letter-spacing: 0.04em;
    white-space: nowrap;
}
.hero-carousel__counter strong { color: #fff; font-weight: 700; }
.hero-carousel__markers { display: flex; gap: 6px; }
/* 24px target, small visible bar; the active one is longer and solid, not only a different colour. */
.hero-carousel__marker {
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    position: relative;
    touch-action: manipulation;
    transition: width .25s;
}
.hero-carousel__marker::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 4px;
    margin-top: -2px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.45);
}
.hero-carousel__marker[aria-current="true"] { width: 40px; }
.hero-carousel__marker[aria-current="true"]::before { background: #fff; height: 6px; margin-top: -3px; }
.hero-carousel__marker:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 4px; }

/* Tablet and phone: photo on top, text below. */
@media (max-width: 959px) {
    .hero-carousel { border-radius: 18px; }
    .hero-slide {
        height: auto;
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }
    .hero-slide__media { grid-column: 1; grid-row: 1; aspect-ratio: 16 / 9; }

    .hero-slide__body { grid-column: 1; grid-row: 2; padding: 22px 22px 92px; gap: 10px; }
    .hero-slide__title { font-size: clamp(1.25rem, 5vw, 1.6rem); -webkit-line-clamp: 3; }
    .hero-carousel__controls { left: 22px; bottom: 24px; }
    .hero-carousel__footer { left: auto; right: 22px; bottom: 34px; }
    .hero-carousel__counter { display: none; }
    .hero-carousel__btn { width: 40px; height: 40px; }
}
.hero-slide__placeholder {
    height: 100%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #f6f1fb, #ece3f6);
}
.hero-slide__placeholder img { width: min(40%, 220px); height: auto; object-fit: contain; opacity: .9; }
