/* Projects listing – card grid */

.project-cards-grid.gallery .photos-list li::before,
.project-cards-grid.gallery .photos-list li::after {
    display: none;
}

.project-cards-grid ul.photos-list {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
    padding: 0;
    list-style: none;
}

.project-cards-grid ul.photos-list > li {
    float: none;
    width: 33.333%;
    padding: 0 15px 30px;
    margin: 0;
    border: 0;
    background: transparent;
}

.project-cards-grid ul.photos-list > li .photo,
.project-cards-grid ul.photos-list > li .photo-caption,
.project-cards-grid ul.photos-list > li .photo-link {
    display: none;
}

.project-card__inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card__inner:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.1);
}

.project-card__image {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

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

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

.project-card__badge {
    position: absolute;
    top: 14px;
    left: 14px;
    display: inline-block;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 3px;
    color: #fff;
    line-height: 1.4;
    z-index: 2;
}

.project-card__badge--upcoming {
    background: #5a6a7e;
}

.project-card__badge--ongoing {
    background: #337ab7;
}

.project-card__badge--completed {
    background: #2e8b57;
}

.project-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px 22px 24px;
}

.project-card__title {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.35;
}

.project-card__title a {
    color: #1a2433;
    text-decoration: none;
}

.project-card__title a:hover {
    color: #337ab7;
}

.project-card__excerpt {
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.65;
    color: #5c6672;
    flex: 1;
}

.project-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
    font-size: 13px;
    color: #3d4654;
}

.project-card__meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.project-card__meta i {
    color: #337ab7;
    font-size: 13px;
}

@media only screen and (max-width: 991px) {
    .project-cards-grid ul.photos-list > li {
        width: 50%;
    }
}

@media only screen and (max-width: 575px) {
    .project-cards-grid ul.photos-list > li {
        width: 100%;
        padding-bottom: 24px;
    }
}

/* ── Project detail page ── */

.project-detail-hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: flex-end;
    padding: 120px 0 56px;
    overflow: hidden;
}

.project-detail-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
}

.project-detail-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.35) 0%, rgba(15, 23, 42, 0.88) 100%);
}

.project-detail-hero .container {
    position: relative;
    z-index: 2;
}

.project-detail-breadcrumb {
    margin-bottom: 18px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
}

.project-detail-breadcrumb a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.project-detail-breadcrumb a:hover {
    color: #fff;
}

.project-detail-breadcrumb .sep {
    margin: 0 8px;
    opacity: 0.5;
}

.project-detail-breadcrumb .current {
    color: #fff;
}

.project-detail-hero__badge {
    position: static;
    display: inline-block;
    margin-bottom: 16px;
}

.project-detail-hero__title {
    margin: 0 0 14px;
    font-size: 42px;
    line-height: 1.2;
    color: #fff;
    max-width: 760px;
}

.project-detail-hero__excerpt {
    margin: 0 0 22px;
    font-size: 17px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.88);
    max-width: 680px;
}

.project-detail-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.project-detail-hero__meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.project-detail-hero__meta i {
    color: #7eb8e8;
}

.project-detail-heading {
    margin: 0 0 18px;
    font-size: 24px;
    color: #1a2433;
}

.project-detail-content {
    margin-bottom: 40px;
}

.project-detail-content p {
    font-size: 15px;
    line-height: 1.75;
    color: #4a5568;
    margin-bottom: 16px;
}

.project-detail-content p:last-child {
    margin-bottom: 0;
}

.project-detail-gallery {
    margin-top: 10px;
}

.project-detail-sidebar__card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    padding: 28px 26px;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.project-detail-sidebar__card h3 {
    margin: 0 0 20px;
    font-size: 18px;
    color: #1a2433;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.project-detail-facts {
    list-style: none;
    margin: 0;
    padding: 0;
}

.project-detail-facts li {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.project-detail-facts li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.project-detail-facts__label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #7a8494;
}

.project-detail-facts__value {
    font-size: 15px;
    color: #1a2433;
    line-height: 1.5;
}

.project-detail-facts__badge {
    position: static;
    display: inline-block;
    align-self: flex-start;
}

.project-detail-services {
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
}

.project-detail-services li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: #3d4654;
    line-height: 1.5;
}

.project-detail-services i {
    color: #2e8b57;
    margin-top: 3px;
}

.project-detail-cta {
    display: block;
    width: 100%;
    text-align: center;
}

.project-latest-header {
    text-align: center;
    margin-bottom: 36px;
}

.project-latest-header p {
    margin: 10px 0 0;
    color: #5c6672;
    font-size: 15px;
}

/* ── Latest projects carousel (same cards as listing) ── */

.section-projects.recent-project {
    overflow-x: hidden;
}

.project-cards-carousel {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.project-cards-carousel .owl-carousel {
    width: 100%;
    max-width: 100%;
}

.project-cards-carousel .owl-stage-outer {
    padding: 8px 0 12px;
    overflow: hidden;
}

.project-cards-carousel .project-card-slide {
    height: 100%;
}

.project-cards-carousel .project-card__inner {
    height: 100%;
}

.project-cards-carousel .owl-nav {
    position: absolute;
    top: -62px;
    right: 0;
    margin: 0;
}

.project-cards-carousel .owl-nav button {
    width: 40px;
    height: 40px;
    border-radius: 4px !important;
    background: #fff !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    color: #1a2433 !important;
    font-size: 14px !important;
    margin-left: 8px !important;
    transition: background 0.2s ease, color 0.2s ease;
}

.project-cards-carousel .owl-nav button:hover {
    background: #337ab7 !important;
    color: #fff !important;
    border-color: #337ab7 !important;
}

@media only screen and (max-width: 991px) {
    .project-detail-hero {
        min-height: 360px;
        padding-top: 100px;
    }

    .project-detail-hero__title {
        font-size: 32px;
    }

    .project-cards-carousel .owl-nav {
        position: static;
        text-align: center;
        margin-top: 20px;
    }
}

@media only screen and (max-width: 575px) {
    .project-detail-hero__title {
        font-size: 26px;
    }

    .project-detail-hero__excerpt {
        font-size: 15px;
    }
}
