.hero-section {
    max-width: 1440px;
    margin: 1rem auto 0;
    padding: 0 1rem;
    position: relative;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    height: 220px;
    overflow: hidden;
    border-radius: var(--radius-xl);
    box-shadow: 0 12px 34px rgba(35, 18, 66, 0.12);
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.2), transparent 60%);
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-content {
    max-width: 480px;
    color: var(--white);
    z-index: 2;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.hero-content h1 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.4rem;
    background: linear-gradient(105deg, #ffffff 0%, #e4fbff 24%, #9fe5ee 50%, #e4fbff 76%, #ffffff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    -webkit-text-stroke: 0.45px rgba(14, 116, 144, 0.38);
    text-shadow: 0 1px 6px rgba(8, 91, 110, 0.24);
    letter-spacing: -0.01em;
}

.hero-content p {
    font-size: 0.82rem;
    opacity: 0.92;
    margin-bottom: 0.875rem;
    line-height: 1.5;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 0.6rem;
}

.hero-buttons .btn {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
}

.hero-buttons .btn-primary {
    background: var(--white);
    color: var(--gray-900);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.hero-buttons .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.hero-image {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.hero-image img {
    max-height: 180px;
    border-radius: var(--radius-lg);
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.35);
    object-fit: cover;
}

.hero-controls {
    position: absolute;
    bottom: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 10;
}

.hero-prev,
.hero-next {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    color: var(--white);
    font-size: 0.75rem;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.hero-prev:hover,
.hero-next:hover {
    background: var(--white);
    color: var(--gray-900);
}

.hero-dots {
    display: flex;
    gap: 0.4rem;
}

.hero-dot {
    width: 6px;
    height: 6px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.hero-dot:hover {
    background: rgba(255, 255, 255, 0.65);
}

.hero-dot.active {
    width: 20px;
    background: var(--white);
}

@media (max-width: 768px) {
    /* Keep the hero close to the mobile search row. The nav/search wrapper
       already contributes to document flow, so a large extra margin creates
       an unnecessary blank band above the slider. */
    .hero-section {
        margin-top: 0.75rem;
        padding: 0 0.75rem;
    }

    .hero-slider {
        height: 180px;
    }

    .hero-slide {
        padding: 1.25rem 1rem;
    }

    .hero-content h1 {
        font-size: 1.1rem;
    }

    .hero-content p {
        font-size: 0.75rem;
        margin-bottom: 0.625rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .hero-tag {
        font-size: 0.62rem;
        padding: 0.2rem 0.5rem;
        margin-bottom: 0.3rem;
    }

    .hero-buttons .btn {
        padding: 0.35rem 0.75rem;
        font-size: 0.72rem;
    }

    .hero-image img {
        max-height: 140px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        margin-top: 0.625rem;
        padding: 0 0.625rem;
    }

    .hero-slider {
        height: 160px;
    }

    .hero-slide {
        padding: 1rem 0.875rem;
    }

    .hero-content h1 {
        font-size: 1rem;
    }

    .hero-image {
        right: 3%;
    }

    .hero-image img {
        max-height: 120px;
    }
}
