/* =========================================
   Researcher Search
========================================= */

.researcher-search-box {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-bottom: 35px;
}

#researcher-search {
    width: 400px;
    height: 45px;
    padding: 0 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    outline: none;
}

#researcher-search:focus {
    border-color: #1e73be;
}

#researcher-search-button {
    height: 45px;
    padding: 0 25px;
    border: none;
    border-radius: 5px;
    background-color: #1e73be;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

#researcher-search-button:hover {
    background-color: #155a96;
}
/* =========================================
   Researcher Grid
========================================= */

.researcher-profile-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.researcher-profile-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    padding: 25px 20px;
    text-align: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.researcher-profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.10);
}

.researcher-profile-card a {
    text-decoration: none !important;
}

.researcher-profile-image {
    width: 180px;
    height: 180px;
    margin: 0 auto 20px;
}

.researcher-profile-image img {
    width: 180px !important;
    height: 180px !important;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    border-radius: 50%;
}

.researcher-profile-name {
    margin: 0 !important;
    font-size: 18px !important;
    line-height: 1.4;
    font-weight: 600;
}

#researcher-no-results {
    text-align: center;
    font-size: 18px;
    margin-top: 30px;
}

/* =========================================
   Tablet
========================================= */

@media (max-width: 992px) {

    .researcher-profile-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

/* =========================================
   Mobile
========================================= */

@media (max-width: 600px) {

    .researcher-search-box {
        flex-direction: column;
    }

    #researcher-search {
        width: 100%;
    }

    #researcher-search-button {
        width: 100%;
    }

    .researcher-profile-grid {
        grid-template-columns: 1fr;
    }

}

/* =========================================
   Researcher Search Box
========================================= */

.researcher-search-box {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: stretch !important;
    gap: 10px !important;
    margin-bottom: 35px !important;
    width: 100% !important;
}

/* Search Input */
.researcher-search-box #researcher-search {
    width: 400px !important;
    height: 46px !important;
    min-height: 46px !important;
    padding: 0 15px !important;
    margin: 0 !important;
    border: 1px solid #ddd !important;
    border-radius: 5px !important;
    box-sizing: border-box !important;
    font-size: 16px !important;
    line-height: 46px !important;
    vertical-align: middle !important;
}

/* Search Button */
.researcher-search-box #researcher-search-button {
    height: 46px !important;
    min-height: 46px !important;
    padding: 0 25px !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 5px !important;
    background-color: #1e73be !important;
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    line-height: 46px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    vertical-align: middle !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease !important;
}

/* Button Hover */
.researcher-search-box #researcher-search-button:hover {
    background-color: #155a96 !important;
}

/* =========================================
   Mobile
========================================= */

@media (max-width: 600px) {

    .researcher-search-box {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .researcher-search-box #researcher-search {
        width: 100% !important;
    }

    .researcher-search-box #researcher-search-button {
        width: 100% !important;
    }
}

.post-thumbnail {
    margin-top: -105px;
    display: inline-block;
}