/* ══ Project Grid ══════════════════════════════════════════════ */
.prj-wrapper {
    width: 100%;
    font-family: inherit;
    box-sizing: border-box;
}

.prj-wrapper *,
.prj-wrapper *::before,
.prj-wrapper *::after {
    box-sizing: inherit;
}

/* ─── Grid layout ─── */
.prj-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 24px;
}

/* ─── List layout ─── */
.prj-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.prj-layout-list .prj-card {
    flex-direction: row;
    overflow: hidden;
}

/* --- Filter Bar --- */
.prj-filter-wrapper {
    display: flex;
    width: 100%;
    justify-content: center;
}

.prj-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
    transition: all .3s ease;
}

.prj-filter-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    background: transparent;
    border: 1px solid #eee;
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    transition: all .3s ease;
    outline: none;
}

.prj-filter-item.is-active {
    background: #b5865a;
    border-color: #b5865a;
    color: #fff;
}

/* ─── Card Base ─── */
.prj-card {
    background: #fff;
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .3s ease, box-shadow .3s ease;
    position: relative;
}

.prj-thumb {
    display: block;
    overflow: hidden;
    position: relative;
    height: 250px;
    background: #f0f0f0;
    text-decoration: none;
}

.prj-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}

.prj-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* --- Meta --- */
.prj-meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.prj-meta {
    font-size: 13px;
    color: #888;
}

.prj-cat {
    color: #b5865a;
    font-weight: 500;
    text-decoration: none;
}

.prj-sep {
    color: #ccc;
}

/* --- Content --- */
.prj-title {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 600;
}

.prj-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color .3s;
}

.prj-title a:hover {
    color: #b5865a;
}

.prj-address {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.prj-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* --- Button --- */
.prj-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all .3s ease;
}

/* ══ Card Style 2: Overlay ══════════════════════════════════ */
.prj-card-style-2 {
    height: 100%;
    cursor: pointer;
}

.prj-card-style-2 .prj-thumb {
    height: 100% !important;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1;
}

.prj-card-style-2 .prj-card-body {
    position: relative;
    z-index: 2;
    height: 100%;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.5) 40%, transparent 100%);
    padding: 20px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: auto;
}

.prj-card-style-2 .prj-title a,
.prj-card-style-2 .prj-meta,
.prj-card-style-2 .prj-cat,
.prj-card-style-2 .prj-address {
    color: #fff !important;
}

.prj-card-style-2 .prj-excerpt {
    color: #fff !important;
}

.prj-card-style-2 .prj-title {
    font-size: 30px;
    margin-bottom: 0;
    transition: margin 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}


/* Hidden Content Slide-up */
.prj-card-style-2 .prj-excerpt,
.prj-card-style-2 .prj-read-more {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(30px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0;
}

.prj-card-style-2:hover .prj-excerpt,
.prj-card-style-2:hover .prj-read-more {
    max-height: 200px;
    /* Adjust based on content */
    opacity: 1;
    transform: translateY(0);
    margin-bottom: 20px;
}

/* Full Width Line */
.prj-card-style-2 .prj-read-more {
    position: relative;
    width: 100%;
    padding: 15px 0 0 0;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 18px;
    color: #fff;
}

.prj-card-style-2 .prj-read-more::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.6);
    transition: width 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.prj-card-style-2:hover .prj-read-more::before {
    width: 100%;
}

.prj-card-style-2:hover .prj-thumb img {
    transform: scale(1.1);
}

/* ══ Pagination ═════════════════════════════════════════════ */
.prj-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.prj-page-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 4px;
    transition: all .3s;
}

.prj-page-btn.is-active,
.prj-page-btn:hover {
    background: #b5865a;
    color: #fff;
}

.prj-load-more-btn {
    padding: 12px 35px;
    background: #b5865a;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: opacity .3s;
}

.prj-load-more-btn:disabled {
    opacity: 0.6;
}