/* ==========================================================================
   Building Careers in Compassionate Healthcare (Bootstrap 5 Integrated)
   Matching Figma Nodes: 74:4, 78:107-108, 76:14, 76:15, 74:5-8, 78:17-36, 78:101-106
   ========================================================================== */

.gr-careers-gallery-section {
    width: 100%;
    background-color: #FFFFFF;
    padding: 70px 0 80px 0;
    box-sizing: border-box;
}

.gr-careers-gallery-container {
    max-width: 1600px;
    padding-left: 31px;
    padding-right: 31px;
    margin: 0 auto;
}

/* ==========================================================================
   LHS: Primary Blue Card (#2A3EC0) + 4 Circular Avatars
   ========================================================================== */
.gr-careers-blue-card {
    width: 100%;
    background-color: var(--gr-primary-blue, #2A3EC0);
    padding: 30px 34px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 480px;
}

.gr-careers-links-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.gr-careers-link-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.40);
    text-decoration: none;
    transition: padding-left 0.2s ease;
}

.gr-careers-link-item:first-child {
    padding-top: 4px;
}

.gr-careers-link-item:last-child {
    border-bottom: none;
    padding-bottom: 4px;
}

.gr-careers-link-item:hover {
    padding-left: 6px;
}

.gr-careers-link-text {
    font-family: var(--gr-font-family, 'Instrument Sans', sans-serif);
    font-size: 17.5px;
    font-weight: 400;
    color: #FFFFFF;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.gr-careers-link-icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    transition: transform 0.2s ease;
}

.gr-careers-link-item:hover .gr-careers-link-icon {
    transform: translate(3px, -3px);
}

.gr-careers-link-icon svg {
    width: 18px;
    height: 18px;
    stroke: #FFFFFF;
}

/* 4 Overlapping Avatar Circles with RHS Curve-Cut Stacking (Screenshot 2 Matched) */
.gr-careers-avatars-row {
    display: flex;
    align-items: center;
    margin-top: 26px;
    padding-left: 2px;
    position: relative;
}

.gr-avatar-circle {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    border: 4px solid #FFFFFF;
    margin-left: -24px;
    overflow: hidden;
    background-color: #FFFFFF;
    box-sizing: border-box;
    position: relative;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

/* Stacking order: Each successive circle slots into and bites a curve into the previous one */
.gr-avatar-circle:nth-child(1) { z-index: 1; margin-left: 0; }
.gr-avatar-circle:nth-child(2) { z-index: 2; }
.gr-avatar-circle:nth-child(3) { z-index: 3; }
.gr-avatar-circle:nth-child(4) { z-index: 4; }

.gr-avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

/* ==========================================================================
   RHS: Title + Outlined Button + High-Res Showcase Gallery (col-lg-8)
   ========================================================================== */
.gr-careers-title {
    font-family: var(--gr-font-family, 'Instrument Sans', sans-serif);
    font-size: clamp(34px, 3.4vw, 50px);
    font-weight: 400;
    line-height: 1.15;
    color: #000000;
    letter-spacing: -0.02em;
    margin: 0;
}

.gr-careers-title .gr-text-blue {
    color: var(--gr-primary-blue, #2A3EC0);
    display: inline;
}

/* View all Gallery Outlined Button (Screenshot 1 Matched) */
.gr-gallery-viewall-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 24px;
    background-color: transparent;
    color: var(--gr-primary-blue, #2A3EC0);
    border: 1px solid var(--gr-primary-blue, #2A3EC0);
    font-family: var(--gr-font-family, 'Instrument Sans', sans-serif);
    font-size: 15.5px;
    font-weight: 400;
    text-decoration: none;
    border-radius: 0;
    flex-shrink: 0;
    margin-bottom: 4px;
    box-sizing: border-box;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.gr-gallery-viewall-btn:hover {
    background-color: var(--gr-primary-blue, #2A3EC0);
    color: #FFFFFF;
}

/* High-Res Showcase Image Box with Interactive Slides */
.gr-gallery-showcase-box {
    width: 100%;
    height: 440px;
    position: relative;
    overflow: hidden;
    background-color: #1E1E1E;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.gr-gallery-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.gr-gallery-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s ease;
    z-index: 1;
}

.gr-gallery-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.gr-gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    image-rendering: auto;
    transition: transform 0.5s ease;
}

.gr-gallery-showcase-box:hover .gr-gallery-slide.active img {
    transform: scale(1.02);
}

/* 6 Square Pagination Indicator Dots Overlaid on Image */
.gr-gallery-dots {
    position: absolute;
    bottom: 22px;
    right: 24px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gr-gallery-dot {
    width: 12px;
    height: 12px;
    background-color: transparent;
    border: 1.5px solid #FFFFFF;
    cursor: pointer;
    padding: 0;
    margin: 0;
    outline: none;
    box-sizing: border-box;
    transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.gr-gallery-dot:hover {
    transform: scale(1.15);
    background-color: rgba(255, 255, 255, 0.5);
}

.gr-gallery-dot.active {
    background-color: #FFFFFF;
    border-color: #FFFFFF;
    transform: scale(1);
}

/* Responsive */
@media (max-width: 991px) {
    .gr-gallery-showcase-box {
        height: 380px;
    }
}

@media (max-width: 768px) {
    .gr-careers-right-header {
        flex-direction: column;
        align-items: flex-start !important;
        align-items: center !important;
        gap: 16px;
    }
    .gr-careers-avatars-row {
    justify-content: center;}

    .gr-gallery-viewall-btn {
        margin-bottom: 0;
    }

    .gr-careers-title {
        font-size: 32px;        text-align: center;
        width: 100%;
    }

    .gr-gallery-showcase-box {
        height: 280px;
    }

    .gr-avatar-circle {
        width: 76px;
        height: 76px;
        margin-left: -16px;
    }
}
