/* Card base */
.card {
    background: linear-gradient(135deg, #ff8d71, #d6b194);
    border-radius: 18px;
    padding: 25px;
    width: 90%;
    height: 250px;
    color: white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Layout */
.card-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 20px;
}

/* Text */
.text {
    flex: 1; /* take available space */
    text-align: right;
}

/* Text positioning */
.text {
    text-align: right;
    position: relative;
    top: 0;    /* move up/down */
    right: 40px;   /* move left/right */
}


.text strong {
    display: block;
    font-size: 40px; /* reduced from 50px (too big) */
    margin-bottom: 5px;
}

.text p {
    margin: 2px 0;
    font-size: 25px;
}

/* Keep (ឈ្មោល) and (ញី) inline */
.text .gender span {
    margin-right: 10px;
}


/* Image */
.image img {
    width: 170px;
    height: 170px;
    user-select: none;
    pointer-events: none;
    -webkit-user-drag: none;
}

/* Mobile Layout */
@media (max-width: 600px) {
    .card {
        height: auto;
        padding: 15px;
    }

    .card-content {
        flex-direction: column-reverse;
        text-align: center;
    }

    .text {
        text-align: center;
    }

    .text strong {
        font-size: 20px;
    }

    .text p {
        font-size: 16px;
    }

    .image img {
        width: 90px;
        height: 90px;
        margin-bottom: 10px;
    }
}