.author-container {
    padding: 0 45px;
}

.author-profile {
    color: #101010;
    padding: 40px;
    margin: 30px auto 90px;
    background: #FFF;
    border-radius: 10px;
}

.author-profile__title {
    color: #142757;
    font-size: 40px;
    line-height: 40px;
    font-weight: 500;
}

.author-profile__header {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto auto;
    gap: 20px;
    align-items: start;
    padding-bottom: 40px;
}

.author-profile__avatar {
    grid-column: 1;
    grid-row: 1 / 4;
}

.author-profile__avatar,
.author-profile__avatar img {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.author-profile__avatar.no-avatar img {
    display: none;
}

.author-profile__avatar.no-avatar {
    background-color: #D6DEF5;
    background-image: url("../images/no-photo-author-avatar.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 60%;
}

.author-profile__content {
    grid-column: 2;
    grid-row: 1;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: start;
}

.author-profile__info {
    grid-column: 1;
    grid-row: 1;
}

.author-profile__name {
    font-size: 25px;
    font-weight: 600;
    line-height: 35px;
}

.author-profile__role {
    color: #898FA1;
    font-size: 18px;
    line-height: 30px;
}

.author-profile__socials {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.author-profile__social-link {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2F4680;
    transition: background 0.15s;
}

.author-profile__social-icon {
    width: 25px;
    height: 25px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    filter: brightness(0) invert(1);
}

.author-profile__social-link.is-x .author-profile__social-icon {
    background-image: url("../images/icons/x.svg");
}

.author-profile__social-link.is-instagram .author-profile__social-icon {
    background-image: url("../images/icons/instagram.svg");
}

.author-profile__social-link.is-youtube .author-profile__social-icon {
    background-image: url("../images/icons/youtube.svg");
}

.author-profile__stats {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    gap: 20px;
    align-items: center;
}

.author-profile__stat {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 16px;
}

.author-profile__stat-icon {
    width: 25px;
    height: 25px;
    background: #435B97;
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
}

.author-profile__stat-icon--articles {
    -webkit-mask-image: url('../images/icons/editProfile.svg');
    mask-image: url('../images/icons/editProfile.svg');
}

.author-profile__stat-icon--views {
    -webkit-mask-image: url('../images/icons/show.svg');
    mask-image: url('../images/icons/show.svg');
}

.author-profile__stat-value {
    font-size: 18px;
    font-weight: 600;
}

.author-profile__actions {
    grid-column: 2;
    grid-row: 3;
    display: flex;
    gap: 20px;
}

.author-about {
    padding: 20px 0 28px 0;
    border-top: 1px solid #F0F1F4;
    border-bottom: 1px solid #F0F1F4;
}

.author-about__title {
    font-size: 25px;
    font-weight: 600;
    margin-bottom: 20px;
}

.author-about__body p {
    font-size: 18px;
    line-height: 30px;
    margin-bottom: 20px;
}

.author-about__body p:last-child {
    margin-bottom: 0;
}

.author-contact {
    background: #F4F4F4;
    border-radius: 10px;
    margin-top: 40px;
    padding: 20px;
}

.author-contact__title {
    font-size: 22px;
    font-weight: 600;
    color: #142757;
    margin-bottom: 30px;
}

.author-profile__button {
    width: 210px;
    box-sizing: border-box;
}

.author-contact__form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.author-contact__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.author-contact__field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.author-contact__field .gdn-select__value {
    color: #8D8D8D;
}

.author-contact__form .gdn-textarea__field {
    height: 165px;
}

.blog-page__subtitle {
    color: #142757;
    font-size: 36px;
    font-weight: 500;
    line-height: 40px;
}

.gdn-textarea.author-contact__field .gdn-field-error {
    position: absolute;
    bottom: -20px;
}

.author-contact__submit {
    width: 230px;
}

@media (max-width: 1119.9px) {
    .author-container {
        padding: 0 35px;
    }

    .author-profile__avatar,
    .author-profile__avatar img {
        width: 150px;
        height: 150px;
    }

    .author-profile__button {
        width: 205px;
    }
}

@media (max-width: 759.9px) {
    .author-profile__title {
        font-size: 30px;
    }

    .author-profile {
        padding: 30px;
    }

    .author-profile__header {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto auto;
        gap: 15px;
    }

    .author-profile__avatar {
        grid-column: 1;
        grid-row: 1;
    }

    .author-profile__avatar,
    .author-profile__avatar img {
        width: 120px;
        height: 120px;
    }

    .author-profile__content {
        grid-column: 2;
        grid-row: 1;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .author-profile__stats {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: flex-start;
    }

    .author-profile__actions {
        grid-column: 1 / -1;
        grid-row: 3;
        justify-content: flex-start;
    }

    .author-profile__button {
        width: 215px;
    }

    .author-contact__row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 579.9px) {
    .author-container {
        padding: 0 15px;
    }

    .author-profile {
        padding: 20px 15px;
    }

    .author-about {
        padding: 10px 0 18px 0;
    }

    .author-profile__header {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto;
        justify-items: center;
        gap: 10px;
    }

    .author-profile__avatar {
        grid-column: 1;
        grid-row: 1;
        margin: 0 auto;
    }

    .author-profile__avatar,
    .author-profile__avatar img {
        width: 120px;
        height: 120px;
    }

    .author-profile__content {
        grid-column: 1;
        grid-row: 2;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin-top: 10px;
        text-align: center;
    }

    .author-profile__socials {
        justify-content: center;
    }

    .author-profile__stats {
        grid-column: 1;
        grid-row: 3;
        justify-content: center;
        margin: 5px 0 10px 0;
    }

    .author-profile__actions {
        grid-column: 1;
        grid-row: 4;
        flex-direction: column;
        width: 100%;
        justify-content: center;
    }

    .author-profile__button {
        width: 100%;
    }

    .author-profile__name,
    .author-about__title {
        font-size: 22px;
        line-height: 30px;
    }

    .author-about__body p {
        font-size: 16px;
    }

    .author-contact__row {
        grid-template-columns: 1fr;
    }

    .author-contact {
        margin-top: 30px;
        padding: 0;
        background: none;
    }

    .author-contact__submit {
        width: 100%;
    }

    .blog-page__subtitle {
        font-size: 30px;
    }
}

@media (max-width: 389.9px) {
    .author-container.blog-page__container {
        padding: 0;
    }

    .author-profile__title {
        padding: 0 15px;
    }

    .author-profile__avatar,
    .author-profile__avatar img {
        width: 90px;
        height: 90px;
    }
    .author-profile__name {
        font-size: 20px;
    }

    .author-profile__role,
    .author-about__body p {
        font-size: 16px;
    }
}