/* ==========================================================================
   Blog Archive — page styles
   Figma nodes: 4539:16928 · 4520:33577 · 4520:32878 · 4520:32482
   Sections: Hero · Trending Articles · Filters · Post Grid
   ========================================================================== */

/* ==========================================================================
   1. HERO
   ========================================================================== */

.blog-hero {
    position: relative;
    width: 100%;
    height: 400px;
    background-color: #1c1c1c;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.blog-hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.blog-hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 175%;
    top: -4.96%;
    object-fit: cover;
    display: block;
}

.blog-hero__overlay,
.blog-hero__overlay--solid {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

.blog-hero__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 626px;
    max-width: calc(100% - 120px);
    text-align: center;
}

.blog-hero__title {
    font-family: 'Freight Neo', 'freight-neo-pro', Georgia, serif;
    font-weight: 400;
    font-style: normal;
    font-size: 48px;
    line-height: 1;
    color: #fff;
    margin: 0;
}

/* ==========================================================================
   2. TRENDING ARTICLES
   ========================================================================== */

.blog-trending {
    background-color: #f0ebdf;
    padding: 60px;
}

.blog-trending__inner {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.blog-trending__label {
    font-family: 'Geist', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1;
    letter-spacing: 0;
    text-transform: uppercase;
    color: #1c1c1c;
    margin: 0;
}

.blog-trending__cards {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.blog-trending__card {
    flex: 1 0 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.blog-trending__card-link {
    display: block;
    text-decoration: none;
}

.blog-trending__img-wrap {
    aspect-ratio: 426 / 320;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.blog-trending__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.blog-trending__card:hover .blog-trending__img {
    transform: scale(1.03);
}

.blog-trending__img-placeholder {
    width: 100%;
    height: 100%;
    background-color: #c8bbab;
}

.blog-trending__card-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: #1c1c1c;
}

.blog-trending__number {
    font-family: 'Freight Neo', 'freight-neo-pro', Georgia, serif;
    font-weight: 400;
    font-style: normal;
    font-size: 40px;
    line-height: 1.15;
    margin: 0;
}

.blog-trending__title {
    font-family: 'Geist', sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 1.1;
    margin: 0;
}

.blog-trending__title a {
    color: inherit;
    text-decoration: none;
}

.blog-trending__title a:hover {
    text-decoration: underline;
}

.blog-trending__meta {
    display: flex;
    gap: 20px;
    align-items: center;
    padding-top: 10px;
    flex-wrap: wrap;
}

.blog-trending__meta-cat {
    font-family: 'Geist', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1;
    text-transform: uppercase;
    color: #1c1c1c;
}

.blog-trending__meta-date {
    font-family: 'Geist', sans-serif;
    font-weight: 300;
    font-size: 14px;
    line-height: 1.3;
    color: #1c1c1c;
    opacity: 0.5;
}

/* ==========================================================================
   3. FILTERS
   ========================================================================== */

.blog-filters {
    background-color: #fff;
    padding:20px 0px;
}

.blog-filters__inner {
    display: flex;
    gap: 40px;
    align-items: center;
    padding: 0 60px;
}

.blog-filters__field {
    flex: 1 0 0;
    min-width: 0;
}

.blog-filters__sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.blog-filters__input-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #1c1c1c;
    padding: 14px 0;
}

.blog-filters__search-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: #1c1c1c;
    opacity: 0.5;
}

.blog-filters__input {
    flex: 1 0 0;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    font-family: 'Geist', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1;
    color: #1c1c1c;
    opacity: 0.5;
    padding: 0;
}

.blog-filters__input:focus {
    opacity: 1;
}

.blog-filters__input::placeholder {
    color: #1c1c1c;
    opacity: 0.5;
}

/* Remove browser default search cancel button */
.blog-filters__input::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

.blog-filters__select-wrap {
    position: relative;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #1c1c1c;
    padding: 14px 0;
}

.blog-filters__select {
    flex: 1 0 0;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    font-family: 'Geist', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1;
    color: #1c1c1c;
    opacity: 0.5;
    cursor: pointer;
    padding: 0;
    padding-right: 24px;
}

.blog-filters__chevron {
    position: absolute;
    right: 0;
    width: 16px;
    height: 16px;
    color: #1c1c1c;
    pointer-events: none;
    flex-shrink: 0;
}

/* ==========================================================================
   4. BLOG GRID
   ========================================================================== */

.blog-grid {
    background-color: #fff;
    padding: 40px 60px 80px;
}

.blog-grid__inner {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

.blog-grid__posts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 20px;
    width: 100%;
}

.blog-grid__card {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.blog-grid__card-img-link {
    display: block;
    text-decoration: none;
}

.blog-grid__img-wrap {
    aspect-ratio: 426 / 320;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.blog-grid__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.blog-grid__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-grid__card:hover .blog-grid__img {
    transform: scale(1.03);
}

.blog-grid__img-placeholder {
    width: 100%;
    height: 100%;
    background-color: #c8bbab;
}

.blog-grid__card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: #1c1c1c;
}

.blog-grid__meta {
    display: flex;
    gap: 20px;
    align-items: center;
    padding-bottom: 10px;
    flex-wrap: wrap;
}

.blog-grid__meta-cat {
    font-family: 'Geist', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1;
    text-transform: uppercase;
    color: #1c1c1c;
}

.blog-grid__meta-date {
    font-family: 'Geist', sans-serif;
    font-weight: 300;
    font-size: 14px;
    line-height: 1.3;
    color: #1c1c1c;
    opacity: 0.5;
}

.blog-grid__meta-read {
    font-family: 'Geist', sans-serif;
    font-weight: 300;
    font-size: 14px;
    line-height: 1;
    letter-spacing: 1.12px;
    text-transform: uppercase;
    color: #1c1c1c;
    opacity: 0.5;
}

.blog-grid__card-title {
    font-family: 'Geist', sans-serif;
    font-weight: 500;
    font-size: 24px;
    line-height: 1.1;
    margin: 0;
}

.blog-grid__card-title a {
    color: inherit;
    text-decoration: none;
}

.blog-grid__card-title a:hover {
    text-decoration: underline;
}

.blog-grid__excerpt {
    font-family: 'Geist', sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.39;
    color: #1c1c1c;
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.blog-grid__read-more {
    display: inline-flex;
    align-items: center;
    font-family: 'Geist', sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1;
    letter-spacing: 0.16px;
    color: #1c1c1c;
    text-decoration: none;
    border-bottom: 1px solid #1c1c1c;
    padding-bottom: 2px;
    align-self: flex-start;
    transition: opacity 0.2s ease;
}

.blog-grid__read-more:hover {
    opacity: 0.6;
}

.blog-grid__none {
    grid-column: 1 / -1;
    font-family: 'Geist', sans-serif;
    font-weight: 300;
    font-size: 16px;
    color: #1c1c1c;
    opacity: 0.5;
}

/* Load more button */
.blog-grid__load-wrap {
    display: flex;
    justify-content: center;
}

.blog-grid__load-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Geist', sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1;
    letter-spacing: 0.16px;
    text-transform: capitalize;
    color: #1c1c1c;
    background: transparent;
    border: 1px solid #1c1c1c;
    border-radius: 1000px;
    padding: 16px 25px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.blog-grid__load-more:hover {
    background: #1c1c1c;
    color: #fff;
}

.blog-grid__load-more:disabled,
.blog-grid__load-more[aria-busy="true"] {
    opacity: 0.5;
    cursor: not-allowed;
}

.blog-grid__load-more[aria-busy="true"]::after {
    content: '…';
}

/* ==========================================================================
   5. LOADING STATE
   ========================================================================== */

.blog-grid--loading .blog-grid__posts {
    opacity: 0.45;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.blog-grid--loading .blog-grid__load-more {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==========================================================================
   6. RESPONSIVE
   ========================================================================== */

@media (max-width: 1100px) {
    .blog-trending__cards {
        flex-wrap: wrap;
    }

    .blog-trending__card {
        flex: 1 0 calc(50% - 10px);
    }
}

@media (max-width: 900px) {
    .blog-trending,
    .blog-grid {
        padding-left: 30px;
        padding-right: 30px;
    }

    .blog-filters__inner {
        flex-wrap: wrap;
        padding: 0 30px;
        gap: 0;
    }

    .blog-filters__field {
        flex: 0 0 100%;
    }

    .blog-grid__posts {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .blog-hero {
        height: 300px;
    }

    .blog-hero__title {
        font-size: 36px;
    }

    .blog-trending,
    .blog-grid {
        padding-left: 20px;
        padding-right: 20px;
        padding-top: 40px;
    }

    .blog-trending__cards {
        flex-direction: column;
    }

    .blog-trending__card {
        flex: 1 0 0;
    }

    .blog-filters__inner {
        padding: 0 20px;
    }
}
