
/*==========*/
/*TEAMS (V8)*/
/*==========*/


/* Main section container with the new dark background */
.team-area-final {
    padding: 0px 0 90px;
    background-color: #1a0e22; /* User-requested background */
}

/* * Section Title styling to match courses.php on a dark background.
 */
.team-area-final .section-title h2 {
    color: #fff; /* White text for dark background */
}
.team-area-final .section-title h2 span {
     color: #ffc010; /* Accent color for the span */
}

/* The main card for a single team member, styled for a dark theme */
.single-team-creative {
    display: flex;
    background: #251c31; /* Subtle dark purple for the card */
    border-radius: 12px;
    border: 1px solid #3a2f4a;
    /* margin-bottom is now handled by the column's mb-3 class */
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    height: 100%;
}

.single-team-creative:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
    border-color: #ffc010;
}

/* Left side of the card: Image container - now a square */
.team-thumb-creative {
    flex: 0 0 40%;
    position: relative;
    overflow: hidden;
    background: #1a0e22;
    aspect-ratio: 1 / 1; /* This makes the container a square */
}

.team-thumb-creative img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image fills the box without distortion */
    transition: transform 0.4s ease;
}

.single-team-creative:hover .team-thumb-creative img {
    transform: scale(1.08);
}

/* Social media overlay */
.team-social-creative {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(26, 14, 34, 0.85) 0%, rgba(26, 14, 34, 0.1) 100%);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.single-team-creative:hover .team-social-creative {
    opacity: 1;
}

.team-social-creative a {
    color: #fff;
    font-size: 18px;
    margin: 0 10px;
    transform: translateY(10px);
    transition: transform 0.3s ease 0.1s, color 0.3s ease;
}

.single-team-creative:hover .team-social-creative a {
     transform: translateY(0);
}

.team-social-creative a:hover {
    color: #ffc010;
}

/* Right side of the card: Information container */
.team-info-creative {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.team-info-creative h3 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #ffffff; /* White text */
}

.team-info-creative .role {
    font-size: 16px;
    color: #ffc010; /* Accent color for the role */
    font-weight: 600;
    margin-bottom: 25px;
    display: block;
}

.team-info-creative .experience {
    font-size: 15px;
    color: #c0b8d1; /* Light text for experience */
    font-weight: 500;
    border-top: 1px solid #3a2f4a;
    padding-top: 20px;
    margin-top: auto;
}

.team-info-creative .experience i {
    margin-right: 10px;
    color: #ffc010;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .single-team-creative {
        flex-direction: column;
    }
    .team-thumb-creative {
        flex-basis: auto; /* Allow flexbox to handle the size based on aspect ratio */
        width: 100%;
    }
}