/*
 Theme Name:   GeneratePress Child
 Description:  Business Marketing Engine's GeneratePress Child Theme
 Author URI:   http://businessmarketingengine.com/
 Template:     generatepress
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:         light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
 Text Domain:  generatepress-child
*/
.header-widget{width: 45%;}
.header-widget .sow-features-list .sow-features-feature h5{text-transform: uppercase; margin: 0;}
.header-widget .sow-features-list .sow-features-feature.sow-icon-container-position-right,
.inside-footer-widgets .sow-features-list .sow-features-feature.sow-icon-container-position-right{align-items: center !important;}
.header-widget .sow-features-list li:last-child{justify-content: flex-end;}
.inside-navigation .btn-login{background-color: #C79A00; padding: 1.1em; color: white; width: 135px; text-align: center; float: right;}
.main-navigation .main-nav ul li[class*="current-menu-"] > a{font-weight: 600;}
.main-navigation:not(.toggled) ul li:hover>ul{text-align: center;}
.uppercase .sow-headline-container .sow-headline, .uppercase-sub .sow-sub-headline{text-transform: uppercase;}
.letterspace2-sub .sow-sub-headline{letter-spacing: 2px;}
.newsletter-form form{display: flex; justify-content: space-evenly;}
.newsletter-form .gform-body{width: 80%;}
.newsletter-form .gform-footer{width: 15%; justify-content: flex-end; margin: 0 !important; padding: 0 !important;}
.newsletter-form .gform_wrapper.gravity-theme input[type=text],
.newsletter-form .gform_wrapper.gravity-theme input[type=email]{border-radius: 5px; padding: 11px ;}
.newsletter-form .gform_heading{display: none;}
.gform_wrapper.gravity-theme .gform_footer input{width: 162px; padding: 10px !important; border-radius: 5px;}
.custom-feature .sow-features-list .sow-features-feature h5{margin: 0.5em 0 !important;}
.custom-testimonials .so-widget-sow-editor-base{display: flex;flex-direction: column-reverse;}
.custom-testimonials .widget-title{color: #00004B; margin-bottom: 0;     display: inline-flex; justify-content: space-between;}
.custom-testimonials .widget-title::after{content: url('/wp-content/uploads/2025/12/5-stars.png'); position: relative; top: 4px;}
.custom-testimonials .textwidget img{margin-top: -2em;}
.mb-3{margin-bottom: 2.9em;}
.custom-tab .sow-tabs{flex-wrap: wrap; align-items: flex-start;}
.custom-tab .sow-tabs .sow-tabs-tab-container .sow-tabs-tab .sow-tab-icon-image{height: 68px; margin-right: 1em !important;}
.custom-tab .sow-tabs .sow-tabs-tab-container{width: 300px; align-items: stretch;}
.custom-tab .sow-tabs-tab-container .sow-tabs-tab .sow-tabs-title{position: relative;}
.custom-tab .sow-tabs-tab-container .sow-tabs-tab .sow-tabs-title::after{content:'>'; position: absolute; right: 0.5em; font-weight: 300;}
.custom-tab .sow-tabs .sow-tabs-tab-container{position: sticky; top: 2em; z-index: 10;}
.inside-footer-widgets .menu{font-size:  14px;}
.inside-footer-widgets .menu li:not(:last-child){margin-bottom: 5px;}
.inside-footer-widgets .sow-features-list .sow-features-feature h5.sow-features-feature-title{margin:0;}
.footer-bar{display: flex; align-items: center;}
.footer-bar .widget{margin:0;}
.footer-bar-align-right .copyright-bar{padding: 1.1em 0;}
.ow-button-base .sowb-button{border-radius: 8px !important;}
.siteorigin-widget-tinymce ol li {list-style-position: outside;padding: 0;}
.siteorigin-widget-tinymce ul li {list-style-type: disc;list-style-position: outside;padding: 0; margin-left: 1em;}

/* General layout for both team and board members */
.team-members, .board-members {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5em;  /* Increased gap between columns */
    width: 100%;
}

.board-members{
    gap: 1.2em;
}

/* Default layout for team member columns */
.team-member-column {
    width: calc(50% - 1.25em); /* Subtract half of the gap (2.5em / 2 = 1.25em) */
    max-width: calc(50% - 1.25em);  /* Ensure no column exceeds 50% width */
    box-sizing: border-box;
}

/* Team members box - with hover effect */
.team-member-box,
.board-member-box {
    position: relative;
    background: white;
    border-radius: 30px;
    box-shadow: 0px 42.5467px 25.528px rgba(0, 0, 0, 0.02), 0px 19.4499px 19.4499px rgba(0, 0, 0, 0.03), 0px 4.86248px 10.9406px rgba(0, 0, 0, 0.03);
    padding: 1.5em;
    overflow: hidden;
    transition: all 0.3s ease;
}
.board-member-box{
    padding: 1em;
}

/* On hover, show the content above the image */
.team-member-box:hover .team-member-hover-content {
    opacity: 1;
    visibility: visible;
}

.team-member-box:hover img {
    opacity: 0; /* Hide the image on hover */
}

/* Hover content: title, position, and description */
.team-member-hover-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background-color: white;
    padding: 1.5em;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    height: 100%;
    overflow: hidden;
}

.team-member-box h3,
.team-member-box p {
    text-align: center;
}
.team-member-hover-content .team-member-position{
    margin-bottom: 10px;
}
.team-member-box h3,
.board-member-column h3 {
    margin-bottom: 5px;
}

.board-member-column h3{
    font-size: 20px;
}
.board-member-column p{
    font-size: 15px !important;
}
.team-member-box p,
.board-member-column p {
    font-size: 19px;
    font-weight: 600;
    color: #1D1D1D;
    margin-bottom: 0;
}
.team-member-hover-content .team-member-description p{
    font-weight: normal;
    color: #7A7A7A;
    font-size: 16px;
    margin-bottom: 1em;
}

.team-member-hover-content h3,
.team-member-hover-content p,
.board-member-column h3,
.board-member-column p {
    text-align: center;
}

.team-member-description {
    max-height: 400px; /* Limit the height of the description */
    overflow-y: auto; /* Make it scrollable if the content is too long */
    font-size: 17px;
    line-height: 1.5;
    color: #7A7A7A;
}

/* Display image normally, hide it on hover */
.team-member-box img,
.board-member-box img {
    width: 100%;
    height: auto;
    transition: opacity 0.3s ease;
    border-radius: 18px;
    margin-bottom: 0.8em;
}
.board-member-box img{
    border-radius: 15px;
}

/* View LinkedIn button */
.view-linkedin-btn {
    display: block;
    text-align: center;
    background-color: #0070C0;
    color: #fff;
    padding: 10px 25px;
    text-decoration: none;
    border-radius: 3em;
    font-weight: 500;
    font-size: 13px;
    text-transform: uppercase;
    position: relative;
    max-width: 141px;
    margin-inline: auto;
    top: -2.8em;
    margin-bottom: -2em;
}
.view-linkedin-btn:hover {
    background-color: #ffc619;
}

@media (max-width: 1024px){
    .custom-tab .sow-tabs{flex-direction: column;}
    .custom-tab .sow-tabs .sow-tabs-tab-container {width: auto;gap: 1em; flex-direction: row;}
    .custom-tab .sow-tabs .sow-tabs-tab-container .sow-tabs-tab{font-size: 18px; width: 243px;}
    .custom-tab .sow-tabs-tab-container .sow-tabs-tab .sow-tabs-title::after{right: 0;}
    .custom-tab .sow-tabs .sow-tabs-tab-container .sow-tabs-tab .sow-tab-icon-image {height: 48px;}
}
@media (max-width: 768px){
	.header-widget{width: 76%; margin-inline: auto;}
	.inside-navigation .btn-login{display: none;}
	#panel-9-0-0-0{text-align: center;}
	.custom-feature .textwidget{margin-inline: auto;}
	.custom-testimonials .textwidget{min-height: unset;}
    .team-member-column {width: 100%; max-width: 100%;}
    .mb-3{margin-bottom: 0;}
	.footer-bar{justify-content: center;}
}
@media (max-width: 480px){
	.header-widget{display: none;}
	.sow-image-grid-wrapper .sow-image-grid-image{max-width: 100px;}
	.newsletter-form form{flex-direction: column;}
	.newsletter-form .gform-footer{margin-top: 1em !important; width: 100%; justify-content: center;}
	.newsletter-form .gform-body{margin-inline: auto;}
    .custom-tab .sow-tabs .sow-tabs-tab-container{flex-direction: column;}
    .custom-tab .sow-tabs .sow-tabs-tab-container .sow-tabs-tab {width: auto;}
    .custom-tab .sow-tabs .sow-tabs-panel-container .sow-tabs-panel {padding: 15px 0 0;}
}

/* For 'board' category - 3 columns */
@media (min-width: 769px) {
    .board-member-column {
        width: calc(33.33% - 0.9em); /* 3 columns for board category with adjusted gap */
        max-width: calc(33.33% - 0.9em);
    }
}

/* Adjust column width for larger screens */
@media (min-width: 769px) {
    .team-member-column {
        width: calc(50% - 1.25em); /* Adjusted to ensure columns fit correctly with 2.5em gap */
        max-width: calc(50% - 1.25em);
    }
}
