/* =========================================================
   PROJECTS LISTING
========================================================= */

.projects-page-hero *,
.projects-listing * {
    box-sizing: border-box;
}


/* =========================================================
   HERO
========================================================= */

.projects-page-hero {
    position: relative;
    overflow: hidden;

    padding: 82px 0;

    background:
        linear-gradient(135deg,
            #f8fafc 0%,
            #edf4fb 100%);
}

.projects-page-hero::before {
    content: "";

    position: absolute;

    width: 350px;
    height: 350px;

    top: -215px;
    right: -100px;

    border-radius: 50%;

    background:
        rgba(247, 147, 0, .08);
}

.projects-page-hero__grid {
    position: relative;
    z-index: 2;

    display: grid;

    grid-template-columns:
        minmax(0, 1.15fr) minmax(320px, .85fr);

    align-items: center;

    gap: clamp(45px, 7vw, 95px);
}

.projects-page-hero__content {
    min-width: 0;
}

.projects-page-hero__eyebrow,
.projects-listing__eyebrow {
    display: flex;
    align-items: center;

    gap: 9px;

    margin-bottom: 11px;

    color: var(--naksh-orange);

    font-size: 10px;
    font-weight: 900;

    letter-spacing: 1.2px;
}

.projects-page-hero__eyebrow span,
.projects-listing__eyebrow span {
    width: 29px;
    height: 2px;

    flex: 0 0 29px;

    background: var(--naksh-orange);
}

.projects-page-hero h1 {
    max-width: 790px;

    margin: 0;

    color: var(--naksh-navy);

    font-size:
        clamp(38px, 4.8vw, 65px);

    line-height: 1.04;

    letter-spacing: -1.8px;
}

.projects-page-hero__content>p {
    max-width: 650px;

    margin: 21px 0 0;

    color: var(--naksh-muted);

    font-size: 13px;

    line-height: 1.8;
}


/* BREADCRUMB */

.projects-page-hero__breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 9px;

    margin-top: 24px;

    font-size: 10px;
    font-weight: 700;
}

.projects-page-hero__breadcrumb a {
    color: var(--naksh-navy);

    text-decoration: none;
}

.projects-page-hero__breadcrumb span {
    color: var(--naksh-orange);
}

.projects-page-hero__breadcrumb span:last-child {
    color: var(--naksh-muted);
}


/* HERO VISUAL */

.projects-page-hero__visual {
    min-width: 0;

    display: flex;
    justify-content: center;
}

.projects-page-hero__visual-box {
    position: relative;

    width: min(100%, 410px);
    min-height: 290px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding: 31px;

    overflow: hidden;

    border-radius: 18px;

    background:
        linear-gradient(145deg,
            var(--naksh-navy),
            var(--naksh-navy-dark));

    box-shadow:
        0 25px 55px rgba(7, 54, 109, .17);
}

.projects-page-hero__visual-box::before {
    content: "";

    position: absolute;

    width: 180px;
    height: 180px;

    top: -70px;
    right: -70px;

    border-radius: 50%;

    background:
        rgba(247, 147, 0, .10);
}

.projects-page-hero__icon {
    position: relative;
    z-index: 2;

    width: 53px;
    height: 53px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: var(--naksh-orange);

    color: #fff;

    font-size: 20px;
    font-weight: 900;
}

.projects-page-hero__visual-box>div:last-child {
    position: relative;
    z-index: 2;
}

.projects-page-hero__visual-box span,
.projects-page-hero__visual-box strong,
.projects-page-hero__visual-box small {
    display: block;
}

.projects-page-hero__visual-box span {
    margin-bottom: 7px;

    color: var(--naksh-orange);

    font-size: 8px;
    font-weight: 900;

    letter-spacing: 1.2px;
}

.projects-page-hero__visual-box strong {
    max-width: 290px;

    color: #fff;

    font-size: 23px;

    line-height: 1.23;
}

.projects-page-hero__visual-box small {
    margin-top: 10px;

    color:
        rgba(255, 255, 255, .62);

    font-size: 8px;

    line-height: 1.6;
}


/* =========================================================
   LISTING
========================================================= */

.projects-listing {
    padding: 95px 0;

    background: #fff;
}

.projects-listing__heading {
    display: grid;

    grid-template-columns:
        minmax(0, 1.1fr) minmax(280px, .9fr);

    align-items: end;

    gap: 50px;

    margin-bottom: 42px;
}

.projects-listing__heading h2 {
    max-width: 700px;

    margin: 0;

    color: var(--naksh-navy);

    font-size:
        clamp(31px, 3.5vw, 47px);

    line-height: 1.1;

    letter-spacing: -1px;
}

.projects-listing__heading>p {
    max-width: 500px;

    margin: 0;

    color: var(--naksh-muted);

    font-size: 12px;

    line-height: 1.8;
}


/* =========================================================
   GRID
========================================================= */

.projects-listing__grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 24px;
}


/* =========================================================
   PROJECT CARD
========================================================= */

.projects-card {
    min-width: 0;

    overflow: hidden;

    border:
        1px solid var(--naksh-border);

    border-radius: 15px;

    background: #fff;

    box-shadow:
        0 8px 30px rgba(15, 23, 42, .05);

    transition:
        transform .28s ease,
        box-shadow .28s ease,
        border-color .28s ease;
}

.projects-card:hover {
    transform: translateY(-6px);

    border-color:
        rgba(247, 147, 0, .30);

    box-shadow:
        0 20px 45px rgba(7, 54, 109, .11);
}


/* IMAGE */

.projects-card__visual {
    position: relative;

    height: 280px;

    display: block;

    overflow: hidden;

    background: #edf2f7;

    text-decoration: none;
}

.projects-card__image {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;

    transition:
        transform .45s ease;
}

.projects-card:hover .projects-card__image {
    transform: scale(1.045);
}

.projects-card__overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(180deg,
            rgba(5, 38, 80, 0) 45%,
            rgba(5, 38, 80, .48) 100%);

    pointer-events: none;
}

.projects-card__category {
    position: absolute;

    left: 16px;
    bottom: 15px;

    max-width:
        calc(100% - 32px);

    padding: 8px 12px;

    border-radius: 30px;

    background: var(--naksh-orange);

    color: #fff;

    font-size: 8px;
    font-weight: 900;

    letter-spacing: .7px;
    text-transform: uppercase;
}


/* PLACEHOLDER */

.projects-card__placeholder {
    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 8px;

    background:
        linear-gradient(145deg,
            var(--naksh-navy),
            var(--naksh-navy-dark));

    color: #fff;
}

.projects-card__placeholder span {
    color: var(--naksh-orange);

    font-size: 40px;
}

.projects-card__placeholder small {
    font-size: 9px;

    letter-spacing: 1px;
}


/* CONTENT */

.projects-card__body {
    padding: 24px 23px 27px;
}

.projects-card__meta {
    min-height: 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;

    gap: 8px;

    margin-bottom: 8px;
}

.projects-card__meta span {
    color: var(--naksh-muted);

    font-size: 8px;
    font-weight: 700;
}

.projects-card__meta span:first-child {
    color: var(--naksh-orange);
}

.projects-card h2 {
    margin: 0;

    font-size: 20px;

    line-height: 1.3;
}

.projects-card h2 a {
    color: var(--naksh-navy);

    text-decoration: none;

    transition: color .2s ease;
}

.projects-card h2 a:hover {
    color: var(--naksh-orange);
}

.projects-card__body>p {
    display: -webkit-box;

    min-height: 54px;

    margin: 12px 0 0;

    overflow: hidden;

    color: var(--naksh-muted);

    font-size: 10px;

    line-height: 1.75;

    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.projects-card__link {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    margin-top: 20px;

    color: var(--naksh-navy);

    font-size: 10px;
    font-weight: 900;

    text-decoration: none;

    transition: color .2s ease;
}

.projects-card__link span {
    color: var(--naksh-orange);

    transition: transform .2s ease;
}

.projects-card__link:hover {
    color: var(--naksh-orange);
}

.projects-card__link:hover span {
    transform: translateX(4px);
}


/* =========================================================
   EMPTY
========================================================= */

.projects-listing__empty {
    max-width: 600px;

    margin: auto;

    padding: 55px 25px;

    border:
        1px solid var(--naksh-border);

    border-radius: 15px;

    background: #f8fafc;

    text-align: center;
}

.projects-listing__empty>span {
    color: var(--naksh-orange);

    font-size: 40px;
}

.projects-listing__empty h3 {
    margin: 12px 0 0;

    color: var(--naksh-navy);

    font-size: 22px;
}

.projects-listing__empty p {
    margin: 8px 0 0;

    color: var(--naksh-muted);

    font-size: 11px;
}


/* =========================================================
   SMALL LAPTOP
========================================================= */

@media (max-width: 1150px) {

    .projects-listing__grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .projects-page-hero {
        padding: 70px 0;
    }

    .projects-page-hero__grid {
        grid-template-columns: 1fr;

        gap: 42px;
    }

    .projects-page-hero__visual {
        justify-content: flex-start;
    }

    .projects-page-hero__visual {
        justify-content: flex-start;
    }

    .projects-page-hero__image-wrap {
        width: min(100%, 650px);
        height: 380px;
    }

    .projects-listing {
        padding: 75px 0;
    }

    .projects-listing__heading {
        grid-template-columns: 1fr;

        gap: 15px;
    }

    .projects-listing__heading>p {
        max-width: 650px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {

    .projects-page-hero {
        padding: 55px 0;
    }

    .projects-page-hero h1 {
        font-size:
            clamp(35px, 11vw, 48px);

        letter-spacing: -1px;
    }

    .projects-page-hero__content>p {
        font-size: 12px;
    }



    .projects-page-hero__visual-box strong {
        font-size: 21px;
    }

    .projects-listing {
        padding: 58px 0;
    }

    .projects-listing__heading {
        margin-bottom: 29px;
    }

    .projects-listing__heading h2 {
        font-size:
            clamp(29px, 9vw, 39px);
    }

    .projects-listing__grid {
        grid-template-columns: 1fr;

        gap: 17px;
    }

    .projects-card__visual {
        height: 270px;
    }

    .projects-card__body {
        padding: 22px 20px 24px;
    }

    .projects-card__body>p {
        min-height: auto;
    }

    .projects-page-hero__image-wrap {
        width: 100%;
        height: 280px;

        border-radius: 13px;
    }

    .projects-page-hero__image-badge {
        left: 15px;
        right: 15px;
        bottom: 14px;
    }

    .projects-page-hero__image-badge>span {
        width: 38px;
        height: 38px;

        flex-basis: 38px;
    }

    .projects-page-hero__image-badge strong {
        font-size: 12px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 390px) {

    .projects-page-hero__visual-box {
        min-height: 215px;

        padding: 20px;
    }

    .projects-card__visual {
        height: 240px;
    }

    .projects-card__body {
        padding: 20px 18px 23px;
    }

    .projects-page-hero__image-wrap {
        height: 240px;
    }

}

/* =========================================================
   PROJECT HERO - RIGHT IMAGE
========================================================= */

.projects-page-hero__visual {
    min-width: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.projects-page-hero__image-wrap {
    position: relative;

    width: min(100%, 480px);
    height: 330px;

    overflow: hidden;

    border-radius: 18px;

    background: #e8eef5;

    box-shadow:
        0 25px 55px rgba(7, 54, 109, 0.16);
}

.projects-page-hero__image {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;

    transition: transform 0.5s ease;
}

.projects-page-hero__image-wrap:hover .projects-page-hero__image {
    transform: scale(1.035);
}


/* subtle bottom overlay */

.projects-page-hero__image-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(180deg,
            transparent 50%,
            rgba(5, 38, 80, 0.55) 100%);

    pointer-events: none;
}


/* Bottom badge */

.projects-page-hero__image-badge {
    position: absolute;

    left: 20px;
    right: 20px;
    bottom: 18px;

    display: flex;
    align-items: center;

    gap: 11px;

    z-index: 2;
}

.projects-page-hero__image-badge>span {
    width: 42px;
    height: 42px;

    flex: 0 0 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: var(--naksh-orange);

    color: #fff;

    font-size: 15px;
    font-weight: 900;
}

.projects-page-hero__image-badge small,
.projects-page-hero__image-badge strong {
    display: block;
}

.projects-page-hero__image-badge small {
    margin-bottom: 3px;

    color: var(--naksh-orange);

    font-size: 7px;
    font-weight: 900;

    letter-spacing: 1px;
}

.projects-page-hero__image-badge strong {
    color: #fff;

    font-size: 14px;

    line-height: 1.3;
}