/* ---------- Global Variables ---------- */
:root {
    /* Brand colours */
    --unit-blue: rgb(102, 153, 204);
    --unit-green: rgb(109, 247, 109);
    --unit-blue-accent: rgb(102, 215, 239);
    --unit-blue-accent-hover: rgb(0, 178, 218);
    --footer-bg: #333;
    --text-dark: #000;
    --text-light: #fff;

    /* Spacing scale */
    --space-s: 8px;
    --space-m: 20px;
    --space-l: 40px;
}

/* ---------- Base ---------- */
body {
    font-family: sans-serif, Arial;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

/* ---------- Header ---------- */
.header {
    position: relative; 
    width: min(800px, 70%);
    height: 250px;
    margin: -80px auto 0 auto;
    background-color: var(--unit-blue);
    border-radius: 0 0 3000px 3000px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.header .team-header {
    position: absolute;
    top: 65%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-light);
    text-align: center;
    font-size: 20px;
}

@media (max-width: 830px) {
    .header {
        width: min(90%, 400px);
        height: 200px;
    }

    .header .team-header {
        font-size: 16px;
        top: 100px;
    }
}

/* Team Section */
.team-section {
    margin: 50px 0;
    padding: 0 20px;

}

.team {
    margin: 30px auto;
    border-radius: 20px;
    display: grid;                  /* keep simple 2-row grid: heading + members */
    grid-template-rows: auto 1fr;
    gap: 40px;
    padding: var(--space-l);
    max-width: 900px;               /* centre on page and allow it to shrink */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.team:nth-child(odd) {
    background-color: rgb(194, 194, 194);
}

.team:nth-child(even) {
    background-color: var(--unit-blue-accent);
}

.team h2 {
    margin: 0;
    font-size: clamp(32px, 5vw, 36px);
    text-align: center;
    color: var(--text-light);
}

/* flex container for the people */
.team .members {
    display: flex;
    flex-wrap: wrap;                
    justify-content: center;        
    column-gap: 60px;     
    row-gap: 30px;              
}

/* individual person card */
.team-member {
    width: clamp(180px, 20vw, 200px);
    text-align: center;
    display: grid;
    grid-template-rows: auto auto auto;  /* or just remove this line entirely */
    row-gap: 10px;                        /* small consistent spacing */
    margin-bottom: 10px;
}


.team-member h3 {
    margin: 4px 0 0 0;
    padding: 0;
    font-size: clamp(16px, 2.5vw, 19px);
    color: var(--text-dark);
    white-space: nowrap;
}

.team-member p {
    margin: 0;                           /* remove default p margin */
    font-size: clamp(15px, 2.5vw, 17px);
    color: var(--text-dark);
}


.team-member img {
    width: 170px;           /* fixed size for all images */
    height: 170px;
    border-radius: 50%;     /* perfect circle */
    object-fit: cover;      /* crop to fill circle nicely */
    margin: 0 auto;         /* center inside card */
}

.team-member .linkedin-link img {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.team-member .linkedin-link img:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}



