/* =========================================
   MEMBERS SECTION
========================================= */

.members-section {
    background: #f8f9fa;
}


/* =========================================
   MEMBER CARD
========================================= */

.member-card {
    width: 100%;
    height: 500px;
    perspective: 1200px;
}

.member-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s ease;
    transform-style: preserve-3d;
}

/* Flip on hover */
.member-card:hover .member-card-inner {
    transform: rotateY(180deg);
}


/* =========================================
   FRONT & BACK
========================================= */

.member-card-front,
.member-card-back {
    position: absolute;
    width: 100%;
    height: 100%;

    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;

    border-radius: 18px;
    overflow: hidden;

    background: #ffffff;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.08);
}


/* =========================================
   FRONT
========================================= */

.member-card-front {
    display: flex;
    flex-direction: column;
}


/* =========================================
   MEMBER IMAGE
========================================= */

.member-image-wrapper {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: #e9ecef;
    display: flex;
    justify-content: center; /* horizontal */
    align-items: center;     /* vertical */
     background-color:  rgb(66, 1, 65);
}

.member-image {
    width: 140px;
    height: 140px;
    object-fit: cover;
    transition: transform 0.5s ease;
    border-radius: 50%;
    border: 3px solid #fff;
    outline: 3px solid #083410;
}

.member-card:hover .member-image {
    transform: scale(1.05);
}


/* =========================================
   MEMBER INFO
========================================= */

.member-info {
    padding: 14px;
    flex: 1;
    background-color: rgb(66, 1, 65);
}

.member-name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
    text-align: center;
}

.member-id {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #2742F5;
    text-align: center;
}
/* =========================================
   DETAILS
========================================= */

.member-details {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding-bottom: 8px;

    border-bottom: 1px solid #eeeeee;
}

.status-active{
    text-align: center;
    border: 1px solid rgb(9, 52, 12);
    background-color: #095928;
    border-radius: 4px;
    padding: 4px;
}

.status-unpaid{
    text-align: center;
    border: 1px solid rgb(218, 126, 28);
    background-color: #ea0707;
    border-radius: 4px;
    padding: 4px;
}

.status-reject{
    text-align: center;
    border: 1px solid rgb(218, 126, 28);
    background-color: #693a05;
    border-radius: 4px;
    padding: 4px;
}

.detail-label {
    color: white;
    font-size: 14px;
}

.detail-label i {
    width: 20px;
    margin-right: 4px;
}

.detail-value {
    color: whitesmoke;
    font-size: 14px;
    font-weight: 600;
}

.blood-group {
    display: inline-block;

    padding: 3px 10px;

    border-radius: 20px;

    background: #dc3545;
    color: #ffffff;

    font-size: 13px;
    font-weight: 700;
}


/* =========================================
   FLIP HINT
========================================= */

.flip-hint {
    margin-top: 10px;

    text-align: center;

    font-size: 12px;
    color: #adb5bd;
}

.flip-hint i {
    margin-right: 4px;
}


/* =========================================
   BACK
========================================= */

.member-card-back {
    transform: rotateY(180deg);

    background: linear-gradient(
        145deg,
        #0d6efd,
        #084298
    );

    color: #ffffff;
}

.back-content {
    height: 100%;

    padding: 30px;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.back-content h4 {
    font-weight: 700;
}


/* =========================================
   BACK INFORMATION
========================================= */

.back-info {
    display: flex;
    gap: 15px;

    margin-bottom: 25px;
}

.back-icon {
    min-width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.15);

    font-size: 18px;
}

.back-info h6 {
    margin-bottom: 5px;

    font-weight: 700;
}

.back-info p {
    margin: 0;

    font-size: 14px;
    line-height: 1.6;

    color: rgba(255, 255, 255, 0.85);
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 991.98px) {

    .member-card {
        height: 450px;
    }

    .member-image-wrapper {
        height: 300px;
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 767.98px) {

    .member-card {
        height: 460px;
    }

    .member-image-wrapper {
        height: 300px;
    }

    .member-name {
        font-size: 20px;
    }

}
