/* Molecule: Card Post A */
.m-card-post-a__content {
    padding: 1.5rem 1.625rem;

    @media (width > 768px) {
        padding: 2.25rem 1.875rem 2.9375rem 2.4375rem;
    }
}

.m-card-post-a__heading {
    font-size: 1.75rem;
    line-height: 2rem;
}

/* Molecule: Card Post B */

.m-card-post-b {
    display: flex;
    flex-direction: column;
    height: 100%;
    align-items: flex-start;
    padding-bottom: 2rem;
}

.m-card-post-b__media {
    width: 100%;
    height: 10.1875rem;

    @media ( width > 768px ) {
        height: 12.5rem;
    }
}

.m-card-post-b__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.m-card-post-b__content {
    padding-top: 1.625rem;
    padding-left: 1.625rem;
    padding-right: 1.625rem;
}

.m-card-post-b .a-button {
    margin-top: auto;
}

.m-card-post-b__button {
    margin-top: auto;
    padding-left: 1.625rem;
    padding-right: 1.625rem;
}

.m-card-post-b__button .a-button {
    margin-top: 1.4375rem;
}

/* Molecule: Card Post C */

.m-card-post-c {
    gap: 1.25rem;
    align-content: start;
}

.m-card-post-c__media {
    aspect-ratio: 481 / 308;
}

.m-card-post-c__media:hover .m-card-post-c__image {
    transform: scale(1.025);
}

.m-card-post-c__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background-color: var(--color-grey-lighter);
    transition: all 0.25s;
}

.m-card-post-c__content {
    gap: 0.5rem;
}

.m-card-post-c__date {
    line-height: 1;
    font-size: 1rem;
    color: var(--color-grey);
}

.m-card-post-c__heading {
    font-size: 1.5rem;
    text-wrap: initial;
}

.m-card-post-c__link {
    color: #000;
    text-decoration: none;
}

.m-card-post-c__link:hover {
    color: #c1ab94 !important;
}

.m-card-post-c__text {
    max-height: 2.5em;
    color: var(--color-grey);
}

/* Molecule: Card Post D */

.m-card-post-d {
    display: flex;
    gap: 1rem;
    align-content: start;
}

.m-card-post-d__media {
    aspect-ratio: 56 / 44;
    max-width: 56px;
    min-width: 56px;
    margin-bottom: auto;
}

.m-card-post-d__media:hover .m-card-post-d__image {
    transform: scale(1.025);
}

.m-card-post-d__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: var(--color-grey-lighter);
    transition: all 0.25s;
}

.m-card-post-d__heading {
    font-size: 1.125rem;
    margin: 0;
    text-wrap: initial;
}

.m-card-post-d__link {
    text-decoration: none;
    color: #000000;
}

.m-card-post-d__link:hover {
    color: #c1ab94 !important;
}

/* Molecule: Card Post F */

.m-card-post-f {
    gap: 1rem;
    align-content: start;
}

.m-card-post-f__media {
    aspect-ratio: 160 / 144;
    max-width: 10rem;
    min-width: 10rem;
    margin-bottom: auto;
    flex: 1;

    @media (width <= 640px) {
        max-width: initial;
    }
}

.m-card-post-f__media:hover .m-card-post-f__image {
    transform: scale(1.025);
}

.m-card-post-f__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background-color: var(--color-grey-lighter);
    transition: all 0.25s;
}

.m-card-post-f__content {
    gap: 0.5rem;
    flex: 1;
    align-content: start;

    @media (width <= 768px) {
        min-width: 14rem;
    }
}

.m-card-post-f__heading {
    line-height: 1.1;
    text-wrap: initial;
}

.m-card-post-f__link {
    font-size: 1.5rem;
    color: #000;
    text-decoration: none;
    display: block;
}

.m-card-post-f__link:hover {
    color: #c1ab94 !important;
}

.m-card-post-f__text {
    max-height: 2.5em;
    color: var(--color-grey);
}

/* Molecule: Recent Posts A */

.m-recent-posts-a {
    display: grid;
    gap: 1.25rem;
}

.m-recent-posts-a__title {
    font-size: 1.125rem;
    margin: 0;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.m-recent-posts-a__title:after {
    content: '';
    flex: 1;
    height: 1px;
    border-top: 1px solid #D9D9D9;
    top: 0.125rem;
    position: relative;
}

/* Molecule: Search A */

.m-search-a {
    line-height: 1;
    display: grid;
    gap: 1.5rem;
}

.m-search-a__title {
    font-size: 1.125rem;
    margin: 0;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.m-search-a__title:after {
    content: '';
    flex: 1;
    height: 1px;
    border-top: 1px solid #D9D9D9;
    top: 0.125rem;
    position: relative;
}

.m-search-a__content {

}

.m-search-a__content form {
    gap: 0.75rem;
}

/* Molecule: Categories List A */

.m-categories-a {
    font-size: 1.125rem;
    font-family: var(--font-family-heading);
    line-height: 1;
    display: grid;
    gap: 1.25rem;
}

.m-categories-a__title {
    font-size: 1.125rem;
    margin: 0;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.m-categories-a__title:after {
    content: '';
    flex: 1;
    height: 1px;
    border-top: 1px solid #D9D9D9;
    top: 0.125rem;
    position: relative;
}

.m-categories-a__items {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 1.25rem;
}

.m-categories-a__item {
    text-transform: uppercase;
    margin: 0;
}

.m-categories-a__link {
    color: var(--color-mute);
    text-decoration: none;
}

.m-categories-a__link:hover,
.m-categories-a__link.is-active {
    color: #c1ab94 !important;
}
