/*!
Theme Name: Kadence Child
Theme URI: https://www.convylab.com
Template: kadence
Author: Munna Chowdhury
Author URI: https://www.convylab.com
Description: A Kadence child theme for Violet Therapeutics. For any help or support, contact munna@convylab.com. Want to utilize your website? Get a free consultation <a href="mailto:hello@munnatxt.com">hello@munnatxt.com</a>
Version: 1.0.0
License: GNU General Public License v3.0 (or later)
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: kadence-child
*/

/* Theme customization starts here
-------------------------------------------------------------- */

/* ============================= */
/* FILTER BUTTONS */
/* ============================= */

.team-filter {
    text-align: center;
    margin-bottom: 20px;
}

.filter-btn {
    padding: 0;
    margin: 0 15px 30px 15px;
    border: none;
    cursor: pointer;
    background: transparent;
    color: #912476;
    border-radius: 5px;
    font-size: 18px;
    transition: background 0.3s ease-in-out;
    font-weight: 600;
    text-transform: uppercase;
}

.filter-btn.active {
    /*background: #0073e6;*/
}

.filter-btn:focus, 
.filter-btn:hover {
    background: transparent !important;
    color: #652d90 !important;
    box-shadow: none;
}


/* ============================= */
/* TEAM GRID */
/* ============================= */

.team-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.team-item {
    width: 33.3333%;
    text-align: left;
    padding: 0 15px 30px 15px;
    cursor: pointer;
}


.team-item img {
    width: 100%;
    border-radius: 10px;
}

.team-item h3 {
    font-size: 22px;
    margin: 10px 0 5px;
    font-weight: 600;
    color: #912476;
}

.member-title {
    color: #331748;
    margin: 20px 0 -10px 0;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 600;
}

.team-portrait {
    display: block;
    position: relative;
    overflow: hidden;
}

.team-portrait:before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    inset: 0;
    background: rgb(255,255,255);
    background: radial-gradient(circle, rgba(255,255,255,0) 0%, rgba(145,36,117,.6) 84%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.team-portrait:hover:before {
    opacity: 1;
}

/* ============================= */
/* FULLSCREEN POPUP BACKGROUND */
/* ============================= */

.team-popup {
    display: none; /* Ensure popups are hidden initially */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(145, 35, 117, 0.9); /* Semi-transparent dark pink */
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0; /* Hide popups initially */
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

/* Show popup when active */
.team-popup.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

/* ============================= */
/* POPUP CONTENT BOX */
/* ============================= */

.popup-content {
    background: white;
    padding: 30px;
    text-align: left;
    max-width: 800px;
    width: 90%;
    position: relative;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3);
    max-height: 80vh;
	overflow-y: scroll;
}

/* POPUP TITLE */
.popup-content h2 {
    font-size: 22px;
    margin-bottom: 10px;
    font-weight: bold;
}

/* POPUP DESCRIPTION */
.popup-content p {
    font-size: 16px;
    color: #444;
    line-height: 1.6;
}

/* ============================= */
/* CLOSE BUTTON */
/* ============================= */

.popup-close {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 28px;
    cursor: pointer;
    color: #74687e;
    font-weight: bold;
    transition: color 0.3s ease-in-out;
}

.popup-close:hover {
    color: #331748;
}

/* ============================= */
/* LINKEDIN ICON */
/* ============================= */

.popup-content a img {
    width: 40px;
    margin-top: 15px;
    transition: transform 0.3s ease-in-out;
}

.popup-content a img:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    
    .team-item {
        width: 100%;
    }
    
}