/* Hero slides: shared by the public carousel and the admin live preview. */

.hero-slide {
    position: relative;
    display: flex;
    align-items: center;
    min-height: clamp(22rem, 62vh, 40rem);
    overflow: hidden;
    color: #fff;
    /* Shown when a slide has no image (or while it loads): navy with a cyan and green glow. */
    background:
        radial-gradient(55rem 32rem at 100% 0%, color-mix(in srgb, var(--brand-secondary, #00c8f5) 55%, transparent), transparent 62%),
        radial-gradient(40rem 26rem at 0% 100%, rgba(139, 197, 65, .35), transparent 60%),
        linear-gradient(135deg, var(--brand-primary, #2a2068) 0%, var(--brand-dark, #1d1650) 100%);
}

.hero-slide-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: #000;
    opacity: var(--overlay, .4);
}

.hero-slide-content {
    position: relative;
    z-index: 1;
    padding-block: 3rem;
}

.hero-slide-content > * {
    max-width: 42rem;
}

.hero-align-center .hero-slide-content { text-align: center; }
.hero-align-center .hero-slide-content > * { margin-inline: auto; }
.hero-align-right .hero-slide-content { text-align: right; }
.hero-align-right .hero-slide-content > * { margin-left: auto; }

.hero-slide-title {
    font-size: clamp(1.9rem, 4.5vw, 3.4rem);
    font-weight: 700;
    line-height: 1.15;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}

.hero-slide-subtitle {
    margin-top: .75rem;
    font-size: clamp(1rem, 1.8vw, 1.3rem);
    text-shadow: 0 1px 8px rgba(0, 0, 0, .35);
}

.hero-slide .btn {
    margin-top: 1.5rem;
}

/* Admin preview renders at a smaller, fixed size. */
.hero-preview .hero-slide {
    min-height: 16rem;
    border-radius: .5rem;
}

.hero-preview .hero-slide-title { font-size: 1.75rem; }
.hero-preview .hero-slide-subtitle { font-size: 1rem; }
