@font-face {
    font-family: 'CircularXX';
    src: url('path-to-fonts/CircularXXWeb-Book.woff2') format('woff2');
    font-display: swap;
}

.leadership-team-container .section-title {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #33450b;
}

.leadership-team-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    /* gap: 20px; */
    column-gap: 20px;
    row-gap: 64px;
}

.modal-team-image img{
    width: auto;
}

.team-member {
    flex: 1 1 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
}

.team-member-images {
    background-image: url('/wp-content/uploads/2025/02/Rectangle-4176-1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 326px;
}
.team-member-images .team-image{
    height: 100%;
}
.team-image img {
    height: 100% !important;
    width: 100%;
    object-fit: cover;
    object-position: center;
}
.team-static-model{
    padding-left: 314px;
}
.team-static-model .modal-leadership{
    margin: 0;
    margin-top: 8px;
}
.team-info {
    background-color: #2C5535;
    padding: 15px;
    width: 88%;
    margin-top: -50px;
    position: relative;
}

.team-name {
    color: var(--White, #FFF);
    /* Subheading/03 */
    font-family: "Helvetica", Sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 24px;
    /* 150% */
    letter-spacing: -0.192px;
    margin: 0;
}

.leadership-name {
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: #FFFFFF;
    font-family: "Helvetica", Sans-serif;
    margin: 8px 0px;
}

.team-position {
    font-size: 1rem;
    color: #555;
}

.team-button {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-color: transparent;
    border: 2px solid #a0c44b;
    border-radius: 50%;
    text-align: center;
    position: relative;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.team-button:hover {
    background-color: #a0c44b;
    rotate: 47deg;
}

.team-button .arrow-icon {
    width: 17px;
    height: 17px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.team-button:hover .arrow-icon {
    filter: invert(17%) sepia(83%) saturate(1042%) hue-rotate(106deg) brightness(40%) contrast(112%);
}

.section-title {
    text-align: center;
    font-size: 40px;
    line-height: 48px;
    font-weight: 600;
    font-family: "Baskervville", Sans-serif;
    color: #2C5535;
    margin-top: 70px;
    margin-bottom: 40px;
}

.team-modal {
    display: none;
    position: fixed;
    z-index: 1000 !important;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.5);
}
.team-modal::-webkit-scrollbar {
    display: none; /* Hides the scrollbar */
}

.team-modal-content {
    background-color: #fff;
    margin-left: auto; /* Ensures it stays on the right */
    border: 1px solid #888;
    width: 80%;
    height: 100vh;
    max-width: 100%;
    float: right;
    overflow-y: auto; /* Ensures content scrolling */
}
.team-modal-content::-webkit-scrollbar {
    display: none; /* Hides the scrollbar */
}
.close-btn {
    color: #6F7478;
    float: right;
    font-size: 16px;
    font-family: "Helvetica", Sans-serif;
    line-height: 24px;
}

.model-title-desktop {
    font-family: "Helvetica", Sans-serif;
    font-size: 16px;
    color: #6F7478;
    line-height: 24px;
    margin: 0;
    position: absolute;
    left: 32px;
}

.model-title-mobile {
    font-family: "Helvetica", Sans-serif;
    font-size: 16px;
    color: #6F7478;
    line-height: 24px;
    display: none;
}

.modal-title {
    font-family: "Baskervville", Sans-serif;
    font-size: 40px;
    color: #2C5535;
    line-height: 48px;
    font-weight: 600;
    margin: 0;
}
.team-close-icon .model-title{
    color: var(--Grey-3, #6F7478);

    /* Body/Medium/400 */
    font-family: "Helvetica", Sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px; /* 150% */
    margin: 0;
}
.modal-leadership {
    font-family: "Helvetica", Sans-serif;
    font-size: 24px;
    color: #6F7478;
    line-height: 32px;
    font-weight: 700;
}

.close-btn:hover,
.close-btn:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-team-image {
    max-width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
}

.model-title {
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    font-family: "Helvetica", Sans-serif;
}

.modal-team-content {
    font-family: "Helvetica", Sans-serif;
    font-size: 16px;
    color: #6F7478;
    line-height: 24px;
    font-weight: 400;
    width: 87%;
}

.team-close-icon {
    display: flex;
    padding: 16px 32px;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
}

.team-image-modal {
    background-image: url('/wp-content/uploads/2025/02/Rectangle-4177.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 289px;
}

.team-content-grid-modal {
    display: flex;
    align-items: start;
    justify-content: space-between;
    margin-top: 48px;
    flex-direction: column;
    margin-bottom: 80px;
}

.team-left-modal {
    margin-top: 48px;
    display: flex;
    padding: 0px 32px;
    justify-content: space-between;
    align-items: flex-start;
    align-self: stretch;
    position: relative;
    padding-left: 314px;
}

@keyframes slideOutToRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Apply animation to modal content */
.team-modal-content {
    animation-duration: 0.5s;
    animation-fill-mode: forwards;
    transform: translateX(-100%);
    /* overflow-y: scroll; */
}
.modal-team-image {
    max-width: 100%;
    height: 289px;
    display: flex;
    justify-content: center;
}
@media(max-width: 1024px){
    .modal-team-content {
        padding-right: 0;
        width: 100%;
    }
}
@media (max-width:767px) {

    .section-title {
        text-align: center;
        font-size: 32px;
        line-height: 40px;
        font-weight: 600;
        font-family: "Baskervville", Sans-serif;
        color: #2C5535;
        margin-top: 50px;
    }

    .team-close-icon{
        padding: 16px 24px; 
    }

    .team-modal-content {
        width: 100%;
        max-width: 100%;
        float: right;
    }

    .team-modal {
        padding-top: 0px;
    }

    .team-content-grid-modal {
        display: block;
        margin-bottom: 24px;
    }

    .modal-title {
        font-size: 32px;
        line-height: 40px;
    }

    .team-left-modal {
        width: 100%;
    }

    .model-title {
        line-height: 10px;
        font-size: 16px;
        font-weight: 400;
    }

    .model-title-desktop {
        display: none;
    }

    .model-title-mobile {
        color: var(--Grey-3, #6F7478);

        /* Body/Medium/400 */
        font-family: "Helvetica", Sans-serif;
        font-size: 16px;
        font-style: normal;
        font-weight: 400;
        line-height: 24px; /* 150% */
        display: block;
        margin: 0;
        margin-bottom: 24px;
    }
    .modal-team-content{
        width: 100%;
        padding-right: 0;
    }

    .team-member {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .team-static-model{
        padding: 0px 24px;
    }
    .team-left-modal{
        margin-top: 32px;
        padding: 0px 24px;
        flex-direction: column;
    }
}


/* Careers page css */


.job-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #939393;
}
.job-details {
    flex: 1;
}

.job-title {
    font-size: 20px;
    font-family: "Helvetica", Sans-serif;
    font-weight: 700;
    line-height: 28px;
    letter-spacing: -0.24px;
    color: #2C5535;
    margin: 0;
}

.job-meta {
    font-family: "Helvetica", Sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: #6F7478;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 10px;
}

.job-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.job-time-icon,
.job-location-icon {
    width: 24px;
    height: 24px;
}


.apply-btn {
    font-family: "Helvetica", Sans-serif;
    padding: 0px 32px;
    border: 1px solid #BA8748;
    color: #BA8748;
    text-decoration: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    line-height: 35px;
}

.apply-btn:hover {
    color: #BA8748;
}

@media screen and (max-width: 768px) {
    .job-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px 10px;
    }
    .apply-btn {
        margin-top: 15px;
    }
    .job-meta span {
        gap: 0px;
    }
    .team-image img{
        object-position: top !important;
        object-fit: contain;
    }
}
@media screen and (max-width: 388px) {
    .team-image img{
        object-fit: cover;
    }
}