/* ============================================
   Petsure Author Cards Widget
   Shared structure compatible with Progress Bars expertise overlay
   ============================================ */

.elementor-widget-petsure_author_cards_element {
    height: 100%;
}

.petsure-author-cards-wrapper {
    position: relative;
    display: inline-block;
    max-width: 100%;
    width: 100%;
    height: 100%;
}

/* ===== Image Wrap ===== */
.petsure-author-cards-image-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: visible;
    min-height: 450px;
}

.petsure-author-cards-image-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 20px;
}

.petsure-author-cards-img {
    display: block;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    border-radius: 20px;
    position: absolute;
    top: 0;
    left: 0;
}

/* ===== Overlay Card (floating box over the image) ===== */
.petsure-author-cards-overlay {
    position: absolute;
    z-index: 3;
    bottom: 30px;
    right: -30px;
    min-width: 220px;
    max-width: 260px;
    background: var(--petsure-white);
    border-radius: 12px;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* ===== Avatars ===== */
.petsure-author-cards-avatars {
    display: flex;
    align-items: center;
    gap: 0;
}

.petsure-author-cards-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--petsure-white);
    overflow: hidden;
    margin-right: -10px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.petsure-author-cards-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.petsure-author-cards-avatar-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--petsure-primary);
    color: var(--petsure-white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.petsure-author-cards-avatar-icon svg,
.petsure-author-cards-avatar-icon i {
    width: 16px;
    height: 16px;
    color: currentColor;
    fill: currentColor;
    outline: currentColor;
    font-size: 16px;
}

/* ===== Text ===== */
.petsure-author-cards-text {
    color: var(--petsure-primary);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    display: block;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 767px) {
    .petsure-author-cards-overlay {
        position: relative;
        bottom: 0;
        right: 0;
        margin: 16px auto 0;
        width: 100%;
        max-width: 100%;
        justify-content: center;
    }

    .petsure-author-cards-image-inner {
        position: relative;
        min-height: 300px;
    }
}

@media (max-width: 575px) {
    .petsure-author-cards-image-wrap {
        min-height: 300px;
    }

    .petsure-author-cards-overlay {
        bottom: -20px;
        right: -20px;
        min-width: 180px;
        padding: 16px 18px;
    }

    .petsure-author-cards-avatar {
        width: 34px;
        height: 34px;
    }

    .petsure-author-cards-avatar-icon {
        width: 34px;
        height: 34px;
    }
}