/**
 * About Page Styles
 * 
 * Features: Hero Banner Slider (Splide.js)
 * 
 * @package linhanhclinic
 */

/* ─── Hero Banner Container ────────────────────────────────── */
.hero-banner {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    height: auto; /* Allow height to be determined by image or per-device settings */
    min-height: 400px;
    background-color: #000;
    overflow: hidden;
}

@media (min-width: 992px) {
    .hero-slide {
        height: auto;
        aspect-ratio: 192/80; /* Match typical 1920x800 banner ratio */
        min-height: 500px;
    }
}

@media (max-width: 991px) {
    .hero-banner {
        width: 100%;
        left: auto;
        right: auto;
        margin-left: 0;
        margin-right: 0;
    }
    .hero-slide {
        height: auto;
        aspect-ratio: 1/1.2; /* Mobile banner ratio */
    }
}

/* ─── Splide Slider ─────────────────────────────────────────── */
.splide,
.splide__track,
.splide__list,
.hero-slide {
    height: 100%;
}

.hero-slide {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ─── Buttons ─────────────────────────────────────────────────── */
/* Unused since content was removed */
.btn {
    display: inline-block;
    padding: 14px 34px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn--primary {
    background-color: var(--color-primary, #C8956A);
    color: #fff;
    border: 2px solid var(--color-primary, #C8956A);
}

.btn--primary:hover {
    background-color: #fff;
    color: var(--color-primary, #C8956A);
}

.btn--outline {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn--outline:hover {
    background-color: #fff;
    color: #333;
}

/* ─── Splide Navigation Adjustments ───────────────────────────── */
.splide__arrows {
    display: flex;
}

.splide__arrow {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 15;
}

.splide__arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
    border-color: #fff;
}

.splide__arrow--prev { left: 20px; }
.splide__arrow--next { right: 20px; }

@media (max-width: 768px) {
    .splide__arrow {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    .splide__arrow--prev { left: 10px; }
    .splide__arrow--next { right: 10px; }
}

.splide__pagination {
    bottom: 30px;
    z-index: 15;
}

.splide__pagination__page {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.4);
    margin: 0 6px;
    transition: all 0.3s ease;
    border-radius: 50%;
    border: none;
    padding: 0;
}

.splide__pagination__page.is-active {
    background: #fff;
    width: 30px;
    border-radius: 6px;
    transform: scale(1);
}
