:root {
    --projects-navy:#3b373a;
    --projects-blue:#9d8f6f;
    --projects-gold:#fbcd16;
    --projects-ink:#2f2b2c;
    --projects-muted:#746e5f;
    --projects-bg:#f8f6ef;
}

* {
    box-sizing: border-box;
}

.projects-page {
    background: #fff;
    color: var(--projects-ink);
    font-family: Arial,sans-serif;
}

.projects-header {
    position: relative;
    z-index: 20;
    border-bottom: 3px solid #746e5f;
    background: #fff;
}

.projects-nav {
    min-height: 122px;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 30px;
}

.projects-logo {
    display: flex;
    align-items: center;
}

    .projects-logo img {
        display: block;
        width: 310px;
        max-width: 100%;
        height: auto;
    }

.projects-nav nav {
    display: flex;
    align-items: stretch;
    gap: 0;
}

    .projects-nav nav a {
        display: flex;
        align-items: center;
        position: relative;
        color: #111;
        font-weight: 700;
        text-decoration: none;
        padding: 0 25px;
    }

        .projects-nav nav a:hover, .projects-nav nav a.active {
            background: var(--projects-gold);
            color: #fff;
        }

        .projects-nav nav a:after {
            display: none;
        }

.projects-hero {
    min-height: 590px;
    display: flex;
    align-items: center;
    padding: 115px 0;
    color: #fff;
    background: linear-gradient(100deg,rgba(47,43,44,.96),rgba(116,110,95,.78)),url('../img/projects/cbc/cbc-01.webp') center/cover;
}

    .projects-hero .container {
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
    }

.eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--projects-gold);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2.2px;
    text-transform: uppercase;
}

    .eyebrow.dark {
        color: #9d8f6f;
    }

.projects-hero h1 {
    max-width: 820px;
    margin: 0 0 24px;
    color: #fff;
    font-size: clamp(44px,6vw,76px);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -2px;
}

.projects-hero p {
    max-width: 680px;
    margin: 0 0 34px;
    color: rgba(255,255,255,.88);
    font-size: 19px;
    line-height: 1.75;
}

.hero-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border-bottom: 2px solid var(--projects-gold);
    padding: 0 0 7px;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

    .hero-link:hover {
        color: var(--projects-gold);
    }

.section-intro {
    max-width: 760px;
    margin-bottom: 42px;
}

    .section-intro h2, .overview-grid h2, .gallery-heading h2 {
        margin: 0 0 22px;
        color: var(--projects-navy);
        font-size: clamp(34px,4vw,52px);
        font-weight: 800;
        line-height: 1.08;
    }

    .section-intro p {
        color: var(--projects-muted);
        font-size: 17px;
        line-height: 1.75;
    }

.featured-projects {
    padding: 95px 0;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 22px;
}

.featured-card {
    position: relative;
    display: block;
    min-height: 470px;
    overflow: hidden;
    padding: 285px 28px 28px;
    background: var(--projects-navy);
    color: #fff;
    text-decoration: none;
}

    .featured-card:hover {
        color: #fff;
        text-decoration: none;
    }

    .featured-card img {
        position: absolute;
        inset: 0 0 auto;
        width: 100%;
        height: 260px;
        object-fit: cover;
        transition: transform .4s;
    }

    .featured-card:hover img {
        transform: scale(1.04);
    }

    .featured-card span {
        color: var(--projects-gold);
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 1.5px;
        text-transform: uppercase;
    }

    .featured-card h3 {
        margin: 10px 0 18px;
        color: #fff;
        font-size: 24px;
        line-height: 1.25;
    }

    .featured-card strong {
        font-size: 13px;
    }

.project-overview {
    padding: 95px 0;
    background: var(--projects-bg);
}

.overview-grid {
    display: grid;
    grid-template-columns: minmax(0,1.15fr) minmax(350px,.85fr);
    align-items: center;
    gap: 80px;
}

    .overview-grid .lead {
        font-size: 21px;
        font-weight: 700;
        line-height: 1.6;
    }

    .overview-grid p:not(.lead) {
        color: var(--projects-muted);
        font-size: 16px;
        line-height: 1.85;
    }

.project-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid #d8d1bd;
    background: #fff;
}

    .project-facts div {
        min-height: 165px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 26px;
        border-right: 1px solid #d8d1bd;
        border-bottom: 1px solid #d8d1bd;
    }

        .project-facts div:nth-child(2n) {
            border-right: 0;
        }

        .project-facts div:nth-child(n+3) {
            border-bottom: 0;
        }

    .project-facts strong {
        display: block;
        color: var(--projects-gold);
        font-size: 34px;
        line-height: 1.15;
    }

    .project-facts span {
        margin-top: 6px;
        color: var(--projects-muted);
        font-size: 14px;
    }

.project-gallery-section {
    padding: 95px 0;
    background: #fff;
}

.gallery-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 38px;
}

    .gallery-heading h2 {
        max-width: 650px;
        margin-bottom: 0;
    }

.gallery-filter {
    max-width: 650px;
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-button {
    border: 1px solid #d8d1bd;
    border-radius: 50px;
    background: #fff;
    padding: 9px 16px;
    color: var(--projects-navy);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: .2s;
}

    .filter-button:hover, .filter-button.active {
        border-color: var(--projects-gold);
        background: var(--projects-gold);
        color: #2f2b2c;
    }

.governorate-group {
    margin-bottom: 48px;
}

.governorate-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0 0 20px;
    color: var(--projects-navy);
    font-size: 24px;
    font-weight: 800;
}

    .governorate-title:after {
        content: "";
        height: 1px;
        flex: 1;
        background: #d8d1bd;
    }

.facility-block {
    margin-bottom: 30px;
}

.facility-title {
    margin: 0 0 13px;
    color: var(--projects-muted);
    font-size: 15px;
    font-weight: 800;
}

.facility-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 16px;
}

.gallery-card {
    position: relative;
    overflow: hidden;
    min-height: 260px;
    margin: 0;
    border: 0;
    background: #e8e3d5;
    cursor: zoom-in;
}

    .gallery-card img {
        width: 100%;
        height: 100%;
        position: absolute;
        inset: 0;
        object-fit: cover;
        transition: transform .45s ease,filter .45s ease;
    }

    .gallery-card:after {
        content: "View photo";
        position: absolute;
        right: 15px;
        bottom: 15px;
        padding: 8px 12px;
        background: rgba(59,55,58,.88);
        color: #fff;
        font-size: 12px;
        font-weight: 700;
        opacity: 0;
        transform: translateY(8px);
        transition: .25s;
    }

    .gallery-card:hover img {
        transform: scale(1.045);
        filter: brightness(.78);
    }

    .gallery-card:hover:after {
        opacity: 1;
        transform: none;
    }

.portfolio-list {
    padding: 95px 0;
    background: var(--projects-bg);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    border-top: 1px solid #d8d1bd;
}

    .portfolio-grid article {
        position: relative;
        min-height: 145px;
        padding: 28px 30px 28px 80px;
        border-right: 1px solid #d8d1bd;
        border-bottom: 1px solid #d8d1bd;
        background: #fff;
    }

        .portfolio-grid article:nth-child(2n) {
            border-right: 0;
        }

    .portfolio-grid b {
        position: absolute;
        top: 29px;
        left: 25px;
        color: var(--projects-gold);
        font-size: 18px;
    }

    .portfolio-grid span {
        color: #89775d;
        font-size: 12px;
        font-weight: 800;
        text-transform: uppercase;
    }

    .portfolio-grid h3 {
        margin: 9px 0 0;
        color: var(--projects-navy);
        font-size: 19px;
        line-height: 1.4;
    }

.projects-footer {
    padding: 60px 0;
    background: #3b373a;
    color: #fff;
}

.footer-inner {
    display: flex;
    align-items: center;
    gap: 32px;
}

    .footer-inner img {
        max-width: 230px;
        padding: 8px;
    }

    .footer-inner p {
        max-width: 520px;
        margin: 0;
        color: rgba(255,255,255,.75);
        line-height: 1.7;
    }

    .footer-inner a {
        margin-left: auto;
        border-bottom: 1px solid var(--projects-gold);
        color: #fff;
        text-decoration: none;
    }

.projects-lightbox {
    position: fixed;
    z-index: 9999;
    inset: 0;
    display: grid;
    grid-template-columns: 80px minmax(0,1fr) 80px;
    align-items: center;
    padding: 40px;
    background: rgba(20,18,18,.96);
}

    .projects-lightbox[hidden] {
        display: none;
    }

    .projects-lightbox figure {
        max-width: 1200px;
        max-height: calc(100vh - 80px);
        margin: auto;
        text-align: center;
    }

    .projects-lightbox img {
        max-width: 100%;
        max-height: calc(100vh - 130px);
        object-fit: contain;
    }

    .projects-lightbox figcaption {
        margin-top: 14px;
        color: #fff;
        font-size: 15px;
    }

    .projects-lightbox button {
        border: 0;
        background: transparent;
        color: var(--projects-gold);
        cursor: pointer;
    }

.lightbox-close {
    position: absolute;
    top: 18px;
    right: 25px;
    font-size: 44px;
}

.lightbox-prev, .lightbox-next {
    font-size: 58px;
}

.lightbox-prev {
    grid-column: 1;
}

.projects-lightbox figure {
    grid-column: 2;
}

.lightbox-next {
    grid-column: 3;
}

.projects-rtl {
    direction: rtl;
    text-align: right;
    font-family: Tahoma,Arial,sans-serif;
}

    .projects-rtl .projects-hero .container {
        margin-right: auto;
        margin-left: auto;
    }

    .projects-rtl .eyebrow {
        letter-spacing: 0;
    }

    .projects-rtl .gallery-filter {
        justify-content: flex-start;
    }

    .projects-rtl .gallery-card:after {
        content: "\639 \631 \636  \627 \644 \635 \648 \631 \629 ";
        right: auto;
        left: 15px;
    }

    .projects-rtl .portfolio-grid article {
        padding: 28px 80px 28px 30px;
        border-right: 0;
        border-left: 1px solid #d8d1bd;
    }

        .projects-rtl .portfolio-grid article:nth-child(2n) {
            border-left: 0;
        }

    .projects-rtl .portfolio-grid b {
        right: 25px;
        left: auto;
    }

    .projects-rtl .footer-inner a {
        margin-right: auto;
        margin-left: 0;
    }

    .projects-rtl .lightbox-close {
        right: auto;
        left: 25px;
    }

html[dir="rtl"] .projects-lightbox {
    direction: ltr;
}

    html[dir="rtl"] .projects-lightbox figcaption {
        direction: rtl;
    }

@media(max-width:1100px) {
    .projects-nav nav a;

{
    padding: 0 13px;
    font-size: 13px;
}

.projects-logo img {
    width: 260px;
}

}

@media(max-width:991px) {
    .overview-grid;

{
    grid-template-columns: 1fr;
    gap: 45px;
}

.featured-grid {
    grid-template-columns: 1fr 1fr;
}

.featured-card:last-child {
    grid-column: 1/-1;
}

.gallery-heading {
    display: block;
}

.gallery-filter {
    justify-content: flex-start;
    margin-top: 24px;
}

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

.footer-inner {
    align-items: flex-start;
    flex-wrap: wrap;
}

    .footer-inner a {
        margin-left: 0;
    }

}

@media(max-width:760px) {
    .projects-nav;

{
    min-height: auto;
    flex-direction: column;
    padding-top: 15px;
    gap: 10px;
}

.projects-logo img {
    width: 270px;
}

.projects-nav nav {
    width: 100%;
    overflow-x: auto;
}

    .projects-nav nav a {
        min-height: 48px;
        padding: 0 14px;
        font-size: 12px;
        white-space: nowrap;
    }

.projects-hero {
    min-height: 520px;
    padding: 90px 0;
}

    .projects-hero h1 {
        font-size: 42px;
        letter-spacing: -1px;
    }

    .projects-hero p {
        font-size: 16px;
    }

.featured-projects, .project-overview, .project-gallery-section, .portfolio-list {
    padding: 65px 0;
}

.featured-grid, .portfolio-grid {
    grid-template-columns: 1fr;
}

.featured-card:last-child {
    grid-column: auto;
}

.portfolio-grid article {
    border-right: 0;
}

.project-facts strong {
    font-size: 27px;
}

.project-facts div {
    min-height: 135px;
    padding: 18px;
}

.facility-grid {
    grid-template-columns: 1fr;
}

.gallery-card {
    min-height: 240px;
}

.projects-lightbox {
    grid-template-columns: 42px minmax(0,1fr) 42px;
    padding: 20px 6px;
}

.lightbox-prev, .lightbox-next {
    font-size: 42px;
}

.projects-lightbox img {
    max-height: calc(100vh - 115px);
}
}
