/* Team Page  */

/*  TEAM HERO  */
.team-hero {
    position: relative;
    width: 100%;
    height: 480px;
    overflow: hidden;
    display: block;
}

.team-hero img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.team-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.40) 0%,
        rgba(0, 0, 0, 0.65) 100%
    );
}

.team-hero-text {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.team-hero-text h1 {
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: 3px;
    text-transform: uppercase;
    line-height: 1.1;
    margin: 0;
}

.team-hero-text .hero-divider {
    margin-top: 16px;
    width: 60px;
    height: 4px;
    background: #4ca567;
    border-radius: 2px;
}

.team-hero-text p {
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/*  BREADCRUMB  */
.breadcrumb {
    background: #f5f9ff;
    border-bottom: 1px solid #e4edf8;
    padding: 10px 0;
    font-size: 0.85rem;
    color: #777;
}

.breadcrumb a {
    color: #297cc8;
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 6px;
    color: #bbb;
}

/*  TEAM INTRO  */
.team-intro {
    padding: 70px 0 20px;
    background: #fff;
}

.team-intro-inner {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.team-intro-inner .section-tag {
    display: inline-block;
    background: #297cc8;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 4px 16px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.team-intro-inner h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 20px;
    line-height: 1.3;
}

.team-intro-inner h2 span {
    color: #297cc8;
}

.team-intro-inner p {
    font-size: 0.97rem;
    color: #666;
    line-height: 1.85;
    margin-bottom: 14px;
}

/* Stat strip */
.team-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 40px;
    padding-top: 36px;
    border-top: 1px solid #e8f0fa;
}

.team-stat {
    text-align: center;
}

.team-stat .stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    color: #297cc8;
    line-height: 1;
}

.team-stat .stat-label {
    display: block;
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 6px;
}

/*  TEAM SECTION  */
.team-section {
    padding: 60px 0 80px;
    background: #f5f9ff;
}

/* ── SUBSECTIONS ── */
.team-subsection-header {
    text-align: center;
    margin-bottom: 40px;
}

.subsection-tag {
    display: inline-block;
    background: #297cc8;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 4px 16px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.team-subsection-header h2 {
    font-size: 1.9rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.team-subsection-header h2 span { color: #297cc8; }

.team-subsection-header p {
    color: #777;
    font-size: 0.93rem;
}

/* Divider between leadership and technical team */
.team-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #297cc8, #4ca567);
    border-radius: 2px;
    margin: 52px auto;
}

/*  TEAM GRID  */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

/* Leadership grid — 2 cols, centred */
.team-grid-leadership {
    grid-template-columns: repeat(2, minmax(280px, 380px));
    justify-content: center;
}

/*  TEAM CARD  */
.team-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(41, 124, 200, 0.07);
    border: 1px solid #e4edf8;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(41, 124, 200, 0.15);
}

/* Coloured accent bar at top of each card */
.team-card-accent {
    height: 5px;
    background: linear-gradient(90deg, #297cc8, #4ca567);
}

/* ── LEADERSHIP CARD OVERRIDES ── */
.team-card-leader {
    border-color: #cce2f6;
    box-shadow: 0 6px 28px rgba(41, 124, 200, 0.11);
}

.team-card-leader .team-card-accent {
    height: 6px;
    background: linear-gradient(90deg, #297cc8, #1a5fa0);
}

.team-card-leader:hover {
    box-shadow: 0 16px 40px rgba(41, 124, 200, 0.2);
}

/* Leadership avatar */
.avatar-leader {
    width: 88px;
    height: 88px;
    background: linear-gradient(135deg, #297cc8 0%, #1a5fa0 100%);
    box-shadow: 0 0 0 4px #fff, 0 0 0 6px #297cc8;
}

.avatar-leader span {
    font-size: 1.6rem;
}

/* Leadership role badge */
.badge-leader {
    background: #297cc8;
    color: #fff;
    border-color: #297cc8;
}

.team-card-body {
    padding: 28px 24px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

/* Avatar circle with initials */
.team-avatar {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: linear-gradient(135deg, #297cc8 0%, #1a5fa0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(41, 124, 200, 0.25);
    position: relative;
}

.team-avatar span {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
    line-height: 1;
}

/* Role badge */
.team-role-badge {
    display: inline-block;
    background: #eaf4ff;
    color: #297cc8;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
    border: 1px solid #cce2f6;
}

.team-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 6px;
}

.team-card .team-title {
    font-size: 0.88rem;
    color: #297cc8;
    font-weight: 600;
    margin-bottom: 14px;
}

/* Divider line */
.team-card-divider {
    width: 36px;
    height: 2px;
    background: #4ca567;
    border-radius: 2px;
    margin: 0 auto 14px;
}

.team-card p {
    font-size: 0.88rem;
    color: #777;
    line-height: 1.65;
    margin: 0;
    flex: 1;
}

/* Card footer with icon */
.team-card-footer {
    padding: 14px 24px;
    border-top: 1px solid #eef3fa;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #fafcff;
}

.team-card-footer i {
    color: #4ca567;
    font-size: 0.85rem;
}

.team-card-footer span {
    font-size: 0.78rem;
    color: #999;
    letter-spacing: 0.3px;
}

/* RESPONSIVEness Starts Here */
@media (max-width: 768px) {
    .team-hero              { height: 300px; }
    .team-intro             { padding: 50px 0 10px; }
    .team-stats             { gap: 28px; flex-wrap: wrap; }
    .team-section           { padding: 50px 0 60px; }
    .team-grid              { grid-template-columns: 1fr; gap: 20px; }
    .team-grid-leadership   { grid-template-columns: 1fr; }
    .team-subsection-header h2 { font-size: 1.6rem; }
    .team-divider           { margin: 36px auto; }
}

@media (max-width: 480px) {
    .team-hero         { height: 240px; }
    .team-hero-text h1 { font-size: 2rem; letter-spacing: 2px; }
    .team-stats        { gap: 20px; }
    .team-stat .stat-number { font-size: 1.8rem; }
}