/* MAIN CSS */
html {
    --c-main: #1F2937;
    --c-accent: #4361EE;
    --trans: all 0.2s ease;
}
.big-container {
    max-width: 1536px;
    width: 100%;
    padding: 0 16px;
    margin: auto;
}
a {
    transition: var(--trans);
}
.link {
    color: var(--c-accent);
}
.link:hover {
    color: var(--c-main);
}
.btn {
    color: #fff;
    font-weight: 500;
    background-color: var(--c-accent);
    border-radius: 0.5rem;
    text-align: center;
    padding: 0.75rem 2rem;
}

/* SIMPLE PAGES */
.block-title {
    margin-bottom: 2rem;
}
.simple-page {
    padding: 100px 0;
}
.simple-page h1 {
    font-size: 2.25rem;
    line-height: 2.5rem;
    font-weight: 700;
}
.simple-page__content h2 {
    font-size: 1.95rem;
    font-weight: 600;
    line-height: 1.3;
    margin-top: 1.5rem;
    margin-bottom: 1.8rem;
}
.simple-page__content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
    margin-top: 1.5rem;
    margin-bottom: 1.8rem;
}
.simple-page__content p:not(:last-child) {
    padding-bottom: 0.6rem;
}
.simple-page__content figure {
    padding: 1rem 0;
}

/* SINGLE POSTS */
.block-title {
    margin-bottom: 2rem;
}
.single-post-page-main {
    padding: 100px 0;
}
.single-post-page__post-img {
    padding-bottom: 30px;
}
.single-post-page__header {
    padding-bottom: 1rem;
}
.single-post-page h1 {
    font-size: 2.25rem;
    line-height: 2.5rem;
    font-weight: 700;
}
.single-post-page h2 {
    font-size: 1.95rem;
    font-weight: 600;
    line-height: 1.3;
    margin-top: 1.5rem;
    margin-bottom: 1.8rem;
}
.single-post-page h3 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
    margin-top: 1.5rem;
    margin-bottom: 1.8rem;
}
.single-post-page h4 {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.3;
    margin-top: 1.5rem;
    margin-bottom: 1.8rem;
}
.single-post-page p:not(:last-child) {
    padding-bottom: 1rem;
}
.single-post-page a {
    color: var(--c-accent);
}
.single-post-page a:hover {
    opacity: 0.8;
}
.single-post-page figure {
    padding: 1rem 0;
}
.single-post-page ul {
    list-style-type: disc;
    padding-left: 1.75rem;
}
.single-post-page ul + p {
    padding-top: 15px;
}
.single-post-page li {
    margin-top: 0.375rem;
}
.single-post-page table {
    font-size: 0.875rem;
    line-height: 2.2;
    margin: 10px 0 25px;
}
.single-post-page thead {
    border-bottom-width: 0.5px;
    text-align: left;
}
.single-post-page th,
.single-post-page td {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}
.single-post-page td {
    border-top-width: 0.5px;
}
.single-post-page td:not(:nth-child(1)) {
    border-left-width: 0.5px;
}

/* BLOG AND POST CARDS */
.blog {
    padding: 40px 0;
}
.blog__group {
    padding-top: 30px;
}
.blog__group-title {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: end;
    -ms-flex-align: end;
    align-items: flex-end;
    padding-bottom: 30px;
}
.blog__group-title h2 {
    font-size: 1.55rem;
    line-height: 2rem;
    font-weight: 700;
}
.blog__list {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr 1fr 1fr;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 60px 30px;
}
.blog__button-more {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
    margin-top: 40px;
}
.post-card {
    height: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between
}
.post-card__img {
    height: 240px;
    display: block;
    width: 100%;
    margin-bottom: 32px;
    background-color: grey;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center top
}
.post-card__publisher {
    color: var(--c-dark);
    font-weight: 600;
    font-size: 14px
}
.post-card__title {
    display: block;
    font-family: var(--ff-second);
    color: var(--c-title);
    line-height: 1.3;
    font-size: 1.45rem;
    margin: 12px 0
}
@media screen and (max-width: 1000px) {
    .blog__list {
        -ms-grid-columns: 1fr 1fr;
        grid-template-columns: 1fr 1fr;
        gap: 50px 20px;
    }
    .post-card__title {
        font-size: 1.2rem;
    }
}
@media screen and (max-width: 600px) {
    .blog__group-title {
        display: block;
    }
    .blog__group-title a {
        display: inline-block;
        padding-top: 10px;
    }
    .blog__list {
        -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Author info */
.author-info {
    display: grid;
    grid-template-columns: 100px 1fr;
    align-items: start;
    gap: 20px;
    background-color: #F3F5F9;
    padding: 30px 20px 25px 25px;
    margin-top: 30px;
}
.author-info__photo {
    width: 100px;
    height: 100px;
    border: 5px solid #fff;
    border-radius: 50%;
    overflow: hidden;
}
.author-info__photo img {
    object-fit: cover;
}
h4.author-info__name {
    font-size: 1rem;
    font-weight: bolder;
    margin-top: 0;
    margin-bottom: 5px;
}
p.author-info__text {
    font-size: 0.9rem;
}
@media screen and (max-width: 400px) {
    .author-info {
        grid-template-columns: 1fr;
        gap: 15px;
    } 
}

/* Author Page */
.author-page {
    padding: 120px 0 30px;
}
.author-page__intro {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr 1.5fr;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
}
.author-page h1 {
    font-size: 1.65rem;
    line-height: 1.6rem;
    font-weight: 700;
}
.author-page__intro-photo {
    border: 5px solid #f2f2f2;
    border-radius: 50%;
    overflow: hidden;
}
.author-page__intro-photo img {
    width: 100%;
    object-fit: cover;
}
.author-page__intro-title {
    color: #7e7e7e;
    font-size: 1.1rem;
    padding: 0.5rem 0;
}
.author-page__info {
    padding-top: 30px;
}
.author-page__subtitle {
    font-size: 1.55rem;
    line-height: 2rem;
    font-weight: 700;
    padding: 20px 0;
}
.author-posts {
    padding-bottom: 100px;
}
@media screen and (max-width: 500px) {
    .author-page__intro {
        -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .author-page h1 {
        font-size: 1.35rem;
    }
    .author-page__intro-title {
        font-size: 1rem;
    }
}