/* ==========================================================
   Projects Catalogue
   ========================================================== */

.nbf-projects {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 44px 28px;
}

.nbf-project-card {
    overflow: hidden;
    background: #fff;
}

.nbf-project-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f3f4f6;
}

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

.nbf-project-card:hover .nbf-project-image img {
    transform: scale(1.035);
}

.nbf-project-content {
    padding-top: 20px;
}

.nbf-project-type {
    margin: 0 0 8px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.nbf-project-title {
    margin: 0;
    font-size: 25px;
    line-height: 1.25;
}

.nbf-project-title a {
    color: #111827;
    text-decoration: none;
}

.nbf-project-title a:hover {
    color: #2563eb;
}

.nbf-project-accent {
    display: block;
    width: 56px;
    height: 3px;
    margin: 16px 0;
    background: #e9b949;
}

.nbf-project-date {
    margin: 0 0 10px;
    color: #6b7280;
    font-size: 14px;
    font-weight: 600;
}

.nbf-project-description {
    margin: 0;
    color: #4b5563;
    font-size: 15px;
    line-height: 1.7;
}

/* ==========================================================
   Project Single
   ========================================================== */


body.single-nomfolio_project,
body.single-nomfolio_project #page,
body.single-nomfolio_project .site,
body.single-nomfolio_project .site-content {
    background: #ffffff;
}

body.single-nomfolio_project .site-content {
    color: #374151;
}


.single-nomfolio_project .entry-header {
    display: none;
}

.nbf-project-single {
    background: #ffffff;
    width: min(1100px, calc(100% - 60px));
    margin: 0 auto;
    padding: 42px 0 70px;
}

.nbf-project-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
    color: #6b7280;
    font-size: 14px;
}

.nbf-project-breadcrumb a {
    color: #2563eb;
    text-decoration: none;
}

.nbf-project-hero {
    overflow: hidden;
    margin-bottom: 38px;
    border-radius: 16px;
    background: #f3f4f6;
}

.nbf-project-hero img {
    display: block;
    width: 100%;
    max-height: 620px;
    object-fit: cover;
}

.nbf-project-header {
    max-width: 850px;
    margin-bottom: 34px;
}

.nbf-project-single-type {
    margin: 0 0 10px;
    color: #2563eb;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.nbf-project-header h1 {
    margin: 0 0 14px;
    color: #111827;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.1;
}

.nbf-project-single-date {
    margin: 0;
    color: #6b7280;
    font-size: 17px;
}

.nbf-project-body {
    max-width: 850px;
    color: #374151;
    font-size: 17px;
    line-height: 1.85;
}

.nbf-project-section {
    margin-top: 48px;
}

.nbf-project-section h2 {
    margin-bottom: 18px;
    color: #111827;
    font-size: 30px;
}

.nbf-project-partners {
    max-width: 850px;
    color: #374151;
    line-height: 1.8;
}

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

.nbf-project-gallery a {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 10px;
    background: #f3f4f6;
}

.nbf-project-gallery img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nbf-project-back {
    margin-top: 52px;
}

.nbf-project-back a {
    display: inline-flex;
    padding: 11px 18px;
    border: 1px solid #d1d5db;
    border-radius: 9px;
    color: #374151;
    font-weight: 600;
    text-decoration: none;
}

.nbf-project-back a:hover {
    border-color: #2563eb;
    background: #2563eb;
    color: #fff;
}

@media (max-width: 900px) {
    .nbf-projects {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nbf-project-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .nbf-projects,
    .nbf-project-gallery {
        grid-template-columns: 1fr;
    }

    .nbf-project-single {
    background: #ffffff;
        width: min(100% - 36px, 1100px);
        padding-top: 28px;
    }
}
