/* Video Player */
.vimeo-video-container {
    width: min(895px, 100%);
    margin-top: 3rem;
    border-radius: 12px;
    overflow: hidden;
    margin-left: auto;
    margin-right: auto;
}

.vimeo-video {
    padding: 56.25% 0 0 0; /* 16:9 Aspect Ratio */
    position: relative;
}

.vimeo-facade {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.vimeo-play-button {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.vimeo-facade:hover .vimeo-play-button {
    background-color: #000;
}

.vimeo-play-button::after {
    content: "";
    display: block;
    margin-left: 5px;
    border-style: solid;
    border-width: 12px 0 12px 17px;
    border-color: transparent transparent transparent #ffffff;
    border-radius: 3px;
}

/* Our Process */
.our-process img {
    width: min(56rem, 100%);
    margin: auto;
    margin-top: 3rem;
}

.diagram-mobile {
    display: none;
}

/* Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 2rem;
    margin-top: 3rem;
}

.benefits-grid h3, .local-text h3 {
    font-size: 1.45rem;
    margin-bottom: 1rem;
    margin-top: 0;
}

.benefits-grid p {
    margin-bottom: 0;
}

.benefits-grid > div {
    padding: 1.5rem;
    background-color: #f1f1f1;
    border-radius: 14px;
}

.blue.small-bento-box, .blue.small-bento-box h3, .local-text h3 {
    background-color: var(--primary-color);
    color: white;
}

.image-bento-box.box-1 {
    grid-column: span 2;
    background-position: center left;
    background-size: 140%;
}

.image-bento-box {
    height: 32rem;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.image-bento-box .text-content {
    width: min(25rem, 100%);
    z-index: 2;
    position: relative;
}

.image-bento-box, .image-bento-box h3 {
    color: var(--primary-color);
}

.image-bento-box:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.image-bento-box.box-1:before {
    background-image: linear-gradient(
        to right, 
        rgba(255, 255, 255, 0.9) 0%, 
        rgba(255, 255, 255, 0.9) 40%, 
        rgba(255, 255, 255, 0) 100%);
}

.image-bento-box.box-0:before {
background-image: linear-gradient(
        to bottom, 
        rgba(255, 255, 255, 0.9) 0%, 
        rgba(255, 255, 255, 0.9) 45%, 
        rgba(255, 255, 255, 0) 100%
    );
}

@media(width < 62rem){
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .image-bento-box.box-1 {
        grid-column: span 1;
        background-size: cover;
    }
}

@media(width < 47rem){
    .benefits-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* Local Relationships */
.local-relationships {
    margin-top: 2rem;
    display: flex;
    border: 2px solid #f1f1f1;
    border-radius: 15px;
    overflow: hidden;
}

.local-text {
    padding: 1.5rem;
    background-color: var(--primary-color);
    color: white;
    width: calc(33% - 1rem);
    min-width: 24rem;
}

.local-logos {
    display: flex;
    gap: 3rem;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    flex-wrap: wrap;
    align-content: center;
    padding: 2rem;
}

.local-logos img {
    max-height: 2.5rem;
    width: auto;
    transition: all 0.2s;
}

.local-logos img:hover {
    transform: translateY(-5px);
}

@media(width < 55rem){
    .local-relationships {
        flex-direction: column;
    }

    .local-logos {
        padding: 3rem 2rem;
    }

    .local-text {
        width: auto; 
        text-align: center;
    }

    .local-text h3 {
        width: 100%;
    }
}

/* Our Team */
.team-title-area.triangle-banner {
    background-repeat: no-repeat;
    background-size: 80%;
    background-position-x: -45%;
    background-position-y: 30%;
}

.team-title-area.triangle-banner:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-image: linear-gradient(to left, 
        rgba(2, 16, 64, 1) 0%, 
        rgba(2, 16, 64, 1) 28%, 
        rgba(2, 16, 64, 0) 85%);
}

.team-title-area h2 {
    margin-bottom: 1rem;
}

.team-title-area.triangle-banner .contained {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.team-title-area.triangle-banner .contained > div {
    flex: 1;
}

@media(width < 62rem) {
    .team-title-area.triangle-banner .contained{
        flex-direction: column;
        text-align: center;
    }

    .team-title-area.triangle-banner {
        background-position: center;
        background-size: cover;
    }

    .team-title-area.triangle-banner:before {
        background-image: linear-gradient(to top, rgba(2, 16, 64, 1) 0%, rgba(2, 16, 64, 1) 50%, rgba(2, 16, 64, 0) 85%);
    }

    .triangle-banner h2 {
        margin-inline: auto;
        text-align: center;
    }

    .team-title-area.triangle-banner .spacer {
        flex: unset!important;
        height: 20rem;
    }

    .image-bento-box.box-1:before {
        background-image: linear-gradient(to right, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.9) 40%, rgba(255, 255, 255, 0.6) 100%);
    }
}

/* Staff */
section.our-team .page-container {
    padding-bottom: 1rem;
}

.staff-boxes, .other-staff {
    display: flex;
    align-items: stretch;
    gap: 2rem;
    margin-bottom: 2rem;
}

.staff-box, .other-staff > article {
    border: 1px solid rgba(0, 0, 0, .1);
    padding: 1.3rem;
    flex: 1;
    border-radius: calc(10px + 0.75rem);
    display: flex;
    align-items: stretch;
    gap: 1.5rem;
    min-height: 17.5rem;
}

.staff-boxes > article > div, .other-staff > article > div {
    flex: 1;
}

.staff-boxes img, .other-staff img {
    object-fit: cover;
    height: 100%;
    border-radius: 10px;
}

.our-team h3 {
    color: var(--primary-color);
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.co-founder h3 {
    margin-bottom: 0;
    font-family: 'primana-medium';
}

.staff-role {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: .5rem;
    font-family: 'primana-bold';
}

@media (width < 69rem) {
    .staff-boxes, .other-staff {
        flex-direction: column;
        margin-bottom: 0;
        margin-top: 2rem;
    }

    .staff-boxes > article > .staff-image, .other-staff > article > .staff-slider {
        flex: 0.5;
    }

    .staff-box.right-image {
        display: none;
    }

    .staff-boxes.bottom {
        height: unset!important;
    }
}

@media (width < 43rem) {
    .staff-box, .other-staff > article {
        flex-direction: column;
    }
}

/* Slider */
.staff-slider {
    display: grid;
}

.staff-slide {
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 1rem;
    margin: 0;
}

.staff-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: space-between;
}

.staff-slide.active {
    opacity: 1;
    visibility: visible;
}

.pagination-dots {
    display: flex;
    gap: 8px;
    padding-bottom: 3rem;
}

.pagination-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #cccccc;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.pagination-dot.active {
    background-color: var(--primary-color);
}

.slider-name {
    color: var(--primary-color);
    font-size: 1.5rem;
    line-height: 1;
    font-family: 'primana-bold';
}

.staff-box.right-image {
    border: 0;
    background-size: cover;
}

.staff-boxes.bottom {
    height: 15rem;
}

/* Locations */
section.locations h2 {
    width: min(48rem, 100%);
    margin-bottom: 3.75rem;
}

/* Testimonials */
.testimonials-left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 3rem;
}

section.testimonials .page-container {
    display: flex;
    align-items: stretch;
    gap: 3rem;
}

section.testimonials .page-container > div {
    flex: 1;
}

.testimonials-ctas {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

@media(width < 64rem) {
    section.testimonials .page-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .testimonials-left {
        gap: 1rem;
    }
}

/* Accreditation */
section.accreditation p {
    width: min(36rem, 100%);
}

section.accreditation h2 {
    width: min(31rem, 100%);
}

.accred-logos img {
    height: 10rem;
}

.accred-logos {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    list-style: none;
    flex-wrap: wrap;
    padding-left: 0;
}

@media(width < 40rem){

    .diagram-desktop {
        display: none;
    }

    .diagram-mobile {
        display: block;
        width: min(25rem, 100%)!important;
    }
}