.chra-team-container {
    width: 100%;
    margin: 0 auto;
    font-family: inherit;
}

.chra-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
}

@media (max-width: 768px) {
    .chra-grid {
        grid-template-columns: 1fr;
    }
}

.chra-member-card {
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.chra-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.chra-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Original Hover Reveal overlay over the photo */
.chra-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(120, 90, 70, 0.9);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    box-sizing: border-box;
    z-index: 2;
    text-align: center;
}

.chra-member-card:hover .chra-overlay {
    opacity: 1;
}

.chra-overlay-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #ffffff;
}

/* Name Box: Exactly aligned at the bottom right corner */
.chra-member-name {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 192px;
    height: 75px;
    background-color: #f7f3f0;
    color: #785a46;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

/* Hover over the entire member card triggers name background highlight */
.chra-member-card:hover .chra-member-name {
    background-color: #785a46;
    color: #ffffff;
}

/* Force name brown highlight if accordion is active */
.chra-member-name.is-active {
    background-color: #785a46 !important;
    color: #ffffff !important;
}

/* Accordion text container: slides up dynamically from bottom when clicked */
.chra-accordion-content {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f7f3f0;
    color: #333333;
    z-index: 4;
    transition: bottom 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.chra-accordion-content.is-active {
    bottom: 0;
}

.chra-accordion-inner {
    padding: 50px;
    font-size: 1rem;
    line-height: 1.7;
    text-align: left;
}
