/* Homepage hero slider — proportional banner images */
.hero-slider {
    width: 100%;
    background: linear-gradient(180deg, #eef3f8 0%, #f8fafc 100%);
    border-bottom: 1px solid #e3eef5;
}

.hero-slider-viewport {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.hero-slider-track {
    position: relative;
    width: 100%;
    aspect-ratio: 1920 / 640;
    max-height: min(42vw, 580px);
    min-height: 260px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.65s ease, visibility 0.65s ease;
    background: #eef3f8;
    padding: 12px 0;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.hero-slide img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center center;
}

.hero-slide-caption {
    position: absolute;
    right: 6%;
    top: 50%;
    transform: translateY(-50%);
    max-width: 36%;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 12px;
    padding: 22px 24px;
    box-shadow: 0 8px 28px rgba(10, 61, 107, 0.12);
    z-index: 2;
}

.hero-slide-caption h2 {
    color: #0a3d6b;
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.25;
}

.hero-slide-caption .hero-slide-sub {
    color: #0a6b5a;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px;
}

.hero-slide-caption .hero-slide-desc {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.hero-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.92);
    color: #64748b;
    box-shadow: 0 4px 16px rgba(10, 61, 107, 0.15);
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
}

.hero-slider-arrow:hover {
    color: #0a3d6b;
    background: #fff;
}

.hero-slider-arrow.prev { left: 16px; }
.hero-slider-arrow.next { right: 16px; }

.hero-slider-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 14px;
    z-index: 3;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.hero-slider-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: rgba(10, 61, 107, 0.25);
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.hero-slider-dots button.is-active {
    background: #f4a020;
    transform: scale(1.15);
}

@media (max-width: 991px) {
    .hero-slider-track {
        aspect-ratio: 16 / 9;
        max-height: 420px;
        min-height: 220px;
    }

    .hero-slide-caption {
        display: none;
    }
}

@media (max-width: 575px) {
    .hero-slider-track {
        min-height: 180px;
        max-height: 280px;
    }

    .hero-slider-arrow {
        width: 36px;
        height: 36px;
    }

    .hero-slider-arrow.prev { left: 8px; }
    .hero-slider-arrow.next { right: 8px; }
}
