/* Blog archive and single article */
.am-blog-archive,
.am-blog-single {
    color: #282828;
}

.am-blog-archive > .am-container,
.am-blog-single__container {
    padding-top: 28px;
    padding-bottom: 56px;
}

.am-blog-breadcrumbs {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 22px;
    color: #686868;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.35;
    text-align: center;
}

.am-blog-breadcrumbs a {
    transition: color .2s ease;
}

.am-blog-breadcrumbs a:hover {
    color: #3E5338;
}

.am-blog-archive__title {
    margin: 0 0 30px;
    color: #3F4636;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
}

.am-blog-list {
    display: grid;
    gap: 28px;
}

.am-blog-card {
    min-height: 390px;
    display: grid;
    grid-template-columns: 390px minmax(0, 1fr);
    gap: 28px;
}

.am-blog-card__media {
    position: relative;
    min-width: 0;
    height: 390px;
    display: block;
    overflow: hidden;
    border-radius: 0;
    background: #F2F2F2;
}

.am-blog-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.am-blog-card:hover .am-blog-card__media img {
    transform: scale(1.025);
}

.am-blog-card__placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background: #F2F2F2;
}

.am-blog-card__content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 3px 0 0;
}

.am-blog-card__date,
.am-blog-article__header time {
    display: block;
    margin-bottom: 10px;
    color: #A0A0A0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.3;
}

.am-blog-card__title {
    margin: 0 0 18px;
    color: #3E5338;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
}

.am-blog-card__title a {
    color: inherit;
}

.am-blog-card__excerpt {
    color: #282828;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.36;
}

.am-blog-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: auto;
    padding-top: 22px;
}

.am-blog-card__comments,
.am-blog-card__more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #282828;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
}

.am-blog-card__comments svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #3E5338;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.am-blog-card__more {
    font-weight: 500;
}

.am-blog-card__more svg,
.am-blog-related-card__more svg {
    width: 21px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .22s ease;
}

.am-blog-card__more:hover svg,
.am-blog-related-card__more:hover svg {
    transform: translateX(4px);
}

.am-blog-rating {
    margin: 0 0 8px;
    color: #F5A623;
    font-size: 18px;
    line-height: 1;
    letter-spacing: 1px;
}

.am-blog-play {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 50%;
    width: 62px;
    height: 62px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 6px 16px rgba(0,0,0,.18));
    transition: transform .25s ease;
    pointer-events: none;
}

.am-blog-play svg {
    width: 100%;
    height: 100%;
}

.am-blog-play circle {
    fill: rgba(255,255,255,.94);
    stroke: rgba(62,83,56,.22);
}

.am-blog-play path {
    fill: #6D8965;
}

.am-video-trigger:hover .am-blog-play {
    transform: translate(-50%, -50%) scale(1.08);
}

.am-blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 38px;
}

.am-blog-pagination .page-numbers {
    min-width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    color: #282828;
    font-size: 15px;
    font-weight: 500;
}

.am-blog-pagination .page-numbers.current {
    background: #3E5338;
    color: #fff;
}

.am-blog-pagination .prev,
.am-blog-pagination .next {
    color: #3E5338;
    font-size: 22px;
}

.am-blog-empty {
    padding: 80px 0;
    text-align: center;
}

/* Single article */
.am-blog-single__container {
    max-width: 1200px;
}

.am-blog-single .am-blog-breadcrumbs {
    margin-bottom: 28px;
}

.am-blog-article__header {
    margin-bottom: 30px;
}

.am-blog-article__header h1 {
    margin: 0 0 18px;
    color: #3E5338;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.2;
}

.am-blog-article__lead {
    max-width: 1120px;
    color: #282828;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.45;
}

.am-blog-single__content {
    color: #282828;
    font-size: 16px;
    line-height: 1.5;
}

.am-blog-single__content h2,
.am-blog-single__content h3 {
    margin: 30px 0 14px;
    color: #3E5338;
    font-weight: 600;
    line-height: 1.25;
}

.am-blog-single__content h2 {
    font-size: 24px;
}

.am-blog-single__content h3 {
    font-size: 20px;
}

.am-blog-single__content p {
    margin: 0 0 16px;
}

.am-blog-single__content ul,
.am-blog-single__content ol {
    margin: 0 0 20px;
    padding-left: 24px;
}

.am-blog-single__content img {
    max-width: 100%;
    border-radius: 0;
}

.am-blog-split {
    display: grid;
    grid-template-columns: 390px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    margin: 28px 0;
}

.am-blog-split--reverse {
    grid-template-columns: 390px minmax(0, 1fr);
}

.am-blog-split > div:first-child img,
.am-blog-inline-video {
    width: 390px;
    height: 390px;
    object-fit: cover;
}

.am-blog-split h2:first-child {
    margin-top: 0;
}

.am-blog-inline-video {
    position: relative;
    display: block;
    overflow: hidden;
    border: 0;
    padding: 0;
    background: #F2F2F2;
    cursor: pointer;
}

.am-blog-inline-video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.am-blog-inline-video:hover img {
    transform: scale(1.025);
}

/* Comment form and list */
.am-blog-comments {
    margin-top: 44px;
}

.am-blog-comments > h2,
.am-blog-related > h2 {
    margin: 0 0 20px;
    color: #3E5338;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.25;
}

.am-blog-comment-form {
    display: grid;
    grid-template-columns: 1fr 1fr 200px;
    gap: 12px;
    margin-bottom: 28px;
}

.am-blog-comment-form__message {
    position: relative;
    grid-column: 1 / -1;
}

.am-blog-comment-form textarea {
    width: 100%;
    min-height: 230px;
    resize: vertical;
    border: 1px solid #777;
    border-radius: 0;
    padding: 18px;
    outline: 0;
    color: #282828;
    font-size: 16px;
    line-height: 1.45;
}

.am-blog-comment-form__message small {
    position: absolute;
    right: 16px;
    bottom: 12px;
    color: #909090;
    font-size: 12px;
}

.am-blog-comment-form > label:not(.am-blog-comment-form__message) {
    min-height: 54px;
    display: flex;
    align-items: center;
    border: 1px solid #777;
}

.am-blog-field-icon {
    margin-left: 16px;
    color: #999;
    font-size: 18px;
}

.am-blog-comment-form input {
    min-width: 0;
    width: 100%;
    height: 52px;
    border: 0;
    padding: 0 14px;
    outline: 0;
    font-size: 15px;
}

.am-blog-comment-form .am-button {
    min-height: 54px;
    width: 100%;
}

.am-blog-comment-form__status {
    grid-column: 1 / -1;
    min-height: 18px;
    color: #B90101;
    font-size: 13px;
}

.am-blog-comment-form__status.is-success {
    color: #3E5338;
}

.am-blog-comments__results.is-loading {
    opacity: .55;
    pointer-events: none;
}

.am-blog-comment {
    padding: 17px 0 20px;
    border-bottom: 1px solid #CFCFCB;
}

.am-blog-comment__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 7px;
}

.am-blog-comment__head strong {
    color: #3E5338;
    font-size: 14px;
    font-weight: 600;
}

.am-blog-comment__head time {
    color: #909090;
    font-size: 12px;
}

.am-blog-comment__text,
.am-blog-comment__text p {
    margin: 0;
    color: #282828;
    font-size: 14px;
    line-height: 1.45;
}

.am-blog-comments-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
}

.am-blog-comments-pagination button {
    min-width: 30px;
    height: 30px;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: #282828;
    font-size: 14px;
    cursor: pointer;
}

.am-blog-comments-pagination button.is-active {
    background: #3E5338;
    color: #fff;
}

/* Related posts */
.am-blog-related {
    margin-top: 48px;
}

.am-blog-related__track {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.am-blog-related-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    border: 1px solid #BFC1BC;
    background: #F2F2F2;
}

.am-blog-related-card__image {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    margin: 16px 16px 0;
}

.am-blog-related-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.am-blog-related-card:hover img {
    transform: scale(1.025);
}

.am-blog-related-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 18px 20px 20px;
    text-align: center;
}

.am-blog-related-card h3 {
    margin: 0 0 12px;
    color: #3E5338;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.25;
}

.am-blog-related-card p {
    margin: 0 0 18px;
    color: #282828;
    font-size: 14px;
    line-height: 1.4;
}

.am-blog-related-card__more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: auto;
    color: #282828;
    font-size: 14px;
    font-weight: 500;
}

/* Video modal */
.am-blog-video-modal[aria-hidden="true"] {
    display: none;
}

.am-blog-video-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.am-blog-video-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.72);
    backdrop-filter: blur(2px);
}

.am-blog-video-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 1100px);
    transform: translateY(18px) scale(.98);
    opacity: 0;
    transition: transform .28s ease, opacity .28s ease;
}

.am-blog-video-modal.is-open .am-blog-video-modal__dialog {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.am-blog-video-modal__close {
    position: absolute;
    z-index: 2;
    right: -12px;
    top: -46px;
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 38px;
    line-height: 1;
    cursor: pointer;
}

.am-blog-video-modal__frame {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 4px;
    background: #000;
}

.am-blog-video-modal__frame iframe,
.am-blog-video-modal__frame video {
    width: 100%;
    height: 100%;
    border: 0;
}

body.am-blog-video-open {
    overflow: hidden;
}

@media (max-width: 991px) {
    .am-blog-card {
        grid-template-columns: 330px minmax(0, 1fr);
        min-height: 330px;
    }

    .am-blog-card__media {
        height: 330px;
    }

    .am-blog-card__title {
        font-size: 21px;
    }

    .am-blog-card__excerpt {
        font-size: 15px;
    }

    .am-blog-split,
    .am-blog-split--reverse {
        grid-template-columns: 330px minmax(0, 1fr);
    }

    .am-blog-split > div:first-child img,
    .am-blog-inline-video {
        width: 330px;
        height: 330px;
    }
}

@media (max-width: 767px) {
    .am-blog-archive > .am-container,
    .am-blog-single__container {
        width: min(calc(100% - 20px), 1200px);
        padding-top: 18px;
        padding-bottom: 36px;
    }

    .am-blog-breadcrumbs {
        gap: 6px;
        margin-bottom: 16px;
        font-size: 10px;
    }

    .am-blog-archive__title {
        margin-bottom: 20px;
        font-size: 24px;
    }

    .am-blog-list {
        gap: 20px;
    }

    .am-blog-card {
        min-height: 0;
        display: block;
    }

    .am-blog-card__media {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .am-blog-card__content {
        padding-top: 9px;
    }

    .am-blog-card__date,
    .am-blog-article__header time {
        margin-bottom: 5px;
        font-size: 11px;
    }

    .am-blog-card__title {
        margin-bottom: 8px;
        font-size: 16px;
        line-height: 1.2;
    }

    .am-blog-card__excerpt {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 7;
        font-size: 14px;
        line-height: 1.28;
    }

    .am-blog-card__meta {
        gap: 12px;
        padding-top: 10px;
    }

    .am-blog-card__comments,
    .am-blog-card__more {
        gap: 5px;
        font-size: 12px;
    }

    .am-blog-card__comments svg {
        width: 15px;
        height: 15px;
    }

    .am-blog-card__more svg {
        width: 17px;
    }

    .am-blog-rating {
        margin-bottom: 4px;
        font-size: 14px;
    }

    .am-blog-play {
        width: 54px;
        height: 54px;
    }

    .am-blog-pagination {
        gap: 8px;
        margin-top: 28px;
    }

    .am-blog-pagination .page-numbers {
        min-width: 30px;
        height: 30px;
        font-size: 13px;
    }

    .am-blog-single .am-blog-breadcrumbs {
        margin-bottom: 18px;
    }

    .am-blog-article__header {
        margin-bottom: 18px;
    }

    .am-blog-article__header h1 {
        margin-bottom: 10px;
        font-size: 24px;
    }

    .am-blog-article__lead {
        font-size: 14px;
        line-height: 1.35;
    }

    .am-blog-single__content {
        font-size: 14px;
        line-height: 1.4;
    }

    .am-blog-single__content h2 {
        margin: 22px 0 10px;
        font-size: 18px;
    }

    .am-blog-single__content h3 {
        font-size: 16px;
    }

    .am-blog-single__content p {
        margin-bottom: 12px;
    }

    .am-blog-split,
    .am-blog-split--reverse {
        display: block;
        margin: 18px 0;
    }

    .am-blog-split > div:first-child,
    .am-blog-split--reverse > div:first-child {
        margin-bottom: 12px;
    }

    .am-blog-split > div:first-child img,
    .am-blog-inline-video {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .am-blog-comments {
        margin-top: 30px;
    }

    .am-blog-comments > h2,
    .am-blog-related > h2 {
        margin-bottom: 13px;
        font-size: 18px;
    }

    .am-blog-comment-form {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-bottom: 18px;
    }

    .am-blog-comment-form__message {
        grid-column: 1;
    }

    .am-blog-comment-form textarea {
        min-height: 220px;
        padding: 12px;
        font-size: 14px;
    }

    .am-blog-comment-form > label:not(.am-blog-comment-form__message),
    .am-blog-comment-form .am-button {
        min-height: 48px;
    }

    .am-blog-comment-form input {
        height: 46px;
        font-size: 13px;
    }

    .am-blog-comment__head strong,
    .am-blog-comment__text,
    .am-blog-comment__text p {
        font-size: 12px;
    }

    .am-blog-comment__head time {
        font-size: 10px;
    }

    .am-blog-comments-pagination {
        justify-content: center;
        margin-top: 18px;
    }

    .am-blog-related {
        margin-top: 34px;
        overflow: hidden;
    }

    .am-blog-related > h2 {
        text-align: center;
    }

    .am-blog-related__track {
        width: calc(100% + 20px);
        margin-left: -10px;
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: 72%;
        grid-template-columns: none;
        gap: 10px;
        overflow-x: auto;
        padding: 0 14% 10px;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .am-blog-related__track::-webkit-scrollbar {
        display: none;
    }

    .am-blog-related-card {
        scroll-snap-align: center;
    }

    .am-blog-related-card__image {
        margin: 8px 8px 0;
    }

    .am-blog-related-card__body {
        padding: 12px;
    }

    .am-blog-related-card h3 {
        font-size: 15px;
    }

    .am-blog-related-card p,
    .am-blog-related-card__more {
        font-size: 12px;
    }

    .am-blog-video-modal {
        padding: 10px;
    }

    .am-blog-video-modal__close {
        right: 0;
        top: -42px;
    }
}


/* 6.38 — article/page container ends flush with the following section. */
.am-blog-single__container {
    padding-bottom: 0;
}

@media (max-width: 767px) {
    .am-blog-single__container {
        padding-bottom: 0;
    }
}
