/* =========================================================
   TUSK TRAVEL - BLOG / JOURNAL FEED
   ========================================================= */

.tt-home-journal {
    padding: 80px 0;
    background: #f7f7f5;
}

.tt-home-journal .container {
    max-width: 1320px;
}


/* Heading
---------------------------------------- */

.tt-home-journal__heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 32px;
}

.tt-home-journal__heading-copy {
    max-width: 760px;
}

.tt-home-journal__eyebrow {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #9a2e35;
}

.tt-home-journal__title {
    margin: 0 0 12px;
    font-size: clamp(30px, 3vw, 42px);
    line-height: 1.15;
    font-weight: 700;
    color: #202020;
}

.tt-home-journal__intro {
    max-width: 720px;
    margin: 0;
    font-size: 17px;
    line-height: 1.7;
    color: #646464;
}


/* Header view-all link
---------------------------------------- */

.tt-home-journal__desktop-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    flex: 0 0 auto;

    padding-bottom: 5px;

    font-size: 15px;
    line-height: 1.4;
    font-weight: 700;

    color: #252525;
    text-decoration: none;

    border-bottom: 1px solid #b6b6b1;

    transition:
        color .2s ease,
        border-color .2s ease,
        gap .2s ease;
}

.tt-home-journal__desktop-link:hover {
    gap: 13px;
    color: #9a2e35;
    border-color: #9a2e35;
}


/* Grid
---------------------------------------- */

.tt-home-journal__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}


/* Card
---------------------------------------- */

.tt-journal-card {
    min-width: 0;
    overflow: hidden;

    background: #fff;

    border: 1px solid #e6e5e1;
    border-radius: 12px;

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}

.tt-journal-card:hover {
    transform: translateY(-4px);
    border-color: #d9d7d1;
    box-shadow: 0 14px 35px rgba(0, 0, 0, .07);
}


/* Image
---------------------------------------- */

.tt-journal-card__image {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #e9e8e4;
}

.tt-journal-card__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;

    transition: transform .45s ease;
}

.tt-journal-card:hover .tt-journal-card__img {
    transform: scale(1.035);
}


/* Category badge
---------------------------------------- */

.tt-journal-card__category {
    position: absolute;
    left: 14px;
    bottom: 14px;

    max-width: calc(100% - 28px);

    padding: 7px 11px;

    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;

    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: .2px;

    color: #252525;
    background: rgba(255, 255, 255, .94);

    border-radius: 6px;

    backdrop-filter: blur(4px);
}


/* Content
---------------------------------------- */

.tt-journal-card__content {
    padding: 19px 19px 20px;
}

.tt-journal-card__meta {
    margin-bottom: 9px;

    font-size: 12px;
    line-height: 1.4;
    font-weight: 600;

    color: #8a8985;
}

.tt-journal-card__title {
    margin: 0 0 10px;

    font-size: 19px;
    line-height: 1.38;
    font-weight: 700;

    color: #242424;
}

.tt-journal-card__title a {
    color: inherit;
    text-decoration: none;
}

.tt-journal-card__title a:hover {
    color: #9a2e35;
}

.tt-journal-card__excerpt {
    display: -webkit-box;
    overflow: hidden;

    margin: 0 0 17px;

    font-size: 14.5px;
    line-height: 1.65;

    color: #696967;

    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.tt-journal-card__link {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    font-size: 14px;
    line-height: 1.4;
    font-weight: 700;

    color: #9a2e35;
    text-decoration: none;

    transition: gap .2s ease;
}

.tt-journal-card__link:hover {
    gap: 11px;
}


/* Mobile view-all button
---------------------------------------- */

.tt-home-journal__mobile-footer {
    display: none;
}

.tt-home-journal__mobile-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    min-height: 48px;
    padding: 12px 20px;

    font-size: 15px;
    font-weight: 700;

    color: #fff;
    background: #9a2e35;

    border-radius: 7px;

    text-decoration: none;
}


/* Empty state
---------------------------------------- */

.tt-home-journal__empty {
    margin: 10px 0 0;
    padding: 25px;

    text-align: center;

    background: #fff;
    border: 1px solid #e6e5e1;
    border-radius: 10px;

    color: #666;
}


/* Tablet
---------------------------------------- */

@media (max-width: 1199px) {

    .tt-home-journal {
        padding: 65px 0;
    }

    .tt-home-journal__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


/* Mobile
---------------------------------------- */

@media (max-width: 767px) {

    .tt-home-journal {
        padding: 52px 0;
    }

    .tt-home-journal__heading {
        display: block;
        margin-bottom: 24px;
    }

    .tt-home-journal__eyebrow {
        margin-bottom: 7px;
        font-size: 12px;
    }

    .tt-home-journal__title {
        margin-bottom: 10px;
        font-size: 28px;
        line-height: 1.2;
    }

    .tt-home-journal__intro {
        font-size: 15.5px;
        line-height: 1.65;
    }

    .tt-home-journal__desktop-link {
        display: none;
    }

    .tt-home-journal__grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .tt-journal-card {
        border-radius: 10px;
    }

    .tt-journal-card__image {
        aspect-ratio: 16 / 9;
    }

    .tt-journal-card__content {
        padding: 17px 17px 18px;
    }

    .tt-journal-card__title {
        font-size: 19px;
    }

    .tt-journal-card__excerpt {
        margin-bottom: 14px;
        -webkit-line-clamp: 2;
    }

    .tt-home-journal__mobile-footer {
        display: flex;
        justify-content: center;
        margin-top: 25px;
    }

}


/* Small Mobile
---------------------------------------- */

@media (max-width: 480px) {

    .tt-home-journal {
        padding: 45px 0;
    }

    .tt-home-journal__title {
        font-size: 26px;
    }

    .tt-journal-card__category {
        left: 12px;
        bottom: 12px;
    }

}