/* =============================================
   Petsure Team Widget — Petona Style
   Order: Info → Image → Social overlay
   ============================================= */

/* === Grid === */
.petsure-team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* === Card === */
.petsure-team-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: box-shadow 0.4s ease, transform 0.4s ease;
    animation: petsure-team-fadeInUp 0.6s ease both;
    animation-delay: var(--petsure-team-delay);
}

.petsure-team-card:hover {
    box-shadow: 0 16px 48px rgba(var(--petsure-primary-rgb), 0.12);
    transform: translateY(-6px);
    z-index: 5;
}

/* === FadeInUp Animation === */
@keyframes petsure-team-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Body (info first) === */
.petsure-team-body {
    background: var(--petsure-secondary);
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex: 1;
    border-bottom: 1px solid rgba(var(--petsure-primary-rgb), 0.06);
}

.petsure-team-name {
    font-size: 20px !important;
    font-weight: 700;
    color: var(--petsure-primary) !important;
    margin: 0 !important;
    line-height: 1.3;
    letter-spacing: -0.02em;
    transition: color 0.3s ease, text-decoration-color 0.3s ease;
}

.petsure-team-name-link {
    text-decoration: none;
    color: inherit;
}

.petsure-team-name-link:hover .petsure-team-name {
    color: var(--petsure-accent);
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: var(--petsure-accent);
}

.petsure-team-position {
    font-size: 13px;
    color: var(--petsure-text);
    margin: 0 !important;
    line-height: 1.4;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* === Specialties === */
.petsure-team-specialties {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

.petsure-team-specialty {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.04em;
    color: var(--petsure-white);
    background: var(--petsure-accent);
    border: 1px solid var(--petsure-accent);
    padding: 5px 10px;
    border-radius: 999px;
}

/* === Country with flag === */
.petsure-team-country {
    font-size: 15px;
    color: var(--petsure-accent);
    margin: 0 !important;
    line-height: 1.4;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.petsure-team-country .fi {
    width: 20px;
    height: 15px;
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(var(--petsure-primary-rgb), 0.15);
}

/* === Image Wrap === */
.petsure-team-image-wrap {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.petsure-team-image-wrap img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 1 / 1.08;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.petsure-team-card:hover .petsure-team-image-wrap img {
    transform: scale(1.05);
}

/* === Social Overlay (Petona style) === */
.petsure-team-social {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(30px);
    transition: all 0.4s ease-in-out;
}

.petsure-team-card:hover .petsure-team-social {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.petsure-team-social a {
    width: 38px;
    height: 38px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: var(--petsure-accent);
    color: var(--petsure-white);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
}

.petsure-team-social a:hover {
    background: var(--petsure-primary);
    color: var(--petsure-white);
}

.petsure-team-social a i,
.petsure-team-social a svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

/* =============================================
   SLIDER LAYOUT (Swiper)
   ============================================= */

.petsure-team-swiper-wrapper {
    position: relative;
    min-width: 0;
}

.petsure-team-swiper-wrapper.petsure-team-has-outside-arrows {
    display: flex;
    align-items: center;
    gap: 16px;
}

.petsure-team-swiper {
    overflow: hidden;
    width: 100%;
}

.petsure-team-swiper .swiper-wrapper.petsure-swiper-static {
    gap: 20px !important;
}

.petsure-team-swiper .swiper-slide {
    height: auto;
}

.petsure-team-swiper .swiper-slide>.petsure-team-card {
    animation: none;
    height: 100%;
}

/* Swiper arrows */
.petsure-team-arrow {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--petsure-primary);
    color: var(--petsure-white);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    flex-shrink: 0;
    z-index: 10;
    border: 2px solid var(--petsure-primary);
}

.petsure-team-arrow:hover {
    background: var(--petsure-accent);
    border-color: var(--petsure-accent);
    transform: scale(1.1);
}

/* Inside arrows positioned absolute */
.petsure-team-swiper .petsure-team-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.petsure-team-swiper .petsure-team-arrow:hover {
    transform: translateY(-50%) scale(1.1);
}

.petsure-team-swiper .petsure-team-prev {
    left: 12px;
}

.petsure-team-swiper .petsure-team-next {
    right: 12px;
}

/* Dots */
.petsure-team-dots {
    position: relative;
    bottom: auto !important;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.petsure-team-dots .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(var(--petsure-primary-rgb), 0.3);
    opacity: 1;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.petsure-team-dots .swiper-pagination-bullet-active {
    width: 28px;
    border-radius: 5px;
    background: var(--petsure-primary);
}

/* ===== Empty State ===== */
.petsure-empty-state {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
    background: rgba(var(--petsure-accent-rgb), 0.03);
    border: 1px dashed rgba(var(--petsure-primary-rgb), 0.12);
    border-radius: var(--petsure-border-radius-lg);
    max-width: 420px;
    margin: auto;
    width: 100%;
}

.petsure-empty-state-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(var(--petsure-accent-rgb), 0.08);
    border-radius: 50%;
    font-size: 32px;
    color: var(--petsure-accent);
    margin-bottom: 20px;
}

.petsure-empty-state-icon i {
    font-size: 32px;
}

.petsure-empty-state-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--petsure-primary);
    margin: 0 0 8px !important;
    line-height: 1.3;
}

.petsure-empty-state-text {
    font-size: 14px;
    color: var(--petsure-text);
    opacity: 0.7;
    line-height: 1.6;
    max-width: 300px;
    margin: 0 auto !important;
}

/* === Responsive === */
@media (max-width: 1024px) {
    .petsure-team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .petsure-team-grid {
        grid-template-columns: 1fr;
    }

    .petsure-team-body {
        padding: 18px 14px 10px;
    }

    .petsure-team-name {
        font-size: 18px;
    }
}