/* FAQ Repeater */

section.faq-repeater {
    margin: 40px 0;
}

/* Team Section Open (for page 303) */
.team-section-open {
    padding: clamp(15px, 3vw, 30px);
}

.team-section-open h2.team-section-title {
    color: var(--green);
    font-size: clamp(24px, 3vw, 30px);
    font-style: normal;
    font-weight: 400;
    line-height: 120%;
    text-transform: capitalize;
    padding-bottom: 30px;
    margin-bottom: 30px;
    border-bottom: solid 1px var(--green);
}

.faq-repeater-wrapper {
    background: var(--white);
    z-index: 1;
    padding: clamp(10px, 5vw, 100px);
    border: solid 6px var(--border-green);
}

.faq-item {
    display: flex;
    flex-direction: column;
}

.faq-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    font-size: 30px;
    font-style: normal;
    font-weight: 400;
    line-height: 120%;
    text-transform: capitalize;
    border-bottom: solid 1px var(--green);
    padding-top: 30px;
    padding-bottom: 30px;
    padding-left: clamp(15px, 3vw, 30px);
    padding-right: clamp(15px, 3vw, 30px);
    cursor: pointer;
}

.faq-repeater-inner {
    border-top: solid 1px var(--green);
}

span.faq-item-icon.rotate {
    rotate: -90deg;
}

span.faq-item-icon {
    transition: ease 0.3s;
    rotate: 0deg;
}

.faq-item-content {
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    color: var(--border-green);
}

.faq-item-content-wrapper {
    padding: clamp(15px, 3vw, 30px);
}


.faq-item-content p {
    font-size: clamp(16px, 1.8vw, 18px);
}

h2.faq-item-title {
    color: var(--green);
    font-size: clamp(24px, 3vw, 30px);
    font-style: normal;
    font-weight: 400;
    line-height: 120%;
    text-transform: capitalize;
}

/* Team */

section.team-area {
    margin: 40px 0;
}

.team-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 0 40px;
}

.team-wrapper {
    background: var(--white);
    z-index: 1;
    position: relative;
    padding: clamp(25px, 5vw, 100px);
    border: solid 6px var(--border-green);
}

.team-members-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
}

.team-member-item {
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
}

.team-member-item:hover p.team-member-role{
    display: flex;
    opacity: 1;
    max-height: 50px;

}

.team-member-image {
    display: flex;
    width: 100%;
    height: 300px;
}

.team-member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
}

.team-member-image:before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.00) 0%, rgba(9, 32, 8, 0.48) 78.5%);
    mix-blend-mode: multiply;
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    transition: ease 0.4s;
}

.team-member-item:hover .team-member-image:before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.00) 0%, rgba(9, 32, 8, 0.90) 69%);
}

.team-member-details {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 30px 40px;
    z-index: 2;
}

h3.team-member-name {
    color: var(--white);
    font-family: 'Instrument Sans';
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 140%;
    text-transform: uppercase;
}

.team-member-details:after {
    content: '';
    width: calc(40% - 60px);
    height: 1px;
    position: absolute;
    z-index: 1;
    background: var(--white);
    bottom: 20px;
    transition: ease 0.4s;
}

.team-member-item:hover .team-member-details:after {
    width: calc(100% - 60px);
}

p.team-member-role {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    color: var(--white);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;
    transition: ease 0.4s;
}

.team-member-item.first-member p.team-member-role,
.team-member-item.show-role p.team-member-role {
    display: flex;
    opacity: 1;
    max-height: 50px;
}

.team-content h2 {
    color: var(--green);
    font-family: 'adobe-caslon-pro';
    font-size: 30px;
    font-style: normal;
    font-weight: 400;
    line-height: 120%;
    text-transform: capitalize;
}

.team-content p {
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;
}

@media (max-width: 1080px) {
    .team-members-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 700px) {
    .team-members-grid {
        grid-template-columns: 1fr;
    }
}

/* Team Modal */

.team-member-modal.active {
    opacity: 1;
    pointer-events: all;
    z-index: 99;
}

.team-member-modal {
    position: fixed;
    left: 0;
    top: 0;
    width: calc(100% - 120px);
    height: calc(100% - 120px);
    background: var(--white);
    padding: 60px;
    overflow-y: scroll;
}

.team-member-modal-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    padding: clamp(10px, 3vw, 40px);
}

button.team-member-modal-close {
    position: absolute;
    top: 40px;
    right: 40px;
    background: none;
    border: none;
    padding: 10px;
    margin: 0;
    cursor: pointer;
    z-index: 99;
}
.team-member-modal-details {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.team-member-modal-image {
    position: relative;
    display: flex;
    width: 420px;
    height: 612px;
}

.team-member-modal-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    top: 0;
    position: absolute;
    height: 100%;
}

h3.team-member-modal-name {
    color: var(--green);
    font-family:'adobe-caslon-pro';
    font-size: clamp(20px, 4vw, 50px);
    font-style: normal;
    font-weight: 400;
    line-height: 120%; 
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

p.team-member-modal-role {
    color: var(--black);
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 140%;
}

.team-member-modal-text-content {
    margin-top: 60px;
    position: relative;
}
.team-member-modal-text-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.team-member-modal-image a {
    padding: 10px;
    background: var(--green);
    z-index: 1;
    display: flex;
    margin-top: auto;
    width: 100%;
    align-items: center;
    gap: 5px;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
}

.team-member-modal-text-content p,
.team-member-modal-text-content a, 
.team-member-modal-text-content ul li {
    font-size: clamp(14px, 1.8vw, 18px);
    word-break: break-word;
}

.team-member-modal-text-content:before {
    content: '';
    background: var(--black);
    width: 100%;
    height: 1px;
    top: -30px;
    left: 0;
    position: absolute;
}

@media (max-width: 1080px) {
    .team-member-modal-content-wrapper {
        grid-template-columns: 1fr;
    }

    .team-member-modal-image {
        margin: auto;
    }
}

@media (max-width: 700px) {
    .team-member-modal {
        width: 100%;
        height: 100%;
        padding: 0;
    }

    button.team-member-modal-close {
        top: 20px;
        right: 20px;
    }

    .team-member-modal-image a svg {
        height: 18px;
        width: 18px;
    }

    .team-member-modal-image a {
        font-size: 12px;
    }

    .team-member-modal-image {
        height: 250px;
        width: 250px;
        margin-top: 100px;
    }
}
/* Resources section (blog posts) */

.resource-thumbnail {
    display: flex;
    aspect-ratio: 1/1;
    height: 200px;
    width: 200px;
}

.resource-item {
    display: grid;
    grid-template-columns: 200px 3fr;
    background: #F5F3ED;
    padding: 20px;
    gap: 40px;
}

.resources-posts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.resource-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* how we work */

.how-we-work-repeater {
    display: grid;
    justify-content: space-around;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr auto 1fr;
    margin-top: 60px;
}

.work-step {
    display: flex;
    flex-direction: column;
    gap: 36px;
    text-decoration: none;
    cursor: default;
}

.work-icon {
    background: var(--green);
    display: flex;
    width: 72px;
    height: 72px;
    border-radius: 100%;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

p.work-text {
    color: var(--black);
    text-align: center;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 140%;
}

svg#how-we-work-line {
    display: flex;
    margin-top: 36px;
}

svg#how-we-work-line:nth-of-type(6) {
    display: none;
}

@media (max-width: 1200px) {
    svg#how-we-work-line {
        display: none;
    }

    .how-we-work-repeater {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 550px) {
    .how-we-work-repeater {
        grid-template-columns: 1fr;
    }
}

/* resources */

.resources-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: clamp(20px, 6vw, 80px);
    background: var(--white);
    z-index: 1;
    position: relative;
    border-radius: 2px;
    border: solid 6px var(--border-green);
}

.resource-item-image {
    display: flex;
    height: 300px;
    width: 100%;
    position: relative;
}

.resource-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
}

a.resource-item-link {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-decoration: none;
    color: var(--black);
}

.resource-item-details {
    display: flex;
    justify-content: space-between;
    align-items: end;
}

@media (max-width: 800px) {
    .resources-posts {
        grid-template-columns: 1fr;
    }

    .resource-item-image {
        height: 220px;
    }
}

@media (max-width: 550px) {
    .resource-item-image {
        height: 160px;
    }
}