/* --------------------------------------------------------------
# Team Sizing & Consistency Styles
--------------------------------------------------------------
This file ensures team cards and images have uniform dimensions
across all screen sizes and devices.
-------------------------------------------------------------- */

/* Team Member Card - Equal Heights */
.team .member {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin-bottom: 30px;
}

/* Team Member Image Container */
.team .member .member-img {
    position: relative;
    width: 100%;
    height: 380px;
    overflow: hidden;
    border-radius: var(--border-radius, 8px) var(--border-radius, 8px) 0 0;
    background: rgba(26, 32, 44, 0.3);
}

/* Team Member Images - Consistent Sizing */
.team .member .member-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    border-radius: var(--border-radius, 8px) var(--border-radius, 8px) 0 0;
    transition: transform 0.4s ease;
}

/* Image hover effect */
.team .member:hover .member-img img {
    transform: scale(1.05);
}

/* Team Member Info Section */
.team .member .member-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 25px;
    background: var(--card-bg, rgba(45, 55, 72, 0.8));
    border-radius: 0 0 var(--border-radius, 8px) var(--border-radius, 8px);
    min-height: 200px;
}

/* Team Member Name */
.team .member .member-info h4 {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 20px;
    margin: 0 0 8px 0;
    color: var(--primary-text, #151515);
    line-height: 1.3;
}

/* Team Member Designation */
.team .member .member-info span {
    display: inline-block;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    color: var(--secondary-accent, #7cc576);
    line-height: 1.4;
}

/* Team Member Bio - Scrollable */
.team .member .member-info p {
    flex: 1; /* Take available space */
    font-family: "Open Sans", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary, #888888);
    margin: 0 0 15px 0;
    overflow-y: auto;
    max-height: 150px;
    padding-right: 8px;
}

/* Social Links Bar */
.team .member .social {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 45px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--primary-accent, rgba(124, 197, 118, 0.95));
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Show social on hover */
.team .member:hover .social {
    bottom: 0;
    opacity: 1;
    visibility: visible;
}

/* Social Link Icons */
.team .member .social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transition: all 0.3s ease;
}

.team .member .social a:hover {
    background: #fff;
    color: var(--primary-accent, #7cc576);
    transform: translateY(-2px);
}

/* Social Icon Sizing */
.team .member .social a i {
    font-size: 16px;
    line-height: 0;
}

/* --------------------------------------------------------------
Responsive Design - Tablets & Mobile
-------------------------------------------------------------- */

@media (max-width: 991px) {
    .team .member {
        min-height: 540px;
        max-height: 540px;
    }

    .team .member .member-img {
        height: 320px;
    }
}

@media (max-width: 768px) {
    .team .member {
        min-height: auto;
        max-height: none;
        height: auto;
    }

    .team .member .member-img {
        height: 280px;
    }

    .team .member .member-info {
        min-height: 150px;
    }

    .team .member .member-info h4 {
        font-size: 18px;
    }

    .team .member .member-info span {
        font-size: 13px;
    }

    .team .member .member-info p {
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .team .member .member-img {
        height: 250px;
    }

    .team .member .member-info {
        padding: 20px;
        min-height: 130px;
    }

    .team .member .social a {
        width: 32px;
        height: 32px;
    }

    .team .member .social a i {
        font-size: 14px;
    }
}

/* --------------------------------------------------------------
Utility Classes
-------------------------------------------------------------- */

/* Force equal height for all cards in a row */
.team-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.team-row > .col-lg-4,
.team-row > .col-md-6 {
    display: flex;
    align-items: stretch;
}

/* Image placeholder styling */
.team .member .member-img img[src=""] {
    display: none;
}

.team .member .member-img:not(:has(img))::before {
    content: "No Image";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: rgba(74, 144, 242, 0.1);
    color: rgba(230, 232, 238, 0.5);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
}

/* --------------------------------------------------------------
Dark Theme Support (for RSI dark theme)
-------------------------------------------------------------- */

body.dark-theme .team .member {
    background: var(--glass-bg, rgba(45, 55, 72, 0.6));
    border: 1px solid var(--glass-border, rgba(74, 144, 242, 0.2));
    box-shadow: var(--shadow, 0 4px 20px rgba(0, 0, 0, 0.3));
}

body.dark-theme .team .member:hover {
    transform: translateY(-5px);
    box-shadow: var(--glow-shadow, 0 8px 30px rgba(74, 144, 242, 0.4));
    border-color: var(--primary-accent, #4a90f2);
}

body.dark-theme .team .member .member-info h4 {
    color: var(--primary-text, #e6e8ee);
}

body.dark-theme .team .member .member-info span {
    color: var(--secondary-accent, #4a90f2);
}

body.dark-theme .team .member .member-info p {
    color: rgba(230, 232, 238, 0.8);
}
