/**
 * HRB Slider Home
 *
 * @package HRB_Slider_Home
 * @version 2.1.0
 */

.hrb-slider-home {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.hrb-slider-home-empty {
    padding: 40px;
    text-align: center;
    color: #9aa1b3;
}

.hrb-slider-home-swiper,
.hrb-slider-home-swiper .swiper-wrapper,
.hrb-slider-home-swiper .swiper-slide {
    width: 100%;
    height: 100%;
}

/* ============================================
   Slide background (responsive via CSS vars)
   ============================================ */

.hrb-slide {
    position: relative;
    width: 100%;
    height: 100%;
    background-image: var(--hrb-bg-desktop);
    background-size: cover;
    background-repeat: no-repeat;
    isolation: isolate;
}

.hrb-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-color: transparent;
}

@media (max-width: 1024px) {
    .hrb-slide {
        background-image: var(--hrb-bg-tablet);
    }
}

@media (max-width: 767px) {
    .hrb-slide {
        background-image: var(--hrb-bg-mobile);
    }
}

/* ============================================
   Content layout
   ============================================ */

.hrb-slide-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 40px 60px;
    box-sizing: border-box;
}

.hrb-slide-content {
    position: relative;
    z-index: 2;
    max-width: 480px;
    text-align: right;
}

.hrb-slide-title {
    margin: 0 0 8px 0;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.3;
    color: #1a1a1a;
}

.hrb-slide-subtitle {
    margin: 0 0 24px 0;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.5;
    color: #1a1a1a;
}

/* ============================================
   Buttons
   ============================================ */

.hrb-slide-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.hrb-slide-button {
    position: relative;
    z-index: 3; /* Sits above the per-slide link overlay (z-index: 1) */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 2px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease;
    cursor: pointer;
}

.hrb-slide-button.is-outline {
    background-color: #ffffff;
    color: #1a1a1a;
    border: 1.5px solid #1a1a1a;
}

.hrb-slide-button.is-outline:hover {
    background-color: #1a1a1a;
    color: #ffffff;
}

.hrb-slide-button.is-filled {
    background-color: #1a1a1a;
    color: #ffffff;
    border: 1.5px solid transparent;
}

.hrb-slide-button.is-filled:hover {
    background-color: #3a3a3a;
}

.hrb-slide-button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    font-size: 16px;
    flex-shrink: 0;
}

.hrb-slide-button-icon.icon-library i,
.hrb-slide-button-icon.icon-library svg {
    width: 100%;
    height: 100%;
    font-size: inherit;
}

.hrb-slide-button-icon.icon-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* ============================================
   Whole-slide clickable overlay
   Sits ABOVE the background but BELOW the buttons (z-index 1 vs 3).
   ============================================ */

.hrb-slide.has-slide-link {
    cursor: pointer;
}

.hrb-slide-link-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
}

/* ============================================
   Navigation Arrows
   ============================================ */

.hrb-slider-home .swiper-button-next,
.hrb-slider-home .swiper-button-prev {
    width: 44px;
    height: 44px;
    background-color: rgba(0, 0, 0, 0.25);
    border-radius: 50%;
    color: #ffffff;
    transition: all 0.3s ease;
}

.hrb-slider-home .swiper-button-next:hover,
.hrb-slider-home .swiper-button-prev:hover {
    background-color: rgba(0, 0, 0, 0.45);
}

.hrb-slider-home .swiper-button-next:after,
.hrb-slider-home .swiper-button-prev:after {
    font-size: 16px;
    font-weight: 700;
}

@media (max-width: 600px) {
    .hrb-slider-home .swiper-button-next,
    .hrb-slider-home .swiper-button-prev {
        display: none;
    }
}

/* ============================================
   Pagination — bar-style bullets (matches the reference screenshot:
   thin gray horizontal bars, with the active one wider and colored)
   ============================================ */

.hrb-slider-home .swiper-pagination {
    bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hrb-slider-home .swiper-pagination-bullet {
    width: 22px;
    height: 4px;
    border-radius: 2px;
    background-color: #c9c9c9;
    opacity: 1;
    margin: 0 6px;
    transition: all 0.3s ease;
}

.hrb-slider-home .swiper-pagination-bullet-active {
    width: 34px;
    background-color: #7c3aed;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
    .hrb-slider-home {
        height: 500px;
    }

    .hrb-slide-inner {
        padding: 32px 40px;
    }

    .hrb-slide-title {
        font-size: 28px;
    }

    .hrb-slide-subtitle {
        font-size: 19px;
    }
}

@media (max-width: 767px) {
    .hrb-slider-home {
        height: 420px;
    }

    .hrb-slide-inner {
        padding: 24px 24px;
        justify-content: center;
    }

    .hrb-slide-content {
        max-width: 100%;
        text-align: center;
    }

    .hrb-slide-title {
        font-size: 22px;
    }

    .hrb-slide-subtitle {
        font-size: 16px;
    }

    .hrb-slide-buttons {
        justify-content: center;
    }
}

/* ============================================
   Accessibility
   ============================================ */

.hrb-slide-button:focus-visible,
.hrb-slide-link-overlay:focus-visible {
    outline: 2px solid #1a1a1a;
    outline-offset: 2px;
}

/* ============================================
   RTL Support
   ============================================ */

.rtl .hrb-slider-home .swiper-button-next {
    left: 10px;
    right: auto;
}

.rtl .hrb-slider-home .swiper-button-prev {
    right: 10px;
    left: auto;
}

.rtl .hrb-slider-home .swiper-button-next:after {
    content: 'prev';
}

.rtl .hrb-slider-home .swiper-button-prev:after {
    content: 'next';
}
