/*---------------------------------------------------------------------------*/
/*----- Overriding main styles                                          -----*/
/*---------------------------------------------------------------------------*/

h2 {
    font-size: 24px;
    margin: 60px 0 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

p {
    width: 100%;
    font-family: var(--font-name-primary), sans-serif;
    font-size: 14px;
    margin: 0 0 20px;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 100px;
    display: block;
}

/*---------------------------------------------------------------------------*/
/*----- Page specific styles                                            -----*/
/*---------------------------------------------------------------------------*/

.all-chefs-container {
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: center;
    margin-top: 100px;
    padding-bottom: 160px;
    flex-wrap: wrap;
}

/* Media query for screens 768px and smaller */
@media screen and (max-width: 768px) {
    .all-chefs-container {
        flex-direction: column;
        gap: 20px;
        margin-top: 0;
    }
}

.chef-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 40px 20px 20px;
    width: 330px;
    box-shadow: 2px 2px 15px 0 rgba(0, 0, 0, 0.07);
    text-align: center;
    position: relative;
    min-height: 380px;
    margin-bottom: 40px;
    font-family: var(--font-name-primary), sans-serif;
}

.chef-photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid #fff;
    z-index: 1;
    margin-left: auto;
    margin-right: auto;
}

.chef-photo a {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.chef-photo a:hover {
    transform: scale(1.05);
}

.chef-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chef-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    margin-top: 0;
    width: 100%;
}

.chef-stat {
    text-align: center;
    flex: 1;
}

.chef-stat-icon {
    width: 20px;
    height: 20px;
}

.chef-stat-number {
    display: block;
    font-size: 18px;
    font-weight: bold;
    color: var(--color-dark-grey);
}

.chef-stat-label {
    font-size: 12px;
    color: #3eba67;
}

.chef-stat-label a {
    color: #3eba67;
    text-decoration: none;
    transition: color 0.3s ease;
}

.chef-stat-label a:hover {
    color: #78e49c;
}

.chef-profile-link {
    display: inline-block;
    width: 75%;
    padding: 10px 20px;
    background-color: #3eba67;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-size: 16px;
    margin-top: auto;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.chef-profile-link:hover {
    background-color: #78e49c;
    color: #fff;
}

/* Media query for screens 768px and smaller */
@media screen and (max-width: 768px) {
    .chef-card {
        width: 90%;
        margin-bottom: 0;
    }

    .chef-photo {
        top: -60px;
        width: 130px;
        height: 130px;
    }

    .chef-card:not(:first-child) {
        margin-top: 100px;
    }
}

.photo-credit-wrapper {
    position: absolute;
    bottom: 12px;
    right: 28px;
    z-index: 999;
    font-size: 8px;
    text-align: right;
}

.photo-credit {
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 6px;
    padding: 3px;
    display: inline-block;
    color: var(--color-secondary-dark);
}
