.profile-section {
    display: flex;
    gap: 70px;
    min-height: 500px;

    &>* {
        background: white;
        padding: 20px 30px 25px;
        border-radius: 10px;
    }
}

.profile-tabs {
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-x: auto;

    h2 {
        font-weight: 600;
        font-size: 18px;
        border: 0;
        border-bottom: 1px solid #d5e0dd;
        margin: 0 0 10px;
        padding: 0 0 5px;

        &:after {
            content: none;
        }
    }

}

.profile-tabs a {
    display: block;
    padding: 2px 0;
    color: var(--link);
    font: inherit;
    font-size: 16px;
}

.profile-tabs a i {
    width: 1.25em;
    text-align: center;
    opacity: 0.5;
    margin-right: 8px;
}

.profile-tabs a[aria-current="page"] {
    color: var(--basic);
    font-weight: 600;
}

.profile-tabs a::after {
    content: '➜';
    margin-left: 5px;
    display: inline-block;
    visibility: hidden;
}

.profile-tabs a:hover::after {
    visibility: visible;
}

.profile-content {
    flex: 1;
}

.profile-form {
    display: grid;
    gap: 16px;
    max-width: 680px;
}

.profile-form>div {
    display: grid;
    gap: 6px;
}

.profile-form input,
.profile-form select,
.profile-form textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #aebdb7;
    border-radius: 4px;
    background: #fff;
    color: var(--font-color);
    font: inherit;
}

.profile-form button[type="submit"] {
    justify-self: start;
    padding: 11px 18px;
    border: 0;
    border-radius: 4px;
    background: var(--basic);
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.profile-review-list,
.company-review-list {
    display: grid;
    gap: 16px;
    margin: 20px 0;
}

.profile-review {
    padding: 0;
    border-bottom: 1px solid #d5e0dd;
}

.company-review__manage {
    display: flex;
    gap: 20px;

    form>div {
        display: flex;
        flex-direction: column;
    }

}

.company-review__heading time,
.profile-review>time {
    margin-left: auto;
    color: #52625c;
    font-size: 14px;
}

.review-rating {
    white-space: nowrap;
    font-size: 20px;

    .star-filled {
        color: #f5c518;
    }

    .star-empty {
        color: #d1d5db;
    }
}

.company-review-reply {
    margin: 0 0 15px 20px;
    padding-left: 14px;
    border-left: 3px solid var(--light);

    p {
        margin: 4px 0 0;
    }
}

.company-review-form-page .simple-link {
    display: inline-block;
    margin-bottom: 20px;
}

.review-form-button,
.profile-add-company {
    display: inline-block;
    padding: 10px 18px;
    margin-bottom: 20px;
    border-radius: 5px;
    background: var(--basic);
    color: var(--white);
    font-weight: 600;
}

.review-form-button {
    background: var(--light);
    padding: 7px 14px;
}

.review-info {
    color: rgb(83, 83, 83);
    font-size: 14px;
}

.profile-company-list {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.profile-company-card {
    min-width: 0;
    padding: 18px 20px;
    border: 1px solid #d5e0dd;
    border-radius: 8px;
    background: #fff;
}

.profile-company-card__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.profile-company-card__heading h3 {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    font-size: 18px;
}

.profile-company-card__heading .company-status {
    flex-shrink: 0;
}

.profile-company-card__details {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-top: 14px;
}

.profile-company-card__date {
    margin: 0;
    color: #52625c;
}

.profile-company-card__date span {
    margin-right: 4px;
}

.profile-company-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.profile-company-card__actions a {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #aebdb7;
    border-radius: 4px;
    color: var(--link);
    font-weight: 600;
    text-decoration: none;
}

.profile-company-card__actions a:hover,
.profile-company-card__actions a:focus-visible {
    background: var(--background-dark);
}

@media (max-width: 520px) {
    .profile-company-card {
        padding: 16px;
    }

    .profile-company-card__heading,
    .profile-company-card__details {
        align-items: flex-start;
        flex-direction: column;
    }
}

.profile-offer-list {
    display: grid;
    gap: 16px;
    margin: 20px 0;
    padding: 0;
    list-style: none;
}

.profile-offer {
    display: flex;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #d5e0dd;
}

.profile-offer img {
    width: 200px;
    max-width: 40%;
    height: auto;
    align-self: flex-start;
    border-radius: 4px;
}

.profile-offer__body {
    display: grid;
    flex: 1;
    gap: 8px;
}

.profile-offer__body h3 {
    margin: 0;
}

.profile-offer__body form {
    display: inline;
}

.profile-offer__delete {
    padding: 8px 12px;
    border: 1px solid #aebdb7;
    border-radius: 4px;
    background: transparent;
    color: #b3261e;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.profile-offer__preview {
    max-width: 300px;
    height: auto;
    border-radius: 4px;
}

.profile-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

@media (max-width: 520px) {
    .profile-offer {
        flex-direction: column;
    }

    .profile-offer img {
        width: 100%;
        max-width: 100%;
    }
}