/* Hero & Slider */
.hero {
    --hero-panel-height: 520px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow-x: hidden;
}

body[data-theme="dark"] .hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #312e81 100%);
}

.hero-slider {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0;
    height: var(--hero-panel-height);
    overflow: hidden;
}

.hero-slider::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.55) 100%);
    pointer-events: none;
    z-index: 1;
}

.hero-slider-track {
    display: flex;
    height: 100%;
    transition: transform 0.8s ease;
    position: relative;
    z-index: 2;
}

.hero-slide-group {
    min-width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 1fr;
    gap: 0;
    padding: 0;
    opacity: 0.35;
    transition: opacity 0.6s ease;
}

.hero-slide-group.is-active {
    opacity: 1;
}

.hero-slide {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    box-shadow: none;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(40, 61, 107, 0.35), rgba(19, 25, 45, 0.3));
    mix-blend-mode: multiply;
    opacity: 0.75;
    transition: opacity 0.5s ease;
    z-index: 1;
    pointer-events: none;
}

.hero-slide:hover::before {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    display: flex;
    object-fit: cover;
    transform: scale(1);
    transition: transform 0.6s ease;
    vertical-align: bottom;
}

.hero-slide:hover img {
    transform: scale(1.08);
}

.hero-slide-info {
    position: absolute;
    inset: auto 18px 18px 18px;
    background: rgba(15, 23, 42, 0.6);
    color: #f8fafc;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    z-index: 3;
}

.hero-slide-info span {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.8;
}

.hero-slide-info strong {
    font-size: 1.05rem;
    font-weight: 700;
}

.hero-slider-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    z-index: 4;
}

.hero-slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.6);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.hero-slider-dot.is-active {
    background-color: #ffffff;
    transform: scale(1.2);
}

.hero-slider-dot:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.hero-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(15, 23, 42, 0.75);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.3s ease;
    backdrop-filter: blur(4px);
    z-index: 3;
}

.hero-slider-arrow:hover {
    transform: translateY(-50%) scale(1.05);
    background: rgba(37, 99, 235, 0.9);
}

.hero-slider-arrow:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 4px;
}

.hero-slider-arrow--prev {
    left: 1rem;
}

.hero-slider-arrow--next {
    right: 1rem;
}

.hero-slider-arrow span {
    font-size: 1.5rem;
    line-height: 1;
    pointer-events: none;
}

.hero-content {
    min-height: var(--hero-panel-height);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.45rem;
    padding: 0 1rem;
    text-align: center;
    margin-top: 0.5rem;
}

.hero-content h1 {
    font-size: 1.85rem;
    margin-bottom: 0.15rem;
    font-weight: 700;
    max-width: 640px;
}

.hero-lead {
    font-size: 1.05rem;
    max-width: 680px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

.hero-hint {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
}

.hero-hint code {
    padding: 0.1rem 0.35rem;
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.35);
    color: #ffffff;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.hero-buttons .btn {
    justify-content: center;
    min-width: 180px;
    box-shadow: 0 12px 25px rgba(15, 23, 42, 0.18);
}

.hero-buttons .btn:hover {
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.25);
}

@media (max-width: 1200px) {
    .hero-slide-group {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1200px) {
    .hero {
        --hero-panel-height: 460px;
    }
}

@media (max-width: 900px) {
    .hero {
        --hero-panel-height: 400px;
    }

    .hero-slide-group {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .hero {
        --hero-panel-height: 340px;
    }

    .hero-slide-group {
        display: block;
    }

    .hero-slide {
        height: 280px;
        margin-bottom: 0;
    }
}
