@import url("/css/templates/secondary-header.css");
.staff_header{
    background: url("/resources/images/staff/header.jpg");
    background-size: cover;
    background-position: center;
}
.staff_head-staff{
    padding: 6rem 5vw;
    line-height: 1;
    background-color: hsl(200, 0%, 96%);
    box-shadow: 0 5px 5px hsl(0, 0%, 0%, 0.15);
    .wrapper{
        max-width: 900px;
        margin:  0 auto;
        .title{
            font-size: 2.5rem;
            margin-bottom: 1rem;
        }
        .desc{
            margin-bottom: 3rem;
            max-width: 60ch;
            line-height: 1.5;
        }
        .cards{
            display: flex;
            flex-wrap: wrap;
            gap: 4rem;
            justify-content: center;
            .card{
                overflow: hidden;
                display: flex;
                flex-direction: column;
                align-items: center;
                .avatar{
                    margin-bottom: 2rem;
                    img{
                        width: 21rem;
                        height: 21rem;
                        fill: hsl(0, 0%, 70%);
                        background-color: hsl(0, 0%, 50%);
                        object-fit: cover;
                        box-shadow: 0 2px 7px hsl(0, 0%, 0%, 0.5);
                    }
                }
                .main{
                    width: 100%;
                    .abbrv{
                        background-color: hsl(200, 100%, 35%);
                        border-radius: 100px;
                        color: white;
                        display: block;
                        width: fit-content;
                        padding: 0.5rem 1.5rem;
                        margin-bottom: 1rem;
                        font-weight: 700;
                        font-size: 1.1rem;
                    }
                    .name{
                        font-size: 1.6rem;
                        margin-bottom: 1rem;
                        color: hsl(200, 100%, 50%);
                    }
                    .position{
                        font-size: 1.1rem;
                        display: block;
                        font-weight: 600;
                    }
                }
            }
        }
    }
    @media screen and (max-width: 1300px){
        .wrapper{
            .cards{
                justify-content: center;
            }
        }
    }
}
.staff_departments{
    padding: 5rem 5vw;
    line-height: 1;
    .wrapper{
        max-width: 1200px;
        margin: 0 auto;
        .title{
            font-size: 2.5rem;
            margin-bottom: 1rem;
        }
        .section-desc{
            max-width: 70ch;
            margin-bottom: 3rem;
            line-height: 1.5;
        }
        .department-title{
            font-size: 1.5rem;
            margin-bottom: 1rem;
            color: hsl(200, 0%, 30%);
        }
        .personel{
            display: grid;
            gap: 1.5rem;
            grid-template-columns: repeat(2, 1fr);
            margin-bottom: 3rem;
            .person{
                background-color: hsl(0, 0%, 100%);
                box-shadow: 0 2px 10px hsl(0, 0%, 0%, 0.3);
                border: 1px solid hsl(0, 0%, 80%);
                .department{
                    font-weight: 600;
                    padding: 1rem;
                    text-align: right;
                    width: 80%;
                    margin-left: auto;
                    border-radius: 0 0 0 100px;
                    background: linear-gradient(30deg,hsl(200, 0%, 30%),hsl(200, 0%, 10%));
                    color: white;
                    &.-operations{
                        background: linear-gradient(30deg,hsl(180, 100%, 30%),hsl(180, 100%, 20%));  
                    }
                    &.-technical{
                        background: linear-gradient(30deg,hsl(200, 100%, 30%),hsl(200, 100%, 20%));  
                    }
                    &.-it{
                        background: linear-gradient(30deg,hsl(50, 100%, 45%),hsl(50, 100%, 50%));  
                        color: black;
                    }
                    &.-financial{
                        background: linear-gradient(30deg,hsl(30, 100%, 35%),hsl(30, 100%, 30%));  
                    }
                    &.-recruitment{
                        background: linear-gradient(30deg,hsl(200, 100%, 40%),hsl(200, 100%, 30%));  
                    }
                }
                .main{
                    padding: 1.5rem 1rem;
                    gap: 1rem;
                    display: flex;
                    justify-content: space-evenly;
                    align-items: center;
                    .avatar{
                        margin-top: -3rem;
                        img{
                            width: 8rem;
                            height: 8rem;
                            background-color: hsl(0, 0%, 90%);
                            border-radius: 100px;
                            border: 0.5rem solid white;
                            display: block;
                        }
                    }
                    .desc{
                        .name{
                            font-size: 1.4rem;
                            margin-bottom: 0.5rem;
                            color: hsl(200, 100%, 35%);
                        }
                        .position{
                            display: block;
                            line-height: 1.3;
                        }
                    }
                }
                .contact{
                    padding: 0rem 2rem 1rem 2rem;
                    display: flex;
                    flex-wrap: wrap;
                    justify-content: end;
                    gap: 0.5rem;
                    a{
                        color: hsl(200, 100%, 35%);
                        font-weight: 600;
                        text-decoration: none;
                        transition: 0.1s;
                        &:hover{
                            color: hsl(200, 100%, 20%);
                            text-decoration: underline black;
                        }
                    }
                }
            }
        }
    }
    @media screen and (max-width: 950px){
        .wrapper{
            .personel{
                grid-template-columns: repeat(1, 1fr);
            }
        }
    }
    @media screen and (max-width: 600px){
        .wrapper{
            .title{
                font-size: 2rem;
            }
        }
    }
    @media screen and (max-width: 500px){
        .wrapper{
            .personel{
                .person{
                    .department{
                        padding: 1rem 1rem 4rem 1rem;
                    }
                    .main{
                        flex-direction: column;
                        .avatar{
                            margin-top: -4.5rem;
                        }
                    }
                    .contact{
                        justify-content: center;
                    }
                }
            }
        }
    }
}