/* =====================================================
   PROJECT CATEGORY
===================================================== */

.project-archive {
    min-height: 100vh;
    padding: 10px 0 40px;
    background: #101010;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
}

.project-archive__container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}


/* =====================================================
   HEADER
===================================================== */

.project-archive__header {
    margin-bottom: 70px;
}

.project-archive__title {
    margin: 0 0 28px;
    font-size: 48px;
    font-weight: 600;
    line-height: 1.15;
    color: #fff;
    text-align: center;
}


/* =====================================================
   CATEGORY NAV
===================================================== */

.project-category-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 70px;
    padding: 0 20px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.project-category-nav__item {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 4px 11px;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    transition: color 0.25s ease, opacity 0.25s ease;
}

.project-category-nav__item:hover {
    color: #fff;
}

.project-category-nav__item::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -19px;
    width: 0;
    height: 2px;
    background: #fff;
    transform: translateX(-50%);
    transition: width 0.25s ease;
}

.project-category-nav__item:hover::after,
.project-category-nav__item.is-active::after {
    width: 100%;
}

.project-category-nav__item.is-active {
    color: #fff;
}


/* =====================================================
   GRID
===================================================== */

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 28px;
    row-gap: 38px;
}


/* =====================================================
   CARD
===================================================== */

.project-card {
    position: relative;
    min-width: 0;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}


/* =====================================================
   IMAGE
===================================================== */

.project-card__image {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    margin-bottom: 27px;
    background: #181818;
    overflow: hidden;
}

.project-card__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.project-card:hover .project-card__img {
    transform: scale(1.035);
}

.project-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #191919;
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
}


/* =====================================================
   CONTENT
===================================================== */

.project-card__content {
    padding: 0 18px;
    text-align: center;
}

.project-card__title {
    margin: 0 0 13px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.45;
    text-transform: uppercase;
}

.project-card__title a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.25s ease;
}

.project-card__title a:hover {
    opacity: 0.7;
}


/* =====================================================
   EXCERPT
===================================================== */

.project-card__excerpt {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.68);
}

.project-card__excerpt p {
    margin: 0;
}


/* =====================================================
   PAGINATION
===================================================== */

.project-pagination {
    margin-top: 55px;
    text-align: center;
}

.project-pagination .nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.project-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.project-pagination .page-numbers:hover,
.project-pagination .page-numbers.current {
    background: #fff;
    border-color: #fff;
    color: #111;
}


/* =====================================================
   EMPTY
===================================================== */

.project-empty {
    padding: 80px 20px;
    color: rgba(255, 255, 255, 0.65);
    text-align: center;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 991px) {
    .project-archive {
        padding-top: 45px;
    }

    .project-archive__header {
        margin-bottom: 50px;
    }

    .project-archive__title {
        font-size: 40px;
    }

    .project-category-nav {
        gap: 35px;
    }

    .project-category-nav__item {
        font-size: 17px;
    }

    .project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 35px 22px;
    }
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 600px) {
    .project-archive {
        padding: 35px 0 60px;
    }

    .project-archive__container {
        width: calc(100% - 28px);
    }

    .project-archive__header {
        margin-bottom: 38px;
    }

    .project-archive__title {
        margin-bottom: 22px;
        font-size: 34px;
    }

    .project-category-nav {
        justify-content: flex-start;
        gap: 28px;
        padding: 0 0 15px;
        overflow-x: auto;
        scrollbar-width: none;
    }

	.project-category-nav {
    display: flex;
    flex-wrap: wrap; /* Cho phép xuống dòng */
    gap: 12px;        /* Khoảng cách giữa các nút */
    justify-content: center; /* Căn giữa trên mobile */
    padding: 10px 0;
}

.project-category-nav__item {
    padding: 8px 16px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 50px; /* Bo tròn thành viên thuốc */
    font-size: 15px;
    color: #fff;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.project-category-nav__item.is-active {
    background: #fff;
    color: #000;
    border-color: #fff;
}

    .project-category-nav__item::after {
       display: none;
    }

    .project-grid {
        grid-template-columns: 1fr;
        row-gap: 32px;
    }

    .project-card__image {
        margin-bottom: 22px;
    }

    .project-card__content {
        padding: 0 8px;
    }

    .project-card__title {
        font-size: 17px;
    }
}