/*
 Theme Name:   Eduma Child
 Theme URI:    http://educationwp.thimpress.com/
 Description:  Eduma Child Theme
 Author:       ThimPress
 Author URI:   http://thimpress.com
 Template:     eduma
 Version:      1.0.0
 Text Domain:  eduma-child
*/
@media (min-width: 1025px) and (max-width: 1366px) {
    .navigation .navbar-nav>li>a, .navigation .navbar-nav>li>span {
        padding: 20px 18px;
    }
}

.team-container {
    max-width: 1200px;
    margin: auto;
    padding: 50px 20px;
}

.team-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 36px;
    font-weight: 700;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    align-items: stretch;  /* make grid items equal height */
}


.team-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    transition: 0.3s;

    display: flex;
    flex-direction: column;
    justify-content: space-between; /* pushes button to bottom */
    align-items: center;            /* centers image, name, tagline, etc. */
    height: 100%;                   /* equal height cards */
}

.team-card img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    display: block;      /* ensure it's a block element */
    margin-left: auto;   /* center horizontally */
    margin-right: auto;  /* center horizontally */
}


.team-card:hover {
    transform: translateY(-5px);
}

.tagline {
    font-style: italic;
    color: #666;
    margin-bottom: 10px;
    font-size: 11px; /* smaller tagline */
}
.tagline, .tagline-popup {
    font-style: italic;
    color: #666;
    margin-bottom: 10px;
    font-size: 11px; /* smaller tagline */
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
/* Remove load more button styling since it’s not needed */
.load-more {
    display: none;
}


.bio-btn,
.load-more {
    background: #0073aa;
    border: none;
    padding: 10px 22px;
    color: #fff;
    border-radius: 6px;
    margin-top: 10px;
    cursor: pointer;
}
.bio-btn:hover,
.load-more:hover {
    background: #005f8c;
}

/* modal */
.modal-overlay {
    position: fixed;
    top:0; left:0;
    width:100%; height:100%;
    background: rgba(0,0,0,0.65);
    display:flex;
    justify-content:center;
    align-items:center;
    padding:20px;
    z-index: 99999;
}

.modal {
    background:#fff;
    max-width:800px;
    padding:35px;
    border-radius:12px;
    position:relative;
    text-align: center; /* Center all popup content */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-close {
    position:absolute;
    top:12px; right:18px;
    cursor:pointer;
    font-size:26px;
}

/* Popup image */
.popup-img-wrapper {
    text-align: center;
    margin-bottom: 20px;
}

.popup-img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #eee;
    margin-bottom: 20px;
}

/* Popup text content */
.modal h2 {
    font-size: 26px;
    margin-bottom: 8px;
}

.modal p {
    margin: 8px 0;
    line-height: 1.6;
}

.popup-contact {
    margin-top: 0px;
    font-size: 16px;
    text-align: center;
}

.popup-contact a {
    color: #0073aa;
    font-weight: 600;
    text-decoration: none;
}

.popup-contact a:hover {
    text-decoration: underline;
}

.bio-text {
    font-weight:bold;
}
