/* --- Team Page Styles --- */

.founder-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 450px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.founder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.founder-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.8) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    color: #fff;
    transition: all 0.5s ease;
}

.founder-info-default h3 {
    font-size: 22px;
    margin-bottom: 5px;
    font-weight: 700;
}

.founder-info-default span {
    font-size: 14px;
    opacity: 0.9;
}

.founder-bio {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    transform: translateY(20px);
}

.founder-bio h3 {
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 20px;
}

.founder-bio p {
    font-size: 15px;
    line-height: 1.6;
}

.founder-card:hover .founder-bio {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.founder-card:hover .founder-img {
    transform: scale(1.1);
}

/* Team Portrait Cards */
.team-portrait-card {
    position: relative;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    height: 400px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    text-align: center;
}

.portrait-img-wrap {
    height: 100%;
    width: 100%;
    overflow: hidden;
    background: #f8f9fa;
    position: relative;
}

.portrait-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    transition: transform 0.6s ease;
}

.portrait-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    color: #fff;
    z-index: 10;
    transition: all 0.4s ease;
    pointer-events: none;
}

.portrait-footer h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #ffffff;
}

.portrait-footer span {
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
}

.portrait-hover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 20;
    transform: translateY(10px);
}

.portrait-hover-overlay h4 {
    font-size: 22px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.portrait-hover-overlay span {
    font-size: 16px;
    color: #64748b;
    font-weight: 600;
}

.team-portrait-card:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.team-portrait-card:hover .portrait-hover-overlay {
    opacity: 1;
    transform: translateY(0);
}

.team-portrait-card:hover .portrait-footer {
    opacity: 0;
}

.team-portrait-card:hover img {
    transform: scale(1.1);
}

/* Agent Compact Cards */
.agent-compact-card {
    display: flex;
    align-items: center;
    padding: 5px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}

.agent-img-wrap {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 20px;
    flex-shrink: 0;
}

.agent-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.agent-details h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 3px;
    color: #1e293b;
}

.agent-details p {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 10px;
}

.agent-social {
    display: flex;
    gap: 12px;
}

.agent-social a {
    color: #94a3b8;
    font-size: 14px;
    transition: color 0.3s;
}

.agent-social a:hover {
    color: var(--primary);
}

.agent-compact-card:hover {
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(255, 144, 9, 0.1);
}

/* Sidebar Agent - Reused from Property Detail */
.agent-glass-card {
    background: #fff;
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid #f1f5f9;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.agent-glass-card:hover {
    /* transform: translateY(-10px); */
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.agent-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin-bottom: 0;
}

.agent-thumb.team {
    width: 100%;
    height: 280px;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
}

.agent-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.agent-info {
    padding: 0px 0px 0px;
    text-align: center;
}

.agent-info h5 {
    margin: 0;
    font-weight: 800;
    font-size: 22px;
    color: #1e293b;
    text-transform: capitalize;
}

.agent-info p {
    margin: 8px 0 0;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.agent-actions {
    display: flex;
    gap: 15px;
    padding: 0px 30px 40px;
    justify-content: center;
}

.agent-btn {
    flex: 1;
    height: 55px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.agent-btn.wp {
    background: #000000;
    color: #fff;
}

.agent-btn.ph {
    background: #FF9204;
    color: #fff;
}

.agent-btn.ml {
    background: #f8f9fa;
    color: #1a1a1a;
    border: 1px solid #e2e8f0;
}

.agent-btn:hover {
    transform: translateY(-3px);
    filter: brightness(1.1);
}

/* --- Our Leadership Team --- */
.leadership-card {
    position: relative;
    height: 500px;
    width:90%;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.leadership-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.leadership-info-default {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: #fff;
    z-index: 1;
    transition: opacity 0.4s ease;
}

.leadership-info-default h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 5px;
}

.leadership-info-default p {
    font-size: 14px;
    margin: 0;
    opacity: 0.9;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
}

.leadership-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.98);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transform: translateX(100%);
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 2;
    color: #1a1a1a;
}

.leadership-overlay h3 {
    font-weight: 800;
    font-size: 24px;
    margin-bottom: 10px;
    color: #000;
}

.leadership-overlay h5 {
    font-weight: 700;
    font-size: 14px;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.leadership-overlay p {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 30px;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: #f8f9fa;
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary);
    color: #fff;
    transform: scale(1.1);
}

.leadership-card:hover .leadership-overlay {
    transform: translateX(0);
}

.leadership-card:hover .leadership-img {
    transform: scale(1.1);
}

.leadership-card:hover .leadership-info-default {
    opacity: 0;
}

@media (max-width: 768px) {
    .leadership-card {
        height: 400px;
    }
}
