/* Coworkers Flip Cards CSS */

/* Section Layout */
.coworkers-section {
    width: 100%;
    margin: 80px 0;
}

@media (min-width: 768px) {
    .coworkers-section {
        margin: 90px 0;
    }
}

.coworkers-container {
    width: 100%;
    max-width: 1440px;
    padding: 0 16px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .coworkers-container {
        padding: 0 24px;
    }
}

@media (min-width: 1024px) {
    .coworkers-container {
        padding: 0 32px;
    }
}

/* Grid Layout */
.coworkers-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 640px) {
    .coworkers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .coworkers-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }
}

/* Flip Card Styles */
.flip-card {
    background-color: transparent;
    width: 100%;
    height: 600px;
    perspective: 1000px;
    position: relative;
}

@media (min-width: 640px) {
    .flip-card {
        min-height: max-content;
        height: 630px;
    }
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: left;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 10px;
    overflow: hidden;
}

.flip-card-front {
    background-color: #fff;
}

.flip-card-back {
    background-color: #ffefd8;
    transform: rotateY(180deg);
}

/* Card Content Styles */
.member-image {
    width: 100%;
    height: 275px !important;
    object-fit: cover;
}

.card-content {
    padding: 24px;
}

.member-name {
    font-family: 'Eksell', serif !important;
    font-size: 28px !important;
    font-weight: 300 !important;
    line-height: 1.25 !important;
    margin-bottom: 0px;
}

@media (min-width: 640px) {
    .member-name {
        font-size: 28px;
    }
}

.member-position {
    font-family: "GTWalsheim";
    font-size: 16px;
    text-transform: uppercase;
    color: #333;
    margin-bottom: 16px;
}

.member-skills {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.member-skills li {
    font-family: 'GTWalsheim', sans-serif;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    padding-left: 16px;
    position: relative;
}

.member-skills li::before {
    content: '•';
    position: absolute;
    left: 0;
}

.member-email a,
.member-phone a {
    color: rgb(0 23 153);
    font-size: 16px;
    font-weight: bold;
}

.member-email {
    margin-bottom: 0px;
}

.about-heading {
    font-family: 'GTWalsheim', sans-serif;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
}

.member-description {
    font-family: 'GTWalsheim';
    font-size: 16px;
    color: #666;
    margin-bottom: 32px;
}

/* Card Footer Styles */
.card-footer {
    position: absolute;
    bottom: 20px;
    width: calc(100% - 48px);
}

.divider {
    width: 100%;
    height: 1px;
    margin-bottom: 16px;
}

.flip-card-front .divider {
    background-color: #ced4da;
}

.flip-card-back .divider {
    background-color: #e5d2b6;
}

.read-more {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.flip-icon {
    width: 32px;
    height: 32px;
}

.flip-text {
    font-family: GTWalsheim;
    font-size: 16px;
    font-weight: 700;
    color: #001799;
    margin-left: 8px;
    margin-bottom: 0;
}

/* Media Queries */
@media (max-width: 640px) {
    .member-name {
        font-size: 24px !important;
        margin: 0;
    }

    .card-content {
        padding: 32px 20px 16px 20px;
    }
}