/**
 * Team Grid Shortcode Styles
 * Version: 1.1.0
 */

.team-grid-shortcode {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

.team-grid-sc {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    align-items: stretch;
    margin-bottom: 40px;
}

.team-grid-sc.first-row {
    justify-content: center;
}

.team-grid-sc.remaining-rows {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: stretch;
    justify-content: center;
}

.image_card_wrapper_sc {
    background: white;
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 260px;
}

.image_card_wrapper_sc.first-row {
    flex: 0 0 calc(25% - 22.5px);
    max-width: calc(25% - 22.5px);
}

.image_card_wrapper_sc.remaining-rows {
    flex: 0 0 calc(25% - 22.5px);
    max-width: calc(25% - 22.5px);
    width: calc(25% - 22.5px);
}

.image_card_image_wrapper_sc {
    line-height: 0;
    position: relative;
}

.image_card_image_sc {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.image_card_content_wrapper_sc {
    background-color: #eeeeee;
    padding: 20px 20px 30px;
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.image_card_icon_wrapper_sc {
    position: absolute;
    top: -36px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.image_card_icon_sc {
    width: 72px;
    height: 72px;
}

.image_card_icon_sc img {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.image_card_inner_content_wrapper_sc {
    margin-top: 36px;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.image_card_title_sc {
    margin: 0;
    padding-bottom: 0;
    font-size: 20px;
    text-decoration: none;
	text-transform: none!important;
    text-decoration: none;
	color: #316cb4!important;

}

.image_card_title_sc h3{
	color: #316cb4!important;
	font-size: 20px;
	
}

.image_card_content_sc p {
    margin: 0;
    font-weight: bold;
    font-style: italic;
    text-decoration: none;
}

.team-member-link_sc {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.team-member-link_sc:hover {
    color: inherit;
}

/* Tablet Styles */
@media (max-width: 1024px) and (min-width: 769px) {
    .image_card_wrapper_sc.first-row {
        flex: 0 0 calc(33.333% - 20px);
        max-width: calc(33.333% - 20px);
    }
    
    .team-grid-sc.remaining-rows {
        gap: 25px;
    }
    
    .image_card_wrapper_sc.remaining-rows {
        flex: 0 0 calc(33.333% - 16.67px);
        max-width: calc(33.333% - 16.67px);
        width: calc(33.333% - 16.67px);
    }
    
    .team-grid-sc {
        gap: 25px;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .team-grid-sc.first-row,
    .team-grid-sc.remaining-rows {
        display: flex;
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .image_card_wrapper_sc.first-row,
    .image_card_wrapper_sc.remaining-rows {
        flex: none;
        max-width: 100%;
        min-width: auto;
        width: 100%;
    }
    
    .image_card_image_sc {
        height: 200px;
    }
    
    .image_card_title_sc {
        font-size: 1.2rem;
    }
    
    .image_card_content_sc p {
        font-size: 1rem;
    }
}

/* Very small mobile devices */
@media (max-width: 480px) {
    .image_card_wrapper_sc.first-row,
    .image_card_wrapper_sc.remaining-rows {
        min-width: 260px;
    }
    
    .image_card_title_sc {
        font-size: 1.1rem;
    }
    
    .image_card_content_sc p {
        font-size: 0.95rem;
    }
}

/* Medium screens - 2 per row for both */
@media (max-width: 900px) and (min-width: 769px) {
    .image_card_wrapper_sc.first-row {
        flex: 0 0 calc(50% - 15px);
        max-width: calc(50% - 15px);
    }
    
    .image_card_wrapper_sc.remaining-rows {
        flex: 0 0 calc(50% - 12.5px);
        max-width: calc(50% - 12.5px);
        width: calc(50% - 12.5px);
    }
}