/* ==========================================================================
   AIVAH SERVICES HR SCROLLER WIDGET STYLES
   ========================================================================== */

/* Layout & Container */
.aivah-hr-scroller-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

/* On desktop, container takes 100vh height while pinned */
@media (min-width: 1025px) {
    .aivah-hr-scroller-container {
        height: 100vh;
        min-height: 600px;
    }
}

.aivah-hr-scroller-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 5%;
    box-sizing: border-box;
    gap: 50px;
}

/* Left Column */
.aivah-hr-scroller-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    color: #ffffff;
    box-sizing: border-box;
    z-index: 5;
}

.aivah-hr-left-subtitle {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #E85B24;
    margin-bottom: 20px;
}

.aivah-hr-left-title {
    font-size: 56px;
    line-height: 1.15;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 25px 0;
}

.aivah-hr-left-title .title-dot {
    color: #E85B24;
}

.aivah-hr-left-desc {
    font-size: 16px;
    line-height: 1.6;
    color: #999999;
    margin: 0 0 35px 0;
    max-width: 380px;
}

/* Left Column Button */
.aivah-hr-left-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background-color: transparent;
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    gap: 10px;
}

.aivah-hr-left-btn svg {
    transition: transform 0.3s ease;
}

.aivah-hr-left-btn:hover {
    border-color: #E85B24;
    color: #E85B24;
}

.aivah-hr-left-btn:hover svg {
    transform: translateX(5px);
}

/* Right Column */
.aivah-hr-scroller-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    box-sizing: border-box;
    position: relative;
}

.aivah-hr-scroller-viewport {
    width: 100%;
    overflow: visible;
}

.aivah-hr-scroller-track {
    display: flex;
    flex-direction: row;
    will-change: transform;
}

/* Cards */
.aivah-hr-card {
    display: flex;
    flex-direction: column;
    background-color: #0B0B0C;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
    position: relative;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.aivah-hr-card-wrapper-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    flex-grow: 1;
}

.aivah-hr-card:hover {
    border-color: rgba(232, 91, 36, 0.3);
}

/* Card Image */
.aivah-hr-card-media {
    width: 100%;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.aivah-hr-card-img,
.aivah-hr-card-media img {
    width: 100% !important;
    height: 100% !important;
    display: block;
    transition: transform 0.5s ease;
}

.aivah-hr-card:hover .aivah-hr-card-img {
    transform: scale(1.05);
}

/* Card Content */
.aivah-hr-card-content {
    display: flex;
    flex-direction: column;
    padding: 30px;
    flex-grow: 1;
    position: relative;
}

.aivah-hr-card-number {
    font-family: monospace, sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #E85B24;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.aivah-hr-card-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.aivah-hr-card-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #a8a8a9;
    margin: 0 0 20px 0;
}

/* Card Action Arrow */
.aivah-hr-card-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    align-self: flex-start;
    margin-top: auto;
    transition: all 0.3s ease;
}

.aivah-hr-card-arrow svg path {
    stroke: #E85B24;
    transition: stroke 0.3s ease;
}

.aivah-hr-card:hover .aivah-hr-card-arrow {
    background-color: #E85B24;
    border-color: #E85B24;
}

.aivah-hr-card:hover .aivah-hr-card-arrow svg path {
    stroke: #ffffff;
}

/* Bottom Navigation Controls */
.aivah-hr-scroller-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 50px;
    width: 100%;
}

.aivah-hr-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background-color: transparent;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
}

.aivah-hr-nav-btn svg path {
    stroke: #ffffff;
    transition: stroke 0.3s ease;
}

.aivah-hr-nav-btn:hover {
    border-color: #E85B24;
    background-color: rgba(255, 255, 255, 0.05);
}

.aivah-hr-nav-btn:hover svg path {
    stroke: #E85B24;
}

.aivah-hr-nav-pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
    max-width: 500px;
    margin: 0 30px;
}

.aivah-hr-nav-text {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888888;
    margin-bottom: 20px;
    text-align: center;
}

.aivah-hr-progress-track {
    width: 100%;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.1);
    position: relative;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 12px;
}

.aivah-hr-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: #E85B24;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.1s linear;
}

.aivah-hr-ticks {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.aivah-hr-tick {
    font-family: monospace, sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #555555;
    cursor: pointer;
    transition: color 0.3s ease;
}

.aivah-hr-tick.active {
    color: #E85B24;
}

/* Static Mode & Responsive Adaptations (Tablet/Mobile) */
@media (max-width: 1024px) {
    .aivah-hr-scroller-container {
        padding: 60px 0;
    }

    .aivah-hr-scroller-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
        padding: 0 20px;
    }

    .aivah-hr-scroller-left {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .aivah-hr-left-title {
        font-size: 42px;
    }

    .aivah-hr-scroller-right {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100%;
    }

    /* Horizontal scroll view on touch screens */
    .aivah-hr-scroller-viewport {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 25px;
        scrollbar-width: thin;
    }

    .aivah-hr-scroller-viewport::-webkit-scrollbar {
        height: 6px;
    }

    .aivah-hr-scroller-viewport::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 3px;
    }

    .aivah-hr-scroller-viewport::-webkit-scrollbar-thumb {
        background: #E85B24;
        border-radius: 3px;
    }

    .aivah-hr-scroller-track {
        width: max-content;
    }

    /* Keep Navigation Ticks but hide buttons on mobile */
    .aivah-hr-scroller-nav {
        margin-top: 20px;
    }

    .aivah-hr-nav-btn {
        display: none; /* Hide arrow navigation buttons */
    }

    .aivah-hr-nav-pagination {
        max-width: 100%;
        margin: 0;
    }

    .aivah-hr-card {
        flex: 0 0 300px !important;
        width: 300px !important;
        max-width: 300px !important;
    }
}

/* Visible items options on desktop */
@media (min-width: 1025px) {
    .aivah-hr-visible-items-2 .aivah-hr-card {
        flex: 0 0 calc((100% - 1 * var(--aivah-card-gap, 30px)) / 2) !important;
        width: calc((100% - 1 * var(--aivah-card-gap, 30px)) / 2) !important;
        max-width: calc((100% - 1 * var(--aivah-card-gap, 30px)) / 2) !important;
    }

    .aivah-hr-visible-items-3 .aivah-hr-card {
        flex: 0 0 calc((100% - 2 * var(--aivah-card-gap, 30px)) / 3) !important;
        width: calc((100% - 2 * var(--aivah-card-gap, 30px)) / 3) !important;
        max-width: calc((100% - 2 * var(--aivah-card-gap, 30px)) / 3) !important;
    }

    .aivah-hr-visible-items-4 .aivah-hr-card {
        flex: 0 0 calc((100% - 3 * var(--aivah-card-gap, 30px)) / 4) !important;
        width: calc((100% - 3 * var(--aivah-card-gap, 30px)) / 4) !important;
        max-width: calc((100% - 3 * var(--aivah-card-gap, 30px)) / 4) !important;
    }
}
