/* ─── RNN Team — Frontend Styles ─────────────────────────────────────────── */

.rnn-team-wrap {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.rnn-employee {
    display: flex;
    flex-direction: row;
    margin-bottom: 30px;
    padding: 15px;
    box-sizing: border-box;
    border-radius: 4px;
}

/* Layout: below (vertical card) */
.rnn-team-wrap.rnn-layout-below .rnn-employee {
    flex-direction: column;
}

.rnn-team-wrap.rnn-layout-below .rnn-employee-image {
    margin: 0 0 15px 0;
}

/* Layout: beside (horizontal card — default) */
.rnn-team-wrap.rnn-layout-beside .rnn-employee-image {
    margin-right: 20px;
    flex-shrink: 0;
}

/* Center mode */
.rnn-team-wrap.rnn-center .rnn-employee {
    align-items: center;
    text-align: center;
}

.rnn-team-wrap.rnn-center.rnn-layout-below .rnn-employee-image {
    margin: 0 auto 15px auto;
}

/* Border mode */
.rnn-team-wrap.rnn-bordered .rnn-employee {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin: 0 10px 20px 10px;
}

.rnn-employee span {
    width: 100%;
    display: block;
    line-height: 1.5;
}

.rnn-employee .rnn-employee-image img {
    object-fit: cover;
    display: block;
}

/* Font styling for .name and .title is controlled by plugin settings (dynamic CSS) */

/* "See more" button — colors, size, alignment controlled by settings */
.rnn-team-more {
    width: 100%;
    margin-top: 5px;
}

.rnn-team-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 500;
    border-radius: 4px;
    transition: opacity 0.2s;
}

.rnn-team-more-btn:hover {
    opacity: 0.85;
}

.rnn-team-more-btn .rnn-plus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    font-weight: bold;
    font-size: 1.2em;
    line-height: 1;
    border-radius: 3px;
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */

@media only screen and (max-width: 768px) {
    .rnn-team-wrap .rnn-employee {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

@media only screen and (min-width: 769px) and (max-width: 1024px) {
    .rnn-team-wrap .rnn-employee {
        flex: 0 0 calc(50% - 10px) !important;
        max-width: calc(50% - 10px) !important;
    }
}

@media only screen and (max-width: 448px) {
    .rnn-employee .rnn-employee-image img {
        width: 80px !important;
        height: 80px !important;
    }
}