/* Hero Banner Slider Styles */
.hbs-wrapper {
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* Slider Container */
.hbs-slider-container {
    position: relative;
    width: 100%;
    height: 600px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 0;
    box-shadow: none;
}

/* Swiper Container */
.hbs-slider-container .swiper-container {
    width: 100%;
    height: 100%;
}

.hbs-slider-container .swiper-wrapper {
    width: 100%;
    height: 100%;
}

/* Slide */
.hbs-slide {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 0;
}

/* Background */
.hbs-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.8s ease;
}

.hbs-slide.swiper-slide-active .hbs-slide-bg {
    transform: scale(1.05);
}

/* Video Background */
.hbs-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.hbs-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
    z-index: 1;
}

.hbs-youtube-video,
.hbs-vimeo-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Overlay */
.hbs-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

/* Content Container */
.hbs-slide-content {
    position: relative;
    z-index: 3;
    color: #ffffff;
    padding: 40px;
    margin: 0 auto;
    text-align: center;
}

/* Content Alignment */
.hbs-content-align-left {
    text-align: left;
    margin-left: 0;
    margin-right: auto;
}

.hbs-content-align-center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.hbs-content-align-right {
    text-align: right;
    margin-left: auto;
    margin-right: 0;
}

/* Subtitle */
.hbs-slide-subtitle {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 15px 0;
    padding: 0;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(20px);
}

/* Title */
.hbs-slide-title {
    color: #ffffff;
    font-size: 60px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 20px 0;
    padding: 0;
    opacity: 0;
    transform: translateY(20px);
}

/* Description */
.hbs-slide-description {
    color: #f0f0f0;
    font-size: 18px;
    line-height: 1.6;
    margin: 0 0 30px 0;
    padding: 0;
    opacity: 0;
    transform: translateY(20px);
}

/* Buttons Container */
.hbs-button-wrapper {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    opacity: 0;
    transform: translateY(20px);
}

.hbs-content-align-left .hbs-button-wrapper {
    justify-content: flex-start;
}

.hbs-content-align-right .hbs-button-wrapper {
    justify-content: flex-end;
}

/* Buttons */
.hbs-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    line-height: 1.5;
}

.hbs-button-primary {
    color: #ffffff;
    background-color: #3a86ff;
    padding: 15px 40px;
    border-radius: 50px;
    border: none;
}

.hbs-button-secondary {
    color: #ffffff;
    background-color: transparent;
    padding: 13px 35px;
    border-radius: 50px;
    border: 2px solid #ffffff;
}

/* Button Hover Effects */
.hbs-button-primary:hover {
    background-color: #2667cc;
    color: #ffffff;
}

.hbs-button-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #3a86ff;
    color: #ffffff;
}

/* Button Icon */
.hbs-button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.hbs-button-icon-before {
    margin-right: 8px;
}

.hbs-button-icon-after {
    margin-left: 8px;
}

.hbs-button:hover .hbs-button-icon {
    transform: translateX(5px);
}

.hbs-button-icon-after {
    transform: translateX(-5px);
}

.hbs-button:hover .hbs-button-icon-after {
    transform: translateX(0);
}

/* Navigation Arrows */
.hbs-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background-color: rgba(0, 0, 0, 0.3);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    border: none;
    opacity: 0.7;
}

.hbs-arrow:hover {
    background-color: rgba(0, 0, 0, 0.6);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.hbs-arrow-prev {
    left: 20px;
}

.hbs-arrow-next {
    right: 20px;
}

.hbs-arrow i,
.hbs-arrow svg {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

/* Arrow Positions */
.hbs-arrows-inside .hbs-arrow-prev {
    left: 20px;
}

.hbs-arrows-inside .hbs-arrow-next {
    right: 20px;
}

.hbs-arrows-outside .hbs-arrow-prev {
    left: -68px;
    /* 20px spacing + 48px arrow width */
}

.hbs-arrows-outside .hbs-arrow-next {
    right: -68px;
}

/* Pagination */
.hbs-pagination {
    position: absolute;
    z-index: 10;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Pagination Positions */
.hbs-pagination-position-top .hbs-pagination {
    top: 20px;
    bottom: auto;
}

.hbs-pagination-position-bottom .hbs-pagination {
    bottom: 20px;
    top: auto;
}

.hbs-pagination-position-top-left .hbs-pagination {
    top: 20px;
    left: 20px;
    right: auto;
    width: auto;
    justify-content: flex-start;
}

.hbs-pagination-position-top-right .hbs-pagination {
    top: 20px;
    right: 20px;
    left: auto;
    width: auto;
    justify-content: flex-end;
}

.hbs-pagination-position-bottom-left .hbs-pagination {
    bottom: 20px;
    left: 20px;
    right: auto;
    width: auto;
    justify-content: flex-start;
}

.hbs-pagination-position-bottom-right .hbs-pagination {
    bottom: 20px;
    right: 20px;
    left: auto;
    width: auto;
    justify-content: flex-end;
}

/* Pagination Bullets */
.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    opacity: 0.5;
    margin: 0 8px !important;
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 50%;
    display: inline-block;
}

.swiper-pagination-bullet-active {
    background-color: #ffffff;
    opacity: 1;
    width: 14px;
    height: 14px;
}

/* Pagination Fraction */
.swiper-pagination-fraction {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    padding: 5px 15px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
}

/* Pagination Progress Bar */
.swiper-pagination-progressbar {
    background-color: rgba(255, 255, 255, 0.2);
    height: 4px;
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
}

.swiper-pagination-progressbar-fill {
    background-color: #ffffff;
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
}

/* Scrollbar */
.hbs-scrollbar {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    z-index: 10;
}

.swiper-scrollbar-drag {
    background-color: #ffffff;
    border-radius: 2px;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

/* Animation Classes */
.hbs-animated {
    opacity: 1 !important;
}

.hbs-animated-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.swiper-slide-active .hbs-animated-item.hbs-animated {
    opacity: 1;
    transform: translateY(0);
}

/* Animation Delays */
.swiper-slide-active .hbs-animated-item[data-delay="100"] {
    transition-delay: 0.1s;
}

.swiper-slide-active .hbs-animated-item[data-delay="200"] {
    transition-delay: 0.2s;
}

.swiper-slide-active .hbs-animated-item[data-delay="300"] {
    transition-delay: 0.3s;
}

.swiper-slide-active .hbs-animated-item[data-delay="400"] {
    transition-delay: 0.4s;
}

.swiper-slide-active .hbs-animated-item[data-delay="500"] {
    transition-delay: 0.5s;
}

.swiper-slide-active .hbs-animated-item[data-delay="600"] {
    transition-delay: 0.6s;
}

/* Animation Effects */
.hbs-animation-none {
    /* No animation */
}

.hbs-animation-fadeIn {
    animation-name: hbsFadeIn;
}

.hbs-animation-fadeInUp {
    animation-name: hbsFadeInUp;
}

.hbs-animation-fadeInDown {
    animation-name: hbsFadeInDown;
}

.hbs-animation-fadeInLeft {
    animation-name: hbsFadeInLeft;
}

.hbs-animation-fadeInRight {
    animation-name: hbsFadeInRight;
}

.hbs-animation-zoomIn {
    animation-name: hbsZoomIn;
}

.hbs-animation-slideInUp {
    animation-name: hbsSlideInUp;
}

.hbs-animation-slideInDown {
    animation-name: hbsSlideInDown;
}

.hbs-animation-slideInLeft {
    animation-name: hbsSlideInLeft;
}

.hbs-animation-slideInRight {
    animation-name: hbsSlideInRight;
}

/* Animation Keyframes */
@keyframes hbsFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes hbsFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hbsFadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hbsFadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes hbsFadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes hbsZoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes hbsSlideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes hbsSlideInDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes hbsSlideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes hbsSlideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .hbs-slider-container {
        height: 500px;
    }

    .hbs-slide-content {
        max-width: 80%;
        padding: 30px;
    }

    .hbs-slide-title {
        font-size: 48px;
    }

    .hbs-slide-description {
        font-size: 16px;
    }

    .hbs-button-wrapper {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .hbs-content-align-left .hbs-button-wrapper,
    .hbs-content-align-right .hbs-button-wrapper {
        align-items: center;
    }

    .hbs-arrow {
        width: 40px;
        height: 40px;
    }

    .hbs-arrow i,
    .hbs-arrow svg {
        font-size: 20px;
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 768px) {
    .hbs-slider-container {
        height: 400px;
    }

    .hbs-slide-content {
        max-width: 90%;
        padding: 20px;
    }

    .hbs-slide-subtitle {
        font-size: 14px;
        letter-spacing: 1px;
        margin-bottom: 10px;
    }

    .hbs-slide-title {
        font-size: 36px;
        margin-bottom: 15px;
    }

    .hbs-slide-description {
        font-size: 15px;
        line-height: 1.5;
        margin-bottom: 20px;
    }

    .hbs-button-primary,
    .hbs-button-secondary {
        padding: 12px 30px;
        font-size: 14px;
    }

    .hbs-arrow {
        width: 36px;
        height: 36px;
        opacity: 0.5;
    }

    .hbs-arrow:hover {
        opacity: 0.8;
    }

    .hbs-arrow i,
    .hbs-arrow svg {
        font-size: 18px;
        width: 18px;
        height: 18px;
    }

    /* Hide arrows on mobile if set */
    .hbs-arrows-hidden-mobile .hbs-arrow {
        display: none !important;
    }

    /* Hide pagination on mobile if set */
    .hbs-pagination-hidden-mobile .hbs-pagination {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .hbs-slider-container {
        height: 350px;
    }

    .hbs-slide-content {
        max-width: 95%;
        padding: 15px;
    }

    .hbs-slide-subtitle {
        font-size: 12px;
        letter-spacing: 0.5px;
        margin-bottom: 8px;
    }

    .hbs-slide-title {
        font-size: 28px;
        margin-bottom: 12px;
        line-height: 1.3;
    }

    .hbs-slide-description {
        font-size: 14px;
        line-height: 1.4;
        margin-bottom: 15px;
    }

    .hbs-button-primary,
    .hbs-button-secondary {
        padding: 10px 25px;
        font-size: 13px;
        width: 100%;
        max-width: 200px;
    }

    .hbs-button-wrapper {
        gap: 10px;
    }

    .hbs-arrow {
        width: 32px;
        height: 32px;
        opacity: 0.3;
    }

    .hbs-arrow-prev {
        left: 10px;
    }

    .hbs-arrow-next {
        right: 10px;
    }

    .hbs-arrow i,
    .hbs-arrow svg {
        font-size: 16px;
        width: 16px;
        height: 16px;
    }

    .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
        margin: 0 4px !important;
    }

    .swiper-pagination-bullet-active {
        width: 10px;
        height: 10px;
    }
}

/* Print Styles */
@media print {
    .hbs-slider-container {
        height: auto !important;
        max-height: 300px;
    }

    .hbs-slide {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .hbs-arrow,
    .hbs-pagination,
    .hbs-scrollbar {
        display: none !important;
    }

    .hbs-slide-content {
        color: #000000 !important;
        text-shadow: none !important;
        background-color: transparent !important;
    }

    .hbs-slide-title {
        color: #000000 !important;
    }

    .hbs-slide-subtitle {
        color: #333333 !important;
    }

    .hbs-slide-description {
        color: #666666 !important;
    }

    .hbs-button {
        display: none !important;
    }
}

/* Accessibility */
.hbs-arrow:focus,
.hbs-button:focus {
    outline: 2px solid #3a86ff;
    outline-offset: 2px;
}

.hbs-arrow:focus-visible,
.hbs-button:focus-visible {
    outline: 2px solid #3a86ff;
    outline-offset: 2px;
}

/* Swiper Slide Active State */
.swiper-slide-active {
    z-index: 2;
}

/* Loading State */
.hbs-slider-container.swiper-container-initialized .hbs-slide-content {
    visibility: visible;
}

.hbs-slider-container:not(.swiper-container-initialized) .hbs-slide {
    display: none;
}

.hbs-slider-container:not(.swiper-container-initialized) .hbs-slide:first-child {
    display: flex;
}

/* RTL Support */
.elementor-rtl .hbs-content-align-left {
    text-align: right;
    margin-left: auto;
    margin-right: 0;
}

.elementor-rtl .hbs-content-align-right {
    text-align: left;
    margin-left: 0;
    margin-right: auto;
}

.elementor-rtl .hbs-button-icon-before {
    margin-right: 0;
    margin-left: 8px;
}

.elementor-rtl .hbs-button-icon-after {
    margin-left: 0;
    margin-right: 8px;
}

.elementor-rtl .hbs-arrow-prev {
    left: auto;
    right: 20px;
    transform: translateY(-50%) rotate(180deg);
}

.elementor-rtl .hbs-arrow-next {
    right: auto;
    left: 20px;
    transform: translateY(-50%) rotate(180deg);
}

.elementor-rtl .hbs-arrows-outside .hbs-arrow-prev {
    left: auto;
    right: -68px;
}

.elementor-rtl .hbs-arrows-outside .hbs-arrow-next {
    right: auto;
    left: -68px;
}

/* Custom Animations for Swiper Effects */
.swiper-container-cube .hbs-slide {
    backface-visibility: hidden;
}

.swiper-container-flip .hbs-slide {
    backface-visibility: hidden;
}

.swiper-container-coverflow .hbs-slide {
    backface-visibility: hidden;
}