* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #b91c1c;
    --primary-dark: #7f1d1d;
    --primary-light: #fef2f2;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
}

/* Hero Section */
.service-team-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
    padding: 6rem 0 5rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

/* Ensure container content is above background */
.service-team-hero .container {
    position: relative;
    z-index: 1;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.9375rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: white;
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.6);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 1.5rem 0;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
    max-width: 800px;
    margin-top: 1rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1.125rem;
    }
}

/* Team Members Section */
.team-members {
    background: var(--white);
    padding: 5rem 0;
}

.team-members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .team-members-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1.5rem;
        margin-top: 2rem;
    }
}

.team-member-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.team-member-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-member-card:hover {
    border-color: var(--primary);
    box-shadow: 0 12px 32px rgba(185, 28, 28, 0.15);
    transform: translateY(-6px);
}

.team-member-card:hover::before {
    transform: scaleX(1);
}

.team-member-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-light) 0%, rgba(254, 242, 242, 0.5) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: 4px solid var(--gray-200);
    transition: all 0.4s ease;
    box-shadow: 0 4px 12px rgba(185, 28, 28, 0.1);
    flex-shrink: 0;
}

.team-member-card:hover .team-member-avatar {
    border-color: var(--primary);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(185, 28, 28, 0.25);
}

.team-member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member-avatar span {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
}

.team-member-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.team-member-card:hover .team-member-name {
    color: var(--primary);
}

.team-member-role {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 500;
}

/* Team Leader Card Styling (Full Red Theme) */
.team-leader-card {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

.team-leader-card::before {
    background: var(--primary-dark);
    transform: scaleX(1);
    height: 4px;
}

.team-leader-card:hover {
    border-color: var(--primary-dark);
    background: var(--primary-dark);
    box-shadow: 0 12px 32px rgba(185, 28, 28, 0.35);
}

.team-leader-avatar {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.team-leader-card:hover .team-leader-avatar {
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.25);
}

.team-leader-avatar span {
    color: white;
    font-weight: 800;
}

.team-leader-name {
    color: white;
    font-weight: 800;
}

.team-leader-card:hover .team-leader-name {
    color: white;
}

.team-leader-role {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

/* Team Overview Section */
.team-overview {
    background: var(--white);
}

.team-description {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

/* Team Leader Section */
.team-leader-section {
    background: var(--gray-50);
}

.team-leader-card {
    display: flex;
    align-items: center;
    max-width: 900px;
    background: #A11D1D;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.team-leader-photo-large {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary);
    box-shadow: 0 8px 24px rgba(127, 29, 29, 0.2);
    flex-shrink: 0;
}

.team-leader-photo-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-leader-placeholder-large {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: var(--primary);
    font-weight: 700;
    font-size: 4rem;
}

.team-leader-info-large {
    flex: 1;
}

.team-leader-name-large {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.team-leader-bio {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* Activities Section */
.team-activities {
    background: linear-gradient(to bottom, var(--gray-50) 0%, var(--white) 100%);
    padding: 5rem 0;
}

.team-activities .section-title {
    position: relative;
    padding-bottom: 1.5rem;
    margin-bottom: 3rem;
}

.team-activities .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 2px;
}

.activities-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 900px;
    margin: 0 auto;
}

/* Activities Grid - Col-6 Design (2 columns) */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

/* Tablet adjustments */
@media (max-width: 992px) and (min-width: 769px) {
    .activities-grid {
        gap: 1.75rem;
    }

    .activity-card {
        padding: 2rem;
    }
}

/* Mobile - Single column */
@media (max-width: 768px) {
    .activities-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .activity-card {
        padding: 2rem;
    }

    .activity-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .activity-title {
        font-size: 1.25rem;
    }
}

.activity-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.activity-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.activity-card:hover {
    border-color: var(--primary);
    box-shadow: 0 12px 32px rgba(185, 28, 28, 0.15);
    transform: translateY(-6px);
}

.activity-card:hover::before {
    transform: scaleX(1);
}

.activity-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-light) 0%, rgba(254, 242, 242, 0.5) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-size: 1.75rem;
    flex-shrink: 0;
    position: relative;
    transition: all 0.4s ease;
    box-shadow: 0 4px 12px rgba(185, 28, 28, 0.1);
}

.activity-card:hover .activity-icon {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(185, 28, 28, 0.25);
}

.activity-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.activity-card:hover .activity-title {
    color: var(--primary);
}

.activity-description {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin: 0;
    flex: 1;
}

/* Get Involved Section */
.get-involved {
    background: var(--gray-50);
}

.involvement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.involvement-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.involvement-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.involvement-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary);
    font-size: 1.5rem;
}

.involvement-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.involvement-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.involvement-card a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.involvement-card a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(127, 29, 29, 0.3);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

/* Related Teams Section */
.related-teams {
    background: var(--white);
}

.related-teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.related-team-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 2px solid var(--gray-200);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 200px;
    justify-content: space-between;
}

.related-team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.related-team-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.related-team-leader {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 2px solid var(--gray-100);
}

.related-team-leader-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: 600;
    font-size: 1.25rem;
    overflow: hidden;
}

.related-team-leader-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-team-leader-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.related-team-leader-label {
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.related-team-leader-name {
    color: var(--primary);
    font-size: 0.9375rem;
    font-weight: 700;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .team-leader-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }

    .team-leader-photo-large {
        width: 150px;
        height: 150px;
    }

    .team-leader-name-large {
        font-size: 1.5rem;
    }

    .involvement-grid {
        grid-template-columns: 1fr;
    }

    .related-teams-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}