#our-projects {

    padding: 60px 0;

    background: #f8f9fb;

    color: #222;

}

#our-projects .container {

    width: 100%;

    max-width: 1200px;

    margin: 0 auto;

    padding: 0 20px;

    box-sizing: border-box;

}

#our-projects h2 {

    margin: 0 0 12px;

    color: #17243a;

    font-size: 36px;

    line-height: 1.3;

    text-align: center;

}

#our-projects .projects-intro {

    max-width: 540px;

    margin: 0 0 24px;

    padding: 16px 18px;

    border-left: 3px solid #b69a60;

    border-radius: 0 5px 5px 0;

    background: #f0f2f6;

    color: #515b6a;

    font-size: 16px;

    line-height: 1.8;

    text-align: left;

    box-sizing: border-box;

}

#our-projects .project-filter {

    display: inline-block;

    margin: 0 5px 10px;

    padding: 11px 20px;

    border: 1px solid #17243a;

    border-radius: 4px;

    background: #fff;

    color: #17243a;

    font-size: 14px;

    font-weight: 600;

    cursor: pointer;

    transition: background .25s ease, color .25s ease;

}

#our-projects .project-filter:hover,

#our-projects .project-filter.active {

    background: #17243a;

    color: #fff;

}

#our-projects #dynamic-project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    width: 100%;
    max-width: 1200px;
    margin: 30px auto 0;
    padding: 0;
    box-sizing: border-box;
}

#our-projects #dynamic-project-grid > .project-card {
    display: block;
    width: auto;
    max-width: none;
    min-width: 0;
    height: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
    border: 1px solid rgba(23, 36, 58, .06);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 6px 22px rgba(23, 36, 58, .09);
    transition: transform .25s ease, box-shadow .25s ease;
}

#our-projects #dynamic-project-grid > .project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(23, 36, 58, .14);
}

#our-projects .project-card > .card {

    display: flex;

    flex-direction: column;

    width: 100%;

    height: 100%;

    margin: 0;

    border: 0;

    border-radius: 0;

    background: #fff;

    box-shadow: none;

    box-sizing: border-box;

}

#our-projects .project-card .card-img-top {
    display: block;
    width: 100%;
    height: 280px;
    flex-shrink: 0;
    object-fit: cover;
    object-position: center;
}

#our-projects .project-card .card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    box-sizing: border-box;
}

#our-projects .project-card .badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 3px;
    background: #e8edf5;
    color: #17243a;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    text-transform: capitalize;
}

#our-projects .project-card .card-body h3 {
    margin: 14px 0 10px;
    color: #17243a;
    font-size: 23px;
    font-weight: 700;
    line-height: 1.4;
}

#our-projects .project-card .card-body p {
    margin: 0 0 14px;
    color: #626b78;
    font-size: 15px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

#our-projects .project-card .card-body p:last-child {

    margin-bottom: 0;

}

#our-projects .projects-empty {

    padding: 35px 15px;

    color: #666;

    text-align: center;

}

@media (max-width: 900px) {

    #our-projects #dynamic-project-grid {

        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 22px;

    }

    #our-projects h2 {

        font-size: 30px;

    }

}

@media (max-width: 600px) {

    #our-projects {

        padding: 40px 0;

    }

    #our-projects .container {

        padding: 0 15px;

    }

    #our-projects h2 {

        font-size: 26px;

    }

    #our-projects #dynamic-project-grid {

        grid-template-columns: minmax(0, 1fr);

        gap: 22px;

    }

    #our-projects .project-card .card-img-top {

        height: 230px;

    }

    #our-projects .project-card .card-body {

        padding: 18px;

    }

    #our-projects .project-card .card-body h3 {

        font-size: 19px;

    }

    #our-projects .project-filter {

        margin: 0 3px 8px;

        padding: 10px 13px;

        font-size: 13px;

    }

}

/* Project Details Page \*/

.project-detail-page {

    width: 100%;

    color: #292929;

    background: #fff;

    padding-bottom: 48px;

}

.project-detail-hero {

    position: relative;

    isolation: isolate;

    display: flex;

    width: 100%;

    height: 720px;

    min-height: 0;

    align-items: center;

    justify-content: center;

    overflow: hidden;

    box-sizing: border-box;

    padding: 24px;

    background: #252525;

    text-align: center;

}

.project-detail-hero-image {

    position: absolute;

    inset: 0;

    z-index: -2;

    display: block;

    width: 100%;

    height: 100%;

    object-fit: cover;

    object-position: center;

}

.project-detail-hero-overlay {

    position: absolute;

    inset: 0;

    z-index: -1;

    background: linear-gradient(180deg, rgba(0, 0, 0, .22), rgba(0, 0, 0, .48));

}

.project-detail-hero-content {

    position: relative;

    width: 100%;

    max-width: 1200px;

    margin: 0 auto;

    text-align: center;

}

.project-detail-hero .project-breadcrumb {

    max-width: 1200px;

    margin: 0 auto 20px;

    color: #fff;

    font-size: 12px;

    line-height: 1.8;

}

.project-detail-hero .project-breadcrumb a,

.project-detail-hero .project-breadcrumb span {

    color: #fff;

    text-decoration: none;

}

.project-detail-hero .project-breadcrumb a:hover {

    color: #e8c98d;

}

.project-detail-hero h1 {

    max-width: 1100px;

    margin: 0 auto;

    color: #fff;

    font-size: clamp(30px, 4vw, 54px);

    font-weight: 700;

    line-height: 1.2;

    text-shadow: 0 2px 10px rgba(0, 0, 0, .2);

}

.project-detail-container {

    width: min(1375px, calc(100% - 40px));

    margin: 32px auto 0;

}

.project-featured-image {

    display: block;

    width: 100%;

    max-height: 650px;

    aspect-ratio: 16 / 9;

    object-fit: cover;

    object-position: center;

    border-radius: 8px;

    background: #f0f0f0;

    box-shadow: 0 8px 28px rgba(0, 0, 0, .08);

}

.project-placeholder {

    display: flex;

    width: 100%;

    min-height: 280px;

    align-items: center;

    justify-content: center;

    padding: 24px;

    border-radius: 8px;

    background: #f0efec;

    color: #777;

    text-align: center;

}

.project-brief-description {

    width: 100%;

    max-width: none;

    margin: 36px auto 28px;

    padding: 30px 40px;

    box-sizing: border-box;

    background: #f8f7f4;

    border: 1px solid #ece7dd;

    border-left: 4px solid #b69a60;

    border-radius: 8px;

}

.project-brief-label {

    display: block;

    margin: 0 0 14px;

    color: #9b7b3e;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 1.6px;

    line-height: 1.5;

}

.project-brief-description p {

    max-width: none;

    margin: 0;

    color: #454545;

    font-size: 17px;

    line-height: 1.9;

    overflow-wrap: break-word;

}

.project-info-grid {

    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 18px;

    margin: 22px 0 36px;

}

.project-info-item {

    min-width: 0;

    padding: 20px 22px;

    background: #fff;

    border: 1px solid #e9e7e2;

    border-radius: 7px;

    box-shadow: 0 3px 14px rgba(0, 0, 0, .035);

}

.project-info-item .info-label,

.info-label {

    display: block;

    margin-bottom: 7px;

    color: #898989;

    font-size: 11px;

    font-weight: 600;

    letter-spacing: 1px;

    text-transform: uppercase;

}

.project-info-item .info-value,

.info-value {

    display: block;

    color: #292929;

    font-size: 15px;

    font-weight: 600;

    line-height: 1.6;

    overflow-wrap: anywhere;

}

.project-detail-description {

    margin: 36px 0 44px;

}

.project-detail-description h2,

.project-gallery-section h2 {

    margin: 0 0 18px;

    color: #292929;

    font-size: clamp(23px, 2.5vw, 30px);

    font-weight: 700;

    line-height: 1.35;

}

.project-description-content {

    color: #626262;

    font-size: 15px;

    line-height: 1.9;

    overflow-wrap: anywhere;

}

.project-description-content p {

    margin: 0 0 16px;

}

.project-gallery-section {

    margin: 42px 0 48px;

}

.project-gallery-grid {

    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 16px;

}

.project-gallery-item {

    min-width: 0;

    margin: 0;

    overflow: hidden;

    aspect-ratio: 4 / 3;

    background: #f0f0f0;

    border-radius: 7px;

    box-shadow: 0 3px 12px rgba(0, 0, 0, .06);

}

.project-gallery-item img {

    display: block;

    width: 100%;

    height: 100%;

    object-fit: cover;

    object-position: center;

    transition: transform .35s ease;

}

.project-gallery-item:hover img {

    transform: scale(1.04);

}

.project-detail-cta {

    margin: 48px 0 22px;

    padding: 34px 24px;

    background: #f5f4f1;

    border-radius: 8px;

    text-align: center;

}

.project-detail-cta h2 {

    margin: 0 0 12px;

    color: #292929;

    font-size: 26px;

    font-weight: 700;

}

.project-detail-cta p {

    max-width: 700px;

    margin: 0 auto 20px;

    color: #686868;

    font-size: 14px;

    line-height: 1.8;

}

.project-detail-cta a,

.project-back-link {

    transition: color .2s ease, background .2s ease;

}

.project-detail-cta a {

    display: inline-block;

    padding: 12px 24px;

    border-radius: 4px;

    background: #252525;

    color: #fff;

    font-size: 13px;

    font-weight: 600;

    text-decoration: none;

}

.project-detail-cta a:hover {

    background: #b18a45;

    color: #fff;

}

.project-back-link {

    display: inline-block;

    margin-top: 8px;

    color: #393939;

    font-size: 13px;

    font-weight: 600;

    text-decoration: none;

}

.project-back-link:hover {

    color: #b18a45;

}

@media (max-width: 768px) {

    .project-detail-hero {

        height: 360px;

        padding: 16px;

    }

    .project-detail-hero h1 {

        font-size: 32px;

    }

    .project-detail-hero .project-breadcrumb {

        font-size: 11px;

    }

    .project-detail-container {

        width: calc(100% - 32px);

        margin-top: 24px;

    }

    .project-featured-image {

        aspect-ratio: 4 / 3;

        max-height: 460px;

    }

    .project-brief-description {

        margin: 24px auto 20px;

        padding: 24px;

    }

    .project-brief-description p {

        font-size: 15px;

        line-height: 1.8;

    }

    .project-info-grid {

        gap: 12px;

        margin-bottom: 30px;

    }

    .project-info-item {

        padding: 16px;

    }

    .project-gallery-grid {

        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 12px;

    }

    .project-detail-description {

        margin: 30px 0 36px;

    }

    .project-gallery-section {

        margin: 36px 0;

    }

    .project-detail-cta {

        margin-top: 40px;

        padding: 30px 18px;

    }

}

@media (max-width: 480px) {

    .project-detail-page {

        padding-bottom: 30px;

    }

    .project-detail-hero {

        height: 280px;

        padding: 12px;

    }

    .project-detail-hero h1 {

        font-size: 26px;

    }

    .project-detail-container {

        width: calc(100% - 28px);

        margin-top: 18px;

    }

    .project-featured-image {

        aspect-ratio: 4 / 3;

        border-radius: 6px;

    }

    .project-brief-description {

        margin: 20px auto 16px;

        padding: 20px 18px;

    }

    .project-brief-label {

        margin-bottom: 10px;

        font-size: 11px;

    }

    .project-brief-description p {

        font-size: 14px;

        line-height: 1.8;

    }

    .project-info-grid {

        grid-template-columns: 1fr;

        gap: 10px;

        margin: 16px 0 28px;

    }

    .project-info-item {

        padding: 15px 16px;

    }

    .info-value {

        font-size: 14px;

    }

    .project-detail-description h2,

    .project-gallery-section h2 {

        margin-bottom: 13px;

        font-size: 23px;

    }

    .project-description-content {

        font-size: 14px;

        line-height: 1.8;

    }

    .project-gallery-grid {

        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 9px;

    }

    .project-gallery-item {

        border-radius: 5px;

    }

    .project-detail-description {

        margin: 26px 0 32px;

    }

    .project-gallery-section {

        margin: 32px 0;

    }

    .project-detail-cta {

        margin: 34px 0 18px;

        padding: 26px 16px;

    }

    .project-detail-cta h2 {

        font-size: 22px;

    }

    .project-detail-cta p {

        font-size: 13px;

    }

    .project-detail-cta a {

        padding: 12px 20px;

    }

}

@media (prefers-reduced-motion: reduce) {

    .project-gallery-item img,

    .project-detail-cta a,

    .project-back-link {

        transition: none;

    }

    .project-gallery-item:hover img {

        transform: none;

    }

}

/* Project detail breadcrumb: title first, breadcrumb below */

.project-detail-hero-content {

    display: flex;

    flex-direction: column;

    align-items: center;

}

.project-detail-hero-content h1 {

    order: 1;

}

.project-detail-hero-content .project-breadcrumb {

    order: 2;

    margin: 16px auto 0;

}

/* Project detail breadcrumb: place it below the title */

.project-detail-hero-content {

    display: flex;

    flex-direction: column;

    align-items: center;

}

.project-detail-hero h1 {

    order: 1;

}

.project-detail-hero .project-breadcrumb {

    order: 2;

    margin: 16px auto 0;

}

.project-view-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    align-self: flex-start;
    margin-top: 18px;
    padding: 10px 18px;
    border: 1px solid #17243a;
    border-radius: 4px;
    background: #17243a;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease;
}

.project-view-button:hover {
    background: #9b7b3e;
    border-color: #9b7b3e;
    color: #fff;
}

.project-view-button:focus-visible {
    outline: 3px solid #c7a65b;
    outline-offset: 3px;
}

/* Project description: maximum 3 lines */
#dynamic-project-grid .project-card .card-body > p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    margin-bottom: 20px;
    overflow-wrap: anywhere;
}
