/* Team Page Styles */

/* Background elements - inherited from existing pattern */
.bg-top-left {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 999;
    transform: translate(-29%, -53%) rotate(-46deg);
}
.bg-top-left img {
    width: 70%;
}

/* Team wrapper */
.team-wrapper {
    position: relative;
    min-height: 100vh;
}

/* Team grid section */
.team-grid-section {
    padding: 80px 0;
    background-color: #f8f9fa;
    position: relative;
}

/* Team card styling */
.team-card {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Team image container */
.team-image {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.team-card:hover .team-image img {
    transform: scale(1.05);
}

/* Team image link styling */
.team-image a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    cursor: pointer;
    position: relative;
}

/* Team overlay for hover effect */
.team-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(237, 28, 36, 0.8), rgba(0, 0, 0, 0.6));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.team-image:hover .team-overlay {
    opacity: 1;
}

.team-overlay-content {
    text-align: center;
    color: white;
}

.team-overlay-content i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.team-overlay-content p {
    font-family: "Gill-Sans";
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.9;
}


/* Responsive Design */
@media (max-width: 1199px) {
    .team-image {
        height: 280px;
    }
}

@media (max-width: 991px) {
    .team-grid-section {
        padding: 60px 0;
    }
    
    .team-image {
        height: 250px;
    }
}

@media (max-width: 767px) {
    .bg-top-left {
        transform: translate(-25%, -52%) rotate(-46deg);
    }
    
    .team-grid-section {
        padding: 40px 0;
    }
    
    .team-image {
        height: 280px;
    }
    
    .team-card {
        margin-bottom: 30px;
    }
}

@media (max-width: 575px) {
    .team-image {
        height: 250px;
    }
}

/* Additional hover effects */
.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(237, 28, 36, 0.1), rgba(103, 103, 103, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

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


/* Animation delays for staggered effect */
.team-card[data-aos="fade-up"]:nth-child(1) {
    animation-delay: 0.1s;
}

.team-card[data-aos="fade-up"]:nth-child(2) {
    animation-delay: 0.2s;
}

.team-card[data-aos="fade-up"]:nth-child(3) {
    animation-delay: 0.3s;
}

.team-card[data-aos="fade-up"]:nth-child(4) {
    animation-delay: 0.4s;
}

.team-card[data-aos="fade-up"]:nth-child(5) {
    animation-delay: 0.5s;
}

.team-card[data-aos="fade-up"]:nth-child(6) {
    animation-delay: 0.6s;
}