/* ===============================
   TEAM STYLING — CLEAN & UPDATED
================================ */

/* Prevent email line breaks */
.team-email {
    white-space: nowrap;
    display: inline-block;
}

/* ---------- Team Column as Responsive Grid (if used elsewhere) ---------- */
.team-column {
    flex: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

/* Turn all Partnerships team columns into one grid */
.partnerships-team .wp-block-columns {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

/* Disable WP Columns inner width rules */
.partnerships-team .wp-block-column {
    flex-basis: auto !important;
    max-width: 100% !important;
}

/* ---------- Team Photos (Square, Centered, Uniform) ---------- */

.partnerships-team .team-photo {
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 12px;          /* centers the frame in the card */
    background: #fff;             /* optional */
    overflow: hidden;             /* keeps the square clean */
}

/* Normalize Gutenberg image margins */
.partnerships-team .wp-block-image {
    margin: 0 auto 12px !important;
}

/* Image inside the photo frame */
.partnerships-team .team-photo img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;          /* or 'cover' if you prefer cropping */
    object-position: center;
    display: block;
}

/* ---------- Team Cards (Equal Height) ---------- */
.card-block {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);

    display: flex;
    flex-direction: column;
    align-items: center;          /* <— THIS centers children horizontally */
    gap: 10px;
    margin-bottom: 25px;
    height: 100%;
}

/* Team name */
.card-block h5 {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
}


/* Single-card row: keep the card left, don’t stretch the column */
.single-card-row {
  justify-content: flex-start !important;
}

/* --- Single card row only --- */
.single-card-row .card-block {
    height: auto;
    max-width: 350px;
}

.single-card-row > .wp-block-column {
    flex: 0 0 auto;
}

/* ---------- Gravity Form Styling ---------- */
#gform_2 {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);

    max-width: 1000px;   /* adjust size as needed */
    margin: 0 auto;      /* centers it */
    width: 100%;
}

/* Form Fields */
#gform_2 .gfield input[type="text"],
#gform_2 .gfield input[type="email"],
#gform_2 .gfield input[type="url"],
#gform_2 .gfield textarea,
#gform_2 .gfield select {
    width: 100%;
    padding: 12px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    margin-bottom: 18px;
    transition: border-color 0.3s;
}

/* Field focus */
#gform_2 .gfield input:focus,
#gform_2 .gfield textarea:focus,
#gform_2 .gfield select:focus {
    border-color: #fc0;
    outline: none;
}

/* Submit Button */
#gform_2 .gform_footer input[type="submit"] {
    background: #fc0;
    color: #000;
    font-weight: 700;
    padding: 14px 30px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#gform_2 .gform_footer input[type="submit"]:hover {
    background: #000;
    color: #fc0;
}

/* ---------- Responsive ---------- */
@media screen and (max-width: 991px) {
    .partnerships-section {
        flex-direction: column;
    }
}
