/* ===========================================
   TEAM DETAILS PAGE STYLES
   =========================================== */

/* --- Back Button --- */
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    margin-bottom: 25px;
    background: transparent;
    border: none;
    color: var(--color-heading-1);
    font-size: 14px;
    font-weight: var(--p-semi-bold);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    opacity: 0.8;
}

.btn-back:hover,
.btn-back:active {
    color: var(--color-primary);
    opacity: 1;
    transform: translateX(-3px);
}

.btn-back i {
    font-size: 13px;
    transition: transform 0.3s ease;
}

.btn-back:hover i,
.btn-back:active i {
    transform: translateX(-2px);
}

/* --- Page Banner --- */
.page-banner--team-details {
    background-image: linear-gradient(rgba(28, 37, 57, 0.9), rgba(28, 37, 57, 0.7)), url('../../images/team/team-banner.jpg'); /* Fallback */
    background-size: cover;
    background-position: center;
    padding: 140px 0 80px;
    margin-bottom: 0;
    color: var(--color-white);
}

.team-breadcrumb {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    display: block;
}

.team-main-title {
    font-size: var(--h1);
    font-weight: var(--p-extra-bold);
    color: var(--color-white);
    margin-bottom: 15px;
    line-height: 1.1;
}



.team-profile-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    position: relative;
}

.team-profile-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.team-profile-info {
    padding-left: 30px;
}

.team-position {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(32, 40, 45, 0.05);
    color: var(--color-primary);
    font-weight: var(--p-bold);
    font-size: 12px;
    border-radius: 20px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.team-name {
    font-size: 42px;
    font-weight: var(--p-extra-bold);
    color: var(--color-heading-1);
    margin-bottom: 25px;
}

.team-bio {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-body);
    margin-bottom: 40px;
}

/* Markdown Content Styles */
.markdown-content h1,
.markdown-content h2,
.markdown-content h3 {
    color: var(--color-heading-1);
    font-weight: var(--p-bold);
    margin-top: 1.5em;
    margin-bottom: 0.8em;
}

.markdown-content h1 {
    font-size: 32px;
}

.markdown-content h2 {
    font-size: 26px;
}

.markdown-content h3 {
    font-size: 22px;
}

.markdown-content p {
    margin-bottom: 1em;
    line-height: 1.7;
}

.markdown-content ul,
.markdown-content ol {
    margin: 1em 0;
    padding-left: 2em;
}

.markdown-content ul {
    list-style-type: disc;
}

.markdown-content ol {
    list-style-type: decimal;
}

.markdown-content li {
    margin-bottom: 0.5em;
    line-height: 1.7;
}

.markdown-content li::marker {
    color: var(--color-primary);
}

.markdown-content strong {
    font-weight: var(--p-bold);
    color: var(--color-heading-1);
}

/* Contact Cards in Profile */
.team-contact-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.team-contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--color-white);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    transition: var(--transition-base);
}

.team-contact-item:hover,
.team-contact-item:active {
    box-shadow: var(--shadow-card);
    border-color: transparent;
    transform: translateX(5px);
}

.team-contact-icon {
    width: 50px;
    height: 50px;
    background: #F8F9FA;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 20px;
    flex-shrink: 0;
}

.team-contact-details span {
    display: block;
    font-size: 13px;
    color: var(--color-text-muted);
    margin-bottom: 2px;
}

.team-contact-details h6,
.team-contact-details a {
    font-size: 16px;
    font-weight: var(--p-bold);
    color: var(--color-heading-1);
    margin: 0;
    text-decoration: none;
    transition: color 0.3s;
}

.team-contact-details a:hover,
.team-contact-details a:active {
    color: var(--color-primary);
}

/* --- Skills & Experience Section --- */
.skills-experience-section {
    padding-bottom: 100px;
}

.section-block-title {
    font-size: 24px;
    font-weight: var(--p-bold);
    color: var(--color-heading-1);
    margin-bottom: 30px;
    position: relative;
    padding-left: 15px;
    border-left: 4px solid var(--color-primary);
}

/* Skills */
.skill-group {
    margin-bottom: 30px;
}

.skill-desc {
    font-size: 15px;
    color: var(--color-body);
    margin-bottom: 20px;
}

.skill-item {
    margin-bottom: 20px;
}

.skill-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: var(--p-semi-bold);
    color: var(--color-heading-1);
    font-size: 15px;
}

.skill-progress-bg {
    height: 8px;
    background: #F0F2F5;
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress-fill {
    height: 100%;
    background: var(--color-primary);
    border-radius: 4px;
    width: 0; /* Animated via JS */
    transition: width 1.5s ease-out;
}

/* Experience Timeline */
.experience-list {
    position: relative;
    padding-left: 10px;
}

.experience-item {
    position: relative;
    padding-left: 40px;
    padding-bottom: 35px;
}

.experience-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-border-light);
}

.experience-item:last-child::before {
    bottom: auto;
    height: 15px; /* Stop line at the bullet */
}

.experience-bullet {
    position: absolute;
    left: -9px;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--color-white);
    border: 4px solid var(--color-primary);
    border-radius: 50%;
    z-index: 2;
}

.experience-header h6 {
    font-size: 18px;
    font-weight: var(--p-bold);
    color: var(--color-heading-1);
    margin-bottom: 5px;
}

.experience-date {
    display: inline-block;
    font-size: 13px;
    font-weight: var(--p-semi-bold);
    color: var(--color-primary);
    background: rgba(32, 40, 45, 0.05);
    padding: 2px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.experience-desc {
    font-size: 15px;
    color: var(--color-body);
    margin: 0;
}

/* --- Responsive --- */
@media (max-width: 991px) {
    .team-profile-section {
        padding: 60px 0;
    }

    .team-profile-info {
        padding-left: 0;
        margin-top: 0;
    }

    .team-name {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .page-banner--team-details {
        padding: 100px 0 60px;
    }

    .skills-experience-section {
        padding-bottom: 60px;
    }
}
