/* Blog page */
.blog-hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    padding: 0 0 20px;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.08) 34%, rgba(0, 0, 0, 0.64) 100%),
        url("../images/blog-hero.webp") center / cover no-repeat;
    color: #fff;
}

.blog-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.blog-hero h1 {
    width: min(100%, 760px);
    color: #fff;
    text-align: center;
}

.blog-hero h1 span {
    display: block;
}

.blog-hero h1 span:last-child {
    color: var(--primary);
}

.blog-hero-tagline {
    margin-bottom: 0;
    text-align: center;
}

.blog-articles-inner > p {
    width: min(100%, 560px);
    margin: 0 auto 40px;
    text-align: center;
}

.blog-articles {
    padding: var(--section-space) 0;
    background: #fff;
}

.blog-articles-inner > h2 {
    margin-bottom: clamp(28px, 4vw, 56px);
    text-align: center;
}

.blog-articles-inner {
    width: 95%;
    max-width: none;
}

.blog-card-grid {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.blog-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: clamp(24px, 3vw, 44px);
    border: 0;
    background: transparent;
}

.blog-card-media img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.blog-card-media {
    margin-bottom: 34px;
}

.blog-card-content {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.blog-card h3 {
    margin: 0;
    font-family: var(--body-font);
    font-size: 16px;
    font-weight: 600;
    line-height: 26px;
    overflow-wrap: anywhere;
}

.blog-card p,
.blog-card a {
    font-size: 16px;
    line-height: 26px;
    overflow-wrap: anywhere;
}

.blog-card-content > p:not(.blog-card-category) {
    margin: 0;
}

.blog-card-content > a:last-child {
    margin-top: 2px;
}

.blog-card-category {
    margin: 2px 0 0;
}

.blog-card a {
    width: fit-content;
    max-width: 100%;
    font-weight: 600;
}

.blog-card a::after {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    margin-top: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.blog-card a:hover::after,
.blog-card a:focus-visible::after {
    transform: scaleX(1);
}

.blog-list-hero h1 {
    width: min(100%, 680px);
}

.blog-card time {
    display: block;
    margin: 0 0 8px;
    color: rgba(0, 0, 0, 0.58);
    font-family: var(--button-font);
    font-size: 12px;
    font-weight: 600;
    line-height: 20px;
    text-transform: uppercase;
}

.blog-card-media {
    display: block;
    overflow: hidden;
    width: 100%;
    min-width: 0;
}

.blog-card-media::after,
.blog-card h3 a::after {
    content: none;
}

.blog-card h3 a {
    display: inline;
    font: inherit;
}

.blog-detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    padding: 140px 0 46px;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.08) 26%, rgba(0, 0, 0, 0.68) 100%),
        var(--blog-detail-image) center / cover no-repeat;
    color: #fff;
}

.blog-detail-hero-content {
    position: relative;
    z-index: 1;
    width: 90%;
    text-align: left;
}

.blog-detail-back-bottom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: max-content;
    min-height: 40px;
    margin-top: 34px;
    padding: 0 18px;
    border: 1px solid rgba(0, 0, 0, 0.35);
    background: transparent;
    color: var(--black);
    font-family: var(--button-font);
    font-size: 12px;
    font-weight: 600;
    line-height: 20px;
    text-transform: uppercase;
    letter-spacing: 1.6px;
}

.blog-detail-back-bottom::before {
    content: "\2190";
    color: var(--primary);
    font-size: 17px;
    font-weight: 400;
    line-height: 1;
    transition: transform 260ms ease;
}

.blog-detail-back-bottom:hover,
.blog-detail-back-bottom:focus-visible {
    border-color: var(--primary);
    background: var(--primary);
    color: #000;
}

.blog-detail-back-bottom:hover::before,
.blog-detail-back-bottom:focus-visible::before {
    color: #000;
    transform: translateX(-3px);
}

.blog-detail-back-bottom:focus-visible {
    outline: 2px solid var(--black);
    outline-offset: 3px;
}

.blog-detail-hero-content p,
.blog-detail-hero-content time {
    display: block;
    margin: 0 0 14px;
    color: #fff;
    font-family: var(--button-font);
    font-size: 13px;
    font-weight: 600;
    line-height: 22px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.blog-detail-hero-content h1 {
    width: min(100%, 900px);
    margin: 0 0 16px;
    color: #fff;
    text-align: left;
    overflow-wrap: anywhere;
}

.blog-detail-body {
    padding: var(--section-space) 0;
    background: #fff;
}

.blog-detail-body-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(28px, 5vw, 64px);
}

.blog-detail-article {
    min-width: 0;
}

.blog-detail-article-head {
    margin-bottom: 30px;
}

.blog-detail-article-head > p {
    width: min(100%, 760px);
    color: rgba(0, 0, 0, 0.68);
    font-size: 16px;
    line-height: 26px;
}

.blog-detail-featured-image {
    overflow: hidden;
    margin: 22px 0 28px;
}

.blog-detail-featured-image img {
    width: 100%;
    aspect-ratio: 16 / 8;
    object-fit: cover;
}

.blog-detail-article h2 {
    margin-bottom: 24px;
    overflow-wrap: anywhere;
}

.blog-detail-article section + section {
    margin-top: 32px;
}

.blog-detail-article h3 {
    margin: 0 0 12px;
    font-family: var(--heading-font);
    font-size: 24px;
    font-weight: 400;
    line-height: 34px;
    overflow-wrap: anywhere;
}

.blog-detail-article p,
.blog-detail-article li {
    color: rgba(0, 0, 0, 0.72);
    font-size: 16px;
    line-height: 26px;
}

.blog-detail-article p {
    margin-bottom: 14px;
}

.blog-detail-article ul {
    display: grid;
    gap: 10px;
    margin: 0 0 16px;
    padding-left: 20px;
}

.blog-detail-recent {
    align-self: start;
    padding: 22px;
    background: #f4eee3;
}

.blog-detail-recent > h2 {
    margin-bottom: 18px;
}

.blog-detail-recent-card {
    display: grid;
    gap: 8px;
    padding: 14px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.14);
}

.blog-detail-recent-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.blog-detail-recent-card span,
.blog-detail-recent-card time {
    color: rgba(0, 0, 0, 0.62);
    font-family: var(--button-font);
    font-size: 11px;
    font-weight: 600;
    line-height: 18px;
    text-transform: uppercase;
}

.blog-detail-recent-card strong {
    font-family: var(--body-font);
    font-size: 14px;
    line-height: 24px;
    overflow-wrap: anywhere;
}

@media (min-width: 980px) {
    .blog-detail-body-inner {
        grid-template-columns: minmax(0, 1fr) 340px;
        align-items: start;
    }

    .blog-detail-recent {
        position: sticky;
        top: 100px;
    }
}

@media (min-width: 768px) {
    .blog-articles-inner > p {
        margin-left: 0;
        margin-bottom: 20px;
        text-align: left;
    }

    .blog-articles-inner > h2 {
        text-align: left;
    }

    .blog-hero {
        background-position: center;
    }

    .blog-hero h1,
    .blog-list-hero h1,
    .blog-detail-hero-content h1 {
        font-size: 26px;
        line-height: 36px;
    }

    .blog-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0;
    }

    .blog-card {
        padding: clamp(24px, 3vw, 44px);
        border-bottom: 1px solid var(--line);
    }

    .blog-card:nth-child(odd) {
        border-right: 1px solid var(--line);
    }

    .blog-detail-recent {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
    }

    .blog-detail-recent > h2 {
        grid-column: 1 / -1;
    }

    .blog-detail-recent-card {
        align-content: start;
        border-top: 1px solid rgba(0, 0, 0, 0.14);
    }
}

@media (min-width: 1024px) {
    .blog-hero {
        min-height: 100vh;
        padding-bottom: 60px;
    }

    .blog-card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0;
    }

    .blog-card {
        padding: clamp(32px, 2.35vw, 45px);
        border-right: 1px solid var(--line);
        border-bottom: 1px solid var(--line);
    }

    .blog-card:nth-child(3n) {
        border-right: 0;
    }

    .blog-detail-recent {
        display: block;
    }
}

@media (max-width: 767px) {
    .blog-hero-content,
    .blog-detail-body-inner {
        width: 95%;
        max-width: none;
        margin-right: auto;
        margin-left: auto;
    }

    .blog-hero {
        min-height: 62svh;
        padding: 96px 0 28px;
    }

    .blog-hero-content {
        align-items: flex-start;
        justify-content: flex-start;
    }

    .blog-hero h1,
    .blog-list-hero h1,
    .blog-detail-hero-content h1 {
        font-size: 18px;
        line-height: 28px;
        text-align: left;
    }

    .blog-hero-tagline {
        text-align: left;
    }

    .blog-articles-inner > p {
        margin-left: 0;
        margin-bottom: var(--content-gap);
        text-align: left;
    }

    .blog-articles-inner > h2 {
        text-align: left;
    }

    .blog-card {
        padding: var(--section-space) 0;
    }

    .blog-card-media {
        margin-bottom: var(--content-gap);
    }

    .blog-card + .blog-card {
        border-top: 1px solid var(--line);
    }

    .blog-card-content {
        padding-top: var(--content-gap);
    }

    .blog-detail-article p,
    .blog-detail-article li {
        font-size: 14px;
        line-height: 24px;
    }

    main .blog-card:hover {
        transform: none;
    }

    .blog-detail-hero {
        min-height: 72svh;
        padding: 104px 0 34px;
    }

    .blog-detail-hero-content p,
    .blog-detail-hero-content time {
        font-size: 11px;
        line-height: 19px;
        letter-spacing: 1.3px;
    }

    .blog-detail-article-head > p {
        font-size: 14px;
        line-height: 24px;
    }

    .blog-detail-featured-image img {
        aspect-ratio: 4 / 3;
    }

    .blog-detail-article h3 {
        font-size: 18px;
        line-height: 28px;
    }

    .blog-detail-recent {
        padding: 18px;
    }
}

@media (min-width: 1200px) {
    .blog-articles-inner > p {
        margin-right: auto;
        margin-bottom: 40px;
        margin-left: auto;
        text-align: center;
    }

    .blog-articles-inner > h2 {
        text-align: center;
    }

    .blog-hero h1,
    .blog-list-hero h1,
    .blog-detail-hero-content h1 {
        font-size: 36px;
        line-height: 46px;
    }

    .blog-card h3 {
        font-size: 18px;
        line-height: 28px;
    }

}
