.profile-card {
    max-width: 768px;
    margin: 0 auto 50px;
}
.profile-image img {
    max-width: 300px;
    margin: auto;
    display: block;
    border-radius: 20px;
}
.profile-image.image-wide img {
    max-width: unset;
    width: 100%;
}
.profile-title {
    text-align: center;
    margin: 40px 0 30px;
}
.profile-description {
    font-size: 18px;
}
.profile-details-container {
    padding: 20px 0;
}
.profile-details-container h3 {
    border-bottom: 1px solid #a07f60;
    padding-bottom: 15px;
    margin-bottom: 30px;
}
.contact-details {
    display: flex;
    column-gap: 40px;
    align-items: center;
    flex-wrap: wrap;
}
.detail-label {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}
.detail-label img {
    width: 30px;
    margin-right: 10px;
}
.detail-item {
    margin-top: 30px;
}
.detail-row {
    display: flex;
    column-gap: 30px;
}
.detail-column {
    flex: 1;
}
.detail-item.qr-code img {
    max-height: 315px;
    border: 1px solid #e1e1e1;
}
.related-projects,
.project-gallery {
    margin-top: 40px;
}
.items-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 20px 0;
}
.item-card {
    background: #f9f9f9;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
    transition: box-shadow 0.3s;
}
.item-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 10px;
}
.project-gallery .items-list {
    gap: 10px;
}
.project-gallery .item-card {
    padding: 0;
    border: none;
    border-radius: 0;
}
.project-gallery .item-card a {
    display: block;
    height: 100%;
}
.project-gallery .item-card img {
    margin: 0;
    height: 100%;
}
.details-table td {
    vertical-align: middle;
}
a.project-manager {
    display: flex;
    align-items: center;
    column-gap: 20px;
}
a.project-manager img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    object-position: top;
}
a.project-manager h4 {
    margin: 0;
}


@media only screen and (max-width: 992px) {
    .detail-row {
        flex-direction: column;
    }
    .contact-info:not(:last-child) {
        width: 100%;
        margin-bottom: 30px;
    }
    .items-list {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    .project-gallery .items-list {
        grid-template-columns: repeat(2, 1fr);
    }
}