/* ==========================================
   Our Team Frontend Stylesheet
   ========================================== */

/* Grid layout for displaying all members */
.our-team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    width: 100%;
    box-sizing: border-box;
}

/* Card container design */
.our-team-card {
    --our-team-hover-scale: 1;
    --our-team-hover-translate-x: 0px;
    --our-team-hover-translate-y: 0px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 16px;
    padding: 30px 24px;
    box-sizing: border-box;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.08);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
                box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
                background-color 0.4s ease, 
                border-color 0.4s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Card Hover effect applying custom CSS variables */
.our-team-card:hover {
    transform: scale(var(--our-team-hover-scale)) translate(var(--our-team-hover-translate-x), var(--our-team-hover-translate-y));
    box-shadow: 0 16px 48px 0 rgba(31, 38, 135, 0.15);
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Profile photo wrapper */
.our-team-card-image-wrap {
    width: 130px;
    height: 130px;
    aspect-ratio: 1/1;
    border-radius: 50%;
    margin-bottom: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 3px solid #ffcc00;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Profile image */
.our-team-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* Image zoom effect on card hover */
.our-team-card:hover .our-team-card-image {
    transform: scale(1.05);
}

/* Content wrapper */
.our-team-card-content {
    width: 100%;
}

/* Full name */
.our-team-card-name {
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    color: #1a1e29;
    margin: 0 0 8px 0;
    transition: color 0.3s ease;
}

/* Position / Role */
.our-team-card-position {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #636b7f;
    margin: 0 0 16px 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Social media links container */
.our-team-card-socials {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
    flex-wrap: wrap;
}

/* Social link buttons */
.our-team-social-link {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #f3f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4b5262;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-sizing: border-box;
    text-decoration: none;
}

/* SVG icons */
.our-team-social-link svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    transition: stroke 0.3s ease;
}

/* Custom social media icon image */
.our-team-custom-social-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

/* Social hovers */
.our-team-social-link:hover {
    background-color: #1a1e29;
    color: #ffffff;
    transform: translateY(-3px);
}

.our-team-social-link:hover svg {
    stroke: #ffffff;
}

/* Specific default brand colors on hover for premium styling */
.our-team-social-link.our-team-social-facebook:hover {
    background-color: #1877f2;
    border-color: #1877f2;
}
.our-team-social-link.our-team-social-linkedin:hover {
    background-color: #0077b5;
    border-color: #0077b5;
}
.our-team-social-link.our-team-social-twitter:hover {
    background-color: #000000;
    border-color: #000000;
}
.our-team-social-link.our-team-social-whatsapp:hover {
    background-color: #25d366;
    border-color: #25d366;
}

/* Error/Empty states */
.our-team-no-members {
    text-align: center;
    color: #8a92a6;
    font-style: italic;
    padding: 20px;
}

/* Frontend Live Search Bar Styling */
.our-team-search-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    width: 100%;
    box-sizing: border-box;
}

.our-team-search-input {
    width: 100%;
    max-width: 480px;
    padding: 12px 24px;
    font-size: 15px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1a1e29;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    text-align: center;
    box-sizing: border-box;
}

.our-team-search-input::placeholder {
    color: #9ca3af;
}

.our-team-search-input:focus {
    border-color: #fbc02d; /* Matching gold highlight */
    box-shadow: 0 0 0 3px rgba(251, 192, 45, 0.15);
    background: #ffffff;
}
