/**
 * CPS Team Grid Styles
 */

/* Remove Fusion Builder column margins */
.fusion_builder_column:has(.cps-team-grid) {
    --awb-margin-bottom-large: 0px !important;
    --awb-margin-top-large: 0px !important;
    margin-bottom: 0 !important;
    margin-top: 0 !important;
}

.fusion-column-wrapper:has(.cps-team-grid) {
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    padding: 0 !important;
}

.cps-team-grid {
    width: 100vw;
    margin: 0 !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
}

.cps-team-grid-container {
    max-width: var(--awb-content-max-width, 1280px);
    margin: 0 auto;
    padding: 0 var(--awb-content-padding-left, 30px) 0 var(--awb-content-padding-right, 30px);
}

/* Header */
.cps-team-grid-header {
    text-align: center;
    margin-bottom: 56px;
}

.cps-team-grid-heading {
    font-family: refrigerator-deluxe, Impact, Charcoal, sans-serif !important;
    font-size: 48px !important;
    font-weight: 900 !important;
    line-height: 1.1 !important;
    text-transform: uppercase !important;
    letter-spacing: -0.02em !important;
    margin: 0 0 12px 0 !important;
}

.cps-team-grid-subheading {
    font-family: DIN, sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.4;
    margin: 0;
    opacity: 0.9;
}

/* Grid Layout */
.cps-team-grid-wrap {
    display: grid;
    gap: 48px 32px;
}

.cps-team-grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.cps-team-grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.cps-team-grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Team Member Card */
.cps-team-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Circular Image */
.cps-team-member-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 20px;
    flex-shrink: 0;
    border: 4px solid transparent;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.cps-team-member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cps-team-member:hover .cps-team-member-image {
    border-color: #D41F38;
    transform: scale(1.05);
}

/* Name */
.cps-team-member-name {
    font-family: refrigerator-deluxe, Impact, Charcoal, sans-serif !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    margin: 0 0 8px 0 !important;
}

/* Job Title */
.cps-team-member-title {
    font-family: refrigerator-deluxe, Impact, Charcoal, sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 16px 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Bio */
.cps-team-member-bio {
    font-family: DIN, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    margin: 0;
}

.cps-team-member-bio p {
    margin: 0 0 12px 0;
}

.cps-team-member-bio p:last-child {
    margin-bottom: 0;
}

/* Tablet */
@media (max-width: 1024px) {
    .cps-team-grid {
        padding: 60px 0;
    }

    .cps-team-grid-header {
        margin-bottom: 48px;
    }

    .cps-team-grid-heading {
        font-size: 40px !important;
    }

    .cps-team-grid-subheading {
        font-size: 18px;
    }

    .cps-team-grid-cols-3,
    .cps-team-grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .cps-team-member-image {
        width: 180px;
        height: 180px;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .cps-team-grid {
        padding: 40px 0;
    }

    .cps-team-grid-header {
        margin-bottom: 40px;
    }

    .cps-team-grid-heading {
        font-size: 32px !important;
    }

    .cps-team-grid-subheading {
        font-size: 16px;
    }

    .cps-team-grid-wrap {
        gap: 40px 24px;
    }

    .cps-team-grid-cols-2,
    .cps-team-grid-cols-3,
    .cps-team-grid-cols-4 {
        grid-template-columns: 1fr;
    }

    .cps-team-member-image {
        width: 160px;
        height: 160px;
    }

    .cps-team-member-name {
        font-size: 20px !important;
    }

    .cps-team-member-title {
        font-size: 14px;
    }
}
