/* ============================================
   Monarch Firearms Solutions
   Team Page Styles
   ============================================ */

/* --- Hero Section --- */

.page-id-789 #main-content .et_pb_section:first-child {
    padding-top: 80px;
    padding-bottom: 40px;
}

.page-id-789 #main-content .et_pb_section:first-child h1 {
    font-size: clamp(2rem, 4.5vw, 2.75rem) !important;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.page-id-789 #main-content .et_pb_section:first-child .et_pb_text_inner p {
    margin-bottom: 0;
}

/* --- Close gap between hero and cards --- */

.page-id-789 #main-content .et_pb_section_1 {
    padding-top: 0 !important;
}

/* --- Team Grid --- */

.page-id-789 #main-content .et_pb_section_1 > .et_pb_row {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
    max-width: 1080px;
    margin-bottom: 1.5rem !important;
    padding: 0;
}

/* Override Divi column widths */
.page-id-789 #main-content .et_pb_section_1 > .et_pb_row > .et_pb_column {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}

/* --- Hide Empty Columns --- */

.page-id-789 #main-content .et_pb_section_1 > .et_pb_row > .et_pb_column_empty {
    display: none;
}

/* --- Hide Monograms --- */

.monarch-monogram {
    display: none;
}

/* --- Card Style --- */

.page-id-789 #main-content .et_pb_team_member {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 10px;
    padding: 2rem 2rem 1.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.page-id-789 #main-content .et_pb_team_member:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1), 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* --- Left Accent Bar --- */

.page-id-789 #main-content .et_pb_team_member::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #2c3e50, #4a6274);
}

/* --- Name --- */

.page-id-789 #main-content .et_pb_team_member h4,
.page-id-789 #main-content .et_pb_team_member .et_pb_module_header {
    font-size: 1.3rem !important;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

/* --- Position --- */

.page-id-789 #main-content p.et_pb_member_position {
    font-size: 0.8rem !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #4a6274 !important;
    background: none;
    display: block;
    padding: 0 !important;
    margin: 0 !important;
    border: none;
}

/* Separator as its own element for precise spacing */
.page-id-789 #main-content p.et_pb_member_position::after {
    content: '';
    display: block;
    margin-top: 0.75rem;
    border-bottom: 1px solid #e8e8e8;
}

/* --- Description --- */

.page-id-789 #main-content .et_pb_team_member_description {
    text-align: left;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.page-id-789 #main-content .et_pb_team_member_description > div {
    margin-top: 0.75rem;
}

.page-id-789 #main-content .et_pb_team_member_description p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
    margin: 0;
    padding: 0;
}

/* --- Responsive --- */

@media (max-width: 980px) {
    .page-id-789 #main-content .et_pb_section_1 > .et_pb_row {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .page-id-789 #main-content .et_pb_team_member {
        padding: 1.75rem 1.5rem 1.5rem;
    }
}

@media (max-width: 767px) {
    .page-id-789 #main-content .et_pb_section:first-child {
        padding-top: 50px;
        padding-bottom: 30px;
    }

    .page-id-789 #main-content .et_pb_section_1 > .et_pb_row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .page-id-789 #main-content .et_pb_team_member {
        padding: 1.5rem 1.25rem 1.25rem;
    }

    .page-id-789 #main-content .et_pb_team_member h4,
    .page-id-789 #main-content .et_pb_team_member .et_pb_module_header {
        font-size: 1.15rem !important;
    }
}
