/* =========================================
   BLOG PAGE
========================================= */

.blog-page {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    padding-bottom: 80px;
}


/* =========================================
   BREADCRUMB
========================================= */

.blog-breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;

    padding: 22px 0 28px;

    font-size: 14px;
    color: #777;
}

.blog-breadcrumb a {
    color: #777;
    text-decoration: none;
}

.blog-breadcrumb a:hover {
    color: #111;
}

.active-breadcrumb {
    color: #222;
    font-weight: 500;
}


/* =========================================
   HERO
========================================= */

.blog-hero {
    max-width: 820px;
    margin: 35px auto 55px;
    text-align: center;
}

.blog-label {
    margin-bottom: 15px;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;

    color: #777;
}

.blog-hero h1 {
    margin: 0;

    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.08;
    font-weight: 600;
    letter-spacing: -1.5px;

    color: #171717;
}

.blog-hero p {
    max-width: 650px;
    margin: 22px auto 0;

    font-size: 17px;
    line-height: 1.7;

    color: #666;
}


/* =========================================
   CATEGORIES
========================================= */

.blog-categories {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;

    margin-bottom: 28px;
}

.blog-categories a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 40px;
    padding: 0 18px;

    border: 1px solid #dedede;
    border-radius: 999px;

    background: #fff;

    color: #555;
    text-decoration: none;

    font-size: 14px;
    font-weight: 500;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.blog-categories a:hover {
    border-color: #222;
    color: #222;
}

.blog-categories a.active {
    border-color: #191919;
    background: #191919;
    color: #fff;
}


/* =========================================
   RESULT INFO
========================================= */

.blog-result-info {
    margin-bottom: 18px;

    font-size: 14px;
    color: #777;
}


/* =========================================
   BLOG GRID
========================================= */

.blog-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 32px;
}


/* =========================================
   BLOG CARD
========================================= */

.blog-card {
    display: flex;
    flex-direction: column;

    min-width: 0;

    overflow: hidden;

    border: 1px solid #e6e6e6;
    border-radius: 14px;

    background: #fff;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.blog-card:hover {
    transform: translateY(-4px);

    border-color: #d9d9d9;

    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.08);
}


/* =========================================
   CARD IMAGE
========================================= */

.blog-card-image-link {
    display: block;

    aspect-ratio: 16 / 10;

    overflow: hidden;

    background: #f3f3f3;

    text-decoration: none;
}

.blog-card-image {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.4s ease;
}

.blog-card:hover .blog-card-image {
    transform: scale(1.04);
}


/* =========================================
   IMAGE PLACEHOLDER
========================================= */

.blog-card-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    background: #f3f3f3;

    color: #888;

    font-size: 14px;
    letter-spacing: 0.5px;
}


/* =========================================
   CARD CONTENT
========================================= */

.blog-card-content {
    display: flex;
    flex-direction: column;

    flex: 1;

    padding: 23px 24px 25px;
}


/* =========================================
   META
========================================= */

.blog-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;

    margin-bottom: 12px;

    font-size: 12px;
}

.blog-card-category {
    color: #333;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.blog-card-date {
    color: #888;
}

.blog-card-date::before {
    content: "•";
    margin-right: 10px;
    color: #bbb;
}


/* =========================================
   TITLE
========================================= */

.blog-card-title {
    margin: 0 0 12px;

    font-size: 22px;
    line-height: 1.3;
    font-weight: 600;

    letter-spacing: -0.3px;
}

.blog-card-title a {
    color: #191919;
    text-decoration: none;
}

.blog-card-title a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}


/* =========================================
   DESCRIPTION
========================================= */

.blog-card-description {
    display: -webkit-box;

    margin: 0;

    overflow: hidden;

    color: #666;

    font-size: 15px;
    line-height: 1.65;

    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}


/* =========================================
   AUTHOR
========================================= */

.blog-card-author {
    margin-top: 17px;

    font-size: 13px;
    color: #888;
}


/* =========================================
   READ MORE
========================================= */

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    width: fit-content;

    margin-top: auto;
    padding-top: 20px;

    color: #191919;

    text-decoration: none;

    font-size: 14px;
    font-weight: 600;
}

.blog-read-more span {
    transition:
        transform 0.2s ease;
}

.blog-read-more:hover span {
    transform: translateX(4px);
}


/* =========================================
   PAGINATION
========================================= */

.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;

    margin-top: 55px;
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 7px;
}

.blog-pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 40px;
    height: 40px;

    padding: 0 10px;

    border: 1px solid #ddd;
    border-radius: 8px;

    background: #fff;

    color: #444;
    text-decoration: none;

    font-size: 14px;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.blog-pagination a:hover {
    border-color: #222;
    color: #111;
}

.blog-pagination .active {
    border-color: #191919;
    background: #191919;
    color: #fff;
}

.pagination-prev,
.pagination-next {
    min-width: auto !important;
    border: none !important;
    padding: 0 !important;
    background: transparent !important;

    color: #222 !important;
    font-weight: 600;
}


/* =========================================
   EMPTY STATE
========================================= */

.blog-empty {
    padding: 90px 20px;

    text-align: center;

    border: 1px solid #e6e6e6;
    border-radius: 14px;
}

.blog-empty h2 {
    margin: 0 0 10px;

    font-size: 28px;
    font-weight: 600;
}

.blog-empty p {
    margin: 0 0 25px;

    color: #777;
}

.blog-empty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;
    padding: 0 22px;

    border-radius: 8px;

    background: #191919;
    color: #fff;

    text-decoration: none;

    font-size: 14px;
    font-weight: 600;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 900px) {

    .blog-page {
        width: min(100% - 32px, 760px);
    }

    .blog-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 22px;
    }

    .blog-hero {
        margin-top: 25px;
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

    .blog-page {
        width: calc(100% - 28px);
        padding-bottom: 55px;
    }


    /* BREADCRUMB */

    .blog-breadcrumb {
        padding: 16px 0 20px;
        font-size: 13px;
    }


    /* HERO */

    .blog-hero {
        margin: 20px auto 38px;
    }

    .blog-label {
        margin-bottom: 11px;
        font-size: 11px;
        letter-spacing: 1.7px;
    }

    .blog-hero h1 {
        font-size: 38px;
        line-height: 1.12;
        letter-spacing: -1px;
    }

    .blog-hero p {
        margin-top: 17px;

        font-size: 15px;
        line-height: 1.6;
    }


    /* CATEGORIES */

    .blog-categories {
        justify-content: flex-start;

        overflow-x: auto;
        flex-wrap: nowrap;

        margin: 0 -14px 22px;
        padding: 2px 14px 8px;

        scrollbar-width: none;
    }

    .blog-categories::-webkit-scrollbar {
        display: none;
    }

    .blog-categories a {
        flex: 0 0 auto;

        min-height: 38px;
        padding: 0 15px;

        font-size: 13px;
    }


    /* GRID */

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }


    /* CARD */

    .blog-card-content {
        padding: 20px 19px 22px;
    }

    .blog-card-title {
        font-size: 21px;
    }

    .blog-card-description {
        font-size: 14px;
    }


    /* PAGINATION */

    .blog-pagination {
        gap: 15px;
        margin-top: 40px;
    }

    .pagination-numbers {
        gap: 4px;
    }

    .blog-pagination a {
        min-width: 37px;
        height: 37px;
        font-size: 13px;
    }

    .pagination-prev,
    .pagination-next {
        font-size: 13px;
    }


    /* EMPTY */

    .blog-empty {
        padding: 65px 18px;
    }

    .blog-empty h2 {
        font-size: 24px;
    }

}