.thats-pets-team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.thats-pets-team-card {
    min-height: 100%;
    overflow: hidden;
    border-radius: 8px;
    background: #f7f0e6;
    box-shadow: 0 14px 34px rgba(77, 52, 33, 0.12);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.thats-pets-team-grid > .thats-pets-team-card:only-child {
    max-width: 320px;
}

.thats-pets-team-card__link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.thats-pets-team-card__media {
    position: relative;
    min-height: 420px;
}

.thats-pets-team-card__thumb {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #e8ddd0 0%, #cdb89f 100%);
}

.thats-pets-team-card__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.01);
    transition: transform 0.45s ease, filter 0.45s ease;
}

.thats-pets-team-card__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 8px;
    padding: 28px 18px 20px;
    color: #fff7f0;
    background: linear-gradient(180deg, rgba(64, 42, 28, 0) 0%, rgba(64, 42, 28, 0) 45%, rgba(64, 42, 28, 0.26) 68%, rgba(64, 42, 28, 0.92) 100%);
}

.thats-pets-team-card__title {
    margin: 0;
    font-size: clamp(1.35rem, 2vw, 1.7rem);
    line-height: 0.95;
    letter-spacing: -0.03em;
    font-weight: 500;
}

.thats-pets-team-card__position {
    margin: 0;
    color: rgba(255, 247, 240, 0.82);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.thats-pets-team-card:hover,
.thats-pets-team-card:focus-within {
    transform: translateY(-6px);
    box-shadow: 0 24px 46px rgba(77, 52, 33, 0.18);
}

.thats-pets-team-card:hover .thats-pets-team-card__overlay,
.thats-pets-team-card:focus-within .thats-pets-team-card__overlay {
    background: linear-gradient(180deg, rgba(64, 42, 28, 0) 0%, rgba(64, 42, 28, 0) 45%, rgba(64, 42, 28, 0.26) 68%, rgba(64, 42, 28, 0.92) 100%);
}

.thats-pets-team-card:hover .thats-pets-team-card__thumb img,
.thats-pets-team-card:focus-within .thats-pets-team-card__thumb img {
    filter: saturate(1.05);
    transform: scale(1.08);
}

.thats-pets-team-grid__empty,
.thats-pets-team-grid__notice {
    margin: 0;
}

.thats-pets-team-profile {
    display: grid;
    grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
    margin-top: 56px;
    margin-bottom: 72px;
}

.single-team .entry-title,
.single-team .page-title,
.single-team h1.entry-title,
.single-team .elementor-page-title {
    display: none;
}

.thats-pets-team-profile__media {
    overflow: hidden;
    border-radius: 4px;
}

.thats-pets-team-profile__image {
    display: block;
    width: 100%;
    height: auto;
}

.thats-pets-team-profile__body {
    max-width: 760px;
    color: #655344;
}

.thats-pets-team-profile__position {
    margin: 0 0 14px;
    color: #5c4938;
    font-size: 18px;
    line-height: 1.35;
}

.thats-pets-team-profile__title {
    margin: 0 0 18px;
    color: #5c4938;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    line-height: 1.05;
}

.thats-pets-team-profile__content {
    color: #756657;
    font-size: 18px;
    line-height: 1.45;
}

.thats-pets-team-profile__content > *:first-child {
    margin-top: 0;
}

.thats-pets-team-profile__content > *:last-child {
    margin-bottom: 0;
}

.thats-pets-team-profile__button-wrap {
    margin-top: 26px;
}

.thats-pets-team-profile .elementor-button.thats-pets-team-profile__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 24px;
    border-radius: 2px;
    background: #604a32;
    color: #fff7f0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.thats-pets-team-profile .elementor-button.thats-pets-team-profile__button:visited,
.thats-pets-team-profile .elementor-button.thats-pets-team-profile__button .elementor-button-text {
    color: #fff7f0;
}

.thats-pets-team-profile .elementor-button.thats-pets-team-profile__button:hover,
.thats-pets-team-profile .elementor-button.thats-pets-team-profile__button:focus {
    background: #4f3d2a;
    color: #fff7f0;
}

.thats-pets-team-profile .elementor-button.thats-pets-team-profile__button:hover .elementor-button-text,
.thats-pets-team-profile .elementor-button.thats-pets-team-profile__button:focus .elementor-button-text {
    color: #fff7f0;
}

.thats-pets-team-profile .elementor-button.thats-pets-team-profile__button:active {
    transform: translateY(1px);
}

@media (max-width: 640px) {
    .thats-pets-team-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .thats-pets-team-card__media {
        min-height: 360px;
    }

    .thats-pets-team-profile {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .thats-pets-team-profile__title {
        font-size: 2rem;
    }

    .thats-pets-team-profile__content {
        font-size: 16px;
    }
}
