/* =========================================================
   Hinza Projects — front-end styles
   Project archive, single project & [hinza_latest_projects]
   ========================================================= */

.single-project {
    padding: 60px 0;
}

.project-archive {
    padding: 30px 0 60px;
}

.container {
    width: min(1200px, calc(100% - 40px));
    margin-inline: auto;
}

.archive-header {
    margin-bottom: 40px;
}

.archive-title {
    margin: 0 0 15px;
}

.archive-description {
    max-width: 800px;
}

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

.project-grid[data-columns="2"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-grid[data-columns="4"] {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.project-card {
    overflow: hidden;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fff;
}

.project-card__image {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f5f5f5;
}

.project-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-card__image img {
    transform: scale(1.04);
}

.project-card__placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
}

.project-card__content {
    padding: 24px;
}

.project-card__title {
    margin: 10px 0;
    font-size: 24px;
}

.project-card__title a {
    color: inherit;
    text-decoration: none;
}

.project-card__categories,
.project-single__categories {
    font-size: 14px;
}

.project-card__button {
    display: inline-block;
    margin-top: 15px;
}

.project-single__featured-image img {
    display: block;
    width: 100%;
    height: auto;
}

.project-single__featured-image {
    margin-bottom: 35px;
}

.project-navigation {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-top: 50px;
    padding-top: 25px;
    border-top: 1px solid #ddd;
}

.archive-pagination {
    margin-top: 40px;
}

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

.archive-pagination .nav-links .page-numbers{
    font-family:var(--digits-font-family);
    color:var(--text-color-light);
    font-size:14px;
} 

.archive-pagination .nav-links a.page-numbers:hover{
    color:var(--text-color-light);
}

.archive-pagination .nav-links .page-numbers.current{
    color:var(--accent-color);
    text-decoration:underline;
}

.hinza-latest-projects__empty {
    opacity: 0.7;
}

@media (max-width: 900px) {
    .project-grid,
    .project-grid[data-columns="4"] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .project-grid,
    .project-grid[data-columns="2"],
    .project-grid[data-columns="4"] {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   Theme skin overrides (border-bottom cards, 4-col archive,
   arrow button) — relies on the active theme's CSS custom
   properties: --border-color-light, --text-font-family,
   --text-color, --secondary-color.
   ========================================================= */

.project-card {
    border-radius: 0 !important;
    border: 0 !important;
    border-bottom: 1px solid var(--border-color-light) !important;
}

.project-card .project-card__image {
}

.project-card .project-card__content {
    padding: 20px 20px 15px;
}

.project-card .project-card__content .project-card__title {
    margin: 0;
}

.project-card .project-card__content .project-card__title,
.project-card .project-card__content .project-card__title * {
    font-family: var(--text-font-family);
    font-size: 18px;
    font-weight: bold;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project-card .project-card__content .project-card__button {
    font-family: var(--text-font-family);
    font-size: 14px;
    font-weight: 500;
    color: var(--secondary-color);
}

.project-card .project-card__content .project-card__button:after {
    content: "";
    display: inline-block;
    width: 15px;
    height: 15px;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M134.059 296H436c6.627 0 12-5.373 12-12v-56c0-6.627-5.373-12-12-12H134.059v-46.059c0-21.382-25.851-32.09-40.971-16.971L7.029 239.029c-9.373 9.373-9.373 24.569 0 33.941l86.059 86.059c15.119 15.119 40.971 4.411 40.971-16.971V296z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M134.059 296H436c6.627 0 12-5.373 12-12v-56c0-6.627-5.373-12-12-12H134.059v-46.059c0-21.382-25.851-32.09-40.971-16.971L7.029 239.029c-9.373 9.373-9.373 24.569 0 33.941l86.059 86.059c15.119 15.119 40.971 4.411 40.971-16.971V296z'/%3E%3C/svg%3E") center / contain no-repeat;
    transform: rotate(45deg) translate(2px, 2px);
    transition: all .5s ease-in-out;
}

.project-card .project-card__content .project-card__button:hover:after {
    transform: rotate(0deg) translate(0, 0);
}

@media (max-width: 991.98px) {
    .project-card .project-card__content {
        padding: 10px 0;
    }

    .project-card .project-card__content .project-card__title,
    .project-card .project-card__content .project-card__title * {
        font-size: 14px !important;
    }
    .project-card .project-card__content .project-card__button{
        font-size:13px;
        margin-top:10px;
    }
}

.project-archive .project-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.project-archive .project-grid .project-card .project-card__content .project-card__title,
.project-archive .project-grid .project-card .project-card__content .project-card__title * {
    font-size: 16px;
}

@media (max-width: 991.98px) {
    .project-archive .project-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap:20px;
    }
}

@media (max-width: 575.98px) {
    .project-archive .project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
}
