.epc-card {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: nowrap;
    transition: transform 200ms ease, box-shadow 200ms ease;
    cursor: pointer;
}

.epc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.epc-card.epc-image-right {
    flex-direction: row-reverse;
}

.epc-image-wrap {
    flex: 0 0 auto;
}

.epc-image {
    display: block;
    width: 220px;
    height: auto;
    border-radius: 24px;
    object-fit: cover;
}

.epc-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1 1 0;
    word-break: break-word;
    /* Wraps long text */
    overflow-wrap: break-word;
    /* Standard property for wrapping */
}

.epc-name {
    font-weight: 700;
    font-size: 28px;
    line-height: 1.1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.epc-title {
    font-size: 16px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.epc-contact {
    font-size: 16px;
}

.epc-contact a {
    text-decoration: none !important;
}

@media (max-width: 767px) {

    .epc-card,
    .epc-card.epc-image-right {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .epc-card {
        gap: 15px !important;
        /* Adjust gap for mobile */
    }

    .epc-content>*+* {
        margin-top: 5px;
        /* Adjust spacing for mobile */
    }

    .epc-content {
        align-items: center !important;
        text-align: center !important;
    }

    .epc-content > * {
        text-align: center !important;
    }

    .epc-image-wrap {
        width: 100%;
        display: flex;
        justify-content: center;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .epc-card,
    .epc-card.epc-image-right {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .epc-card {
        gap: 18px;
    }

    .epc-content {
        width: 100%;
        align-items: center !important;
        text-align: center !important;
    }

    .epc-content > * {
        text-align: center !important;
    }

    .epc-image-wrap {
        width: 100%;
        display: flex;
        justify-content: center;
    }
}
