.ptfc-team-section,
.ptfc-team-section * {
    box-sizing: border-box;
}

.ptfc-team-section {
    width: 100%;
    color: var(--ptfc-front-text);
}

.ptfc-section-head {
    margin: 0 0 28px;
}

.ptfc-section-title {
    margin: 0;
    color: var(--ptfc-heading-color);
    font-size: var(--ptfc-heading-size);
    line-height: 1.2;
    font-weight: 700;
}

.ptfc-section-description {
    margin: 10px 0 0;
    max-width: 760px;
    color: var(--ptfc-section-text);
    font-size: 16px;
    line-height: 1.7;
}

.ptfc-grid {
    display: grid;
    grid-template-columns: repeat(var(--ptfc-desktop-cols), minmax(0, 1fr));
    gap: var(--ptfc-gap);
    align-items: stretch;
}

.ptfc-card {
    position: relative;
    min-width: 0;
    height: var(--ptfc-card-height);
    perspective: 1300px;
    border-radius: var(--ptfc-radius);
    transition: transform 240ms ease;
}

.ptfc-card:hover,
.ptfc-card:focus-within {
    transform: translateY(-6px);
}

.ptfc-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform var(--ptfc-flip-speed) cubic-bezier(.2,.7,.2,1);
    border-radius: var(--ptfc-radius);
}

.ptfc-card.is-flipped .ptfc-card-inner {
    transform: rotateY(180deg);
}

.ptfc-face {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 1px solid var(--ptfc-border);
    border-radius: var(--ptfc-radius);
    overflow: hidden;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    box-shadow: 0 var(--ptfc-shadow-y) var(--ptfc-shadow-blur) var(--ptfc-shadow);
    transition: border-color 240ms ease, box-shadow 240ms ease, background-color 240ms ease;
}

.ptfc-card:hover .ptfc-face,
.ptfc-card:focus-within .ptfc-face,
.ptfc-card.is-flipped .ptfc-face {
    border-color: var(--ptfc-accent);
    box-shadow: 0 var(--ptfc-shadow-y) var(--ptfc-shadow-blur) var(--ptfc-hover-shadow);
}

.ptfc-front {
    background: var(--ptfc-card-bg);
    color: var(--ptfc-front-text);
}

.ptfc-back {
    transform: rotateY(180deg);
    background: var(--ptfc-accent);
    color: var(--ptfc-back-text);
}

.ptfc-front-content,
.ptfc-back-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 30px 24px;
    text-align: center;
}

.ptfc-photo {
    display: block;
    width: var(--ptfc-image-size);
    height: var(--ptfc-image-size);
    flex: 0 0 var(--ptfc-image-size);
    object-fit: cover;
    object-position: center;
    border-radius: 999px !important;
    border: 4px solid rgba(255,255,255,.92);
    box-shadow: 0 6px 20px rgba(0,0,0,.12);
    margin: 0 auto 28px;
}

.ptfc-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef3f6;
    color: var(--ptfc-accent);
    font-size: calc(var(--ptfc-image-size) * .42);
    font-weight: 700;
}

.ptfc-member-copy {
    width: 100%;
    margin-bottom: auto;
}

.ptfc-name,
.ptfc-back-name {
    margin: 0;
    font-size: var(--ptfc-name-size);
    line-height: 1.3;
    font-weight: 700;
}

.ptfc-name {
    color: var(--ptfc-name);
}

.ptfc-designation,
.ptfc-back-designation {
    margin: 10px 0 0;
    font-size: var(--ptfc-designation-size);
    line-height: 1.5;
}

.ptfc-designation {
    color: var(--ptfc-designation);
}

.ptfc-view-button,
.ptfc-back-button {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    border-radius: 7px;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.ptfc-view-button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 24px;
    padding: 11px 15px;
    background: var(--ptfc-button-bg);
    color: var(--ptfc-button-text);
    box-shadow: 0 5px 14px rgba(0,0,0,.12);
}

.ptfc-view-button:hover,
.ptfc-view-button:focus-visible {
    background: var(--ptfc-button-hover);
    transform: translateY(-2px);
    outline: none;
}

.ptfc-eye {
    font-size: 12px;
    line-height: 1;
}

.ptfc-back-content {
    justify-content: center;
}

.ptfc-back-name {
    color: var(--ptfc-back-text);
    max-width: 100%;
}

.ptfc-back-designation {
    color: var(--ptfc-back-text);
    opacity: .86;
}

.ptfc-contact-list {
    width: 100%;
    margin: 28px 0 0;
    font-size: var(--ptfc-contact-size);
    line-height: 1.55;
}

.ptfc-contact-item {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin: 9px 0;
    color: var(--ptfc-back-text) !important;
    text-decoration: none !important;
    overflow-wrap: anywhere;
}

.ptfc-contact-item:hover,
.ptfc-contact-item:focus-visible {
    text-decoration: underline !important;
    outline: none;
}

.ptfc-extra {
    margin: 18px auto 0;
    max-width: 92%;
    color: var(--ptfc-back-text);
    opacity: .9;
}

.ptfc-back-button {
    margin-top: 24px;
    padding: 10px 15px;
    background: rgba(255,255,255,.95);
    color: var(--ptfc-accent);
}

.ptfc-back-button:hover,
.ptfc-back-button:focus-visible {
    transform: translateY(-2px);
    background: #fff;
    outline: 2px solid rgba(255,255,255,.55);
    outline-offset: 3px;
}

.ptfc-empty {
    padding: 18px 20px;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    background: #fff;
}

@media (max-width: 1024px) {
    .ptfc-grid {
        grid-template-columns: repeat(var(--ptfc-tablet-cols), minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .ptfc-grid {
        grid-template-columns: repeat(var(--ptfc-mobile-cols), minmax(0, 1fr));
    }
    .ptfc-card {
        height: max(var(--ptfc-card-height), 340px);
    }
    .ptfc-front-content,
    .ptfc-back-content {
        padding: 26px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ptfc-card,
    .ptfc-card-inner,
    .ptfc-face,
    .ptfc-view-button,
    .ptfc-back-button {
        transition-duration: 0.01ms !important;
    }
}
