/* ==========================================
   Dar Arabia — Projects Page
   ========================================== */

.dar-projects-page {
    min-height: 720px;
    background: #f7f6f9;
    color: #1f1b27;
}

.dar-projects-hero {
    position: relative;
    overflow: hidden;
    padding: 68px 0 78px;
    background:
        radial-gradient(
            circle at 88% 20%,
            rgba(217, 90, 43, 0.27),
            transparent 30%
        ),
        radial-gradient(
            circle at 7% 90%,
            rgba(255, 255, 255, 0.1),
            transparent 25%
        ),
        linear-gradient(
            135deg,
            #241169 0%,
            #351d80 52%,
            #1c104d 100%
        );
    color: #ffffff;
}

.dar-projects-hero::after {
    content: "";
    position: absolute;
    inset-inline-end: -80px;
    bottom: -140px;
    width: 370px;
    height: 370px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 50%;
}

.dar-projects-container {
    width: min(1180px, calc(100% - 36px));
    margin-inline: auto;
}

.dar-projects-breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 21px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.72);
}

.dar-projects-breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.dar-projects-breadcrumb a:hover {
    color: #ffffff;
}

.dar-projects-hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
}

.dar-projects-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    padding: 7px 13px;
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
    font-size: 12px;
    font-weight: 700;
}

.dar-projects-eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #e56a38;
    box-shadow: 0 0 0 5px rgba(229, 106, 56, 0.17);
}

.dar-projects-hero h1 {
    margin: 0;
    font-size: clamp(32px, 5vw, 55px);
    line-height: 1.15;
    font-weight: 850;
    letter-spacing: -1.4px;
}

.dar-projects-hero p {
    max-width: 660px;
    margin: 17px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 16px;
    line-height: 1.95;
}

.dar-projects-section {
    padding: 48px 0 76px;
}

.dar-projects-toolbar {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    gap: 16px;
    align-items: center;
    margin-bottom: 26px;
    padding: 16px;
    border: 1px solid #ebe8ef;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 9px 32px rgba(31, 20, 62, 0.055);
}

.dar-project-search {
    position: relative;
}

.dar-project-search::before {
    content: "⌕";
    position: absolute;
    inset-inline-start: 16px;
    top: 50%;
    transform: translateY(-52%);
    color: #736c7d;
    font-size: 22px;
    pointer-events: none;
}

.dar-project-search input {
    width: 100%;
    height: 48px;
    padding: 0 47px 0 16px;
    border: 1px solid #e4e0e9;
    border-radius: 13px;
    background: #faf9fb;
    color: #251d31;
    font: inherit;
    outline: none;
    transition: 0.2s ease;
}

.dar-project-search input:focus {
    border-color: #7b68bb;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(76, 48, 150, 0.08);
}

.dar-projects-toolbar-side {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dar-project-count {
    min-width: 145px;
    color: #5d5666;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.dar-project-sort {
    height: 48px;
    min-width: 176px;
    padding: 0 14px;
    border: 1px solid #e4e0e9;
    border-radius: 13px;
    background: #ffffff;
    color: #30293a;
    font: inherit;
    font-size: 13px;
    font-weight: 650;
    outline: none;
}

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

.dar-project-card {
    position: relative;
    overflow: hidden;
    border: 1px solid #e8e4ec;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(33, 22, 63, 0.07);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.dar-project-card:hover {
    transform: translateY(-6px);
    border-color: rgba(71, 46, 145, 0.22);
    box-shadow: 0 20px 48px rgba(33, 22, 63, 0.13);
}

.dar-project-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background:
        linear-gradient(
            145deg,
            rgba(37, 18, 107, 0.88),
            rgba(217, 90, 43, 0.74)
        );
}

.dar-project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.dar-project-card:hover .dar-project-card-image img {
    transform: scale(1.045);
}

.dar-project-image-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    font-weight: 800;
}

.dar-project-status {
    position: absolute;
    top: 14px;
    inset-inline-start: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: #2e2450;
    font-size: 11px;
    font-weight: 800;
    box-shadow: 0 6px 18px rgba(23, 17, 42, 0.14);
}

.dar-project-status::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #d95a2b;
}

.dar-project-card-body {
    padding: 20px;
}

.dar-project-location {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 22px;
    margin-bottom: 8px;
    color: #77707e;
    font-size: 12px;
    font-weight: 600;
}

.dar-project-location::before {
    content: "⌖";
    color: #d95a2b;
    font-size: 16px;
}

.dar-project-title {
    margin: 0;
    color: #261b45;
    font-size: 20px;
    line-height: 1.5;
    font-weight: 850;
}

.dar-project-description {
    display: -webkit-box;
    overflow: hidden;
    min-height: 48px;
    margin: 8px 0 17px;
    color: #746d7c;
    font-size: 13px;
    line-height: 1.8;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.dar-project-progress-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    color: #625b6a;
    font-size: 11px;
    font-weight: 750;
}

.dar-project-progress-head strong {
    color: #392675;
    font-size: 12px;
}

.dar-project-progress-track {
    overflow: hidden;
    height: 7px;
    margin-bottom: 17px;
    border-radius: 999px;
    background: #ece9f1;
}

.dar-project-progress-value {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #d95a2b, #f18a55);
}

.dar-project-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.dar-project-stat {
    padding: 11px 12px;
    border: 1px solid #eeeaf1;
    border-radius: 13px;
    background: #faf9fb;
}

.dar-project-stat span {
    display: block;
    margin-bottom: 3px;
    color: #8a838f;
    font-size: 10px;
    font-weight: 650;
}

.dar-project-stat strong {
    color: #312650;
    font-size: 14px;
    font-weight: 850;
}

.dar-project-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #eeeaf1;
}

.dar-project-code {
    overflow: hidden;
    color: #8a838f;
    font-size: 11px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dar-project-details {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 115px;
    height: 40px;
    padding: 0 16px;
    border-radius: 11px;
    background: #2d176f;
    color: #ffffff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    transition: 0.2s ease;
}

.dar-project-details:hover {
    background: #d95a2b;
    transform: translateX(-2px);
}

.dar-projects-message {
    grid-column: 1 / -1;
    padding: 55px 24px;
    border: 1px dashed #d8d2df;
    border-radius: 20px;
    background: #ffffff;
    text-align: center;
}

.dar-projects-message strong {
    display: block;
    margin-bottom: 8px;
    color: #2f2256;
    font-size: 20px;
}

.dar-projects-message p {
    margin: 0;
    color: #79717f;
    font-size: 13px;
    line-height: 1.8;
}

.dar-project-skeleton {
    min-height: 450px;
    overflow: hidden;
}

.dar-project-skeleton .dar-project-card-image,
.dar-project-skeleton-line {
    background:
        linear-gradient(
            90deg,
            #efedf1 25%,
            #f8f7f9 50%,
            #efedf1 75%
        );
    background-size: 220% 100%;
    animation: dar-project-loading 1.25s infinite linear;
}

.dar-project-skeleton-line {
    height: 13px;
    margin-bottom: 11px;
    border-radius: 7px;
}

.dar-project-skeleton-line.short {
    width: 55%;
}

.dar-project-skeleton-line.medium {
    width: 78%;
}

@keyframes dar-project-loading {
    from {
        background-position: 200% 0;
    }

    to {
        background-position: -200% 0;
    }
}

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

@media (max-width: 720px) {
    .dar-projects-container {
        width: min(100% - 24px, 1180px);
    }

    .dar-projects-hero {
        padding: 46px 0 58px;
    }

    .dar-projects-hero h1 {
        font-size: 34px;
    }

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

    .dar-projects-section {
        padding: 27px 0 55px;
    }

    .dar-projects-toolbar {
        grid-template-columns: 1fr;
        padding: 12px;
        border-radius: 16px;
    }

    .dar-projects-toolbar-side {
        justify-content: space-between;
    }

    .dar-project-count {
        min-width: 0;
    }

    .dar-project-sort {
        min-width: 160px;
    }

    .dar-projects-grid {
        grid-template-columns: 1fr;
        gap: 17px;
    }

    .dar-project-card {
        border-radius: 18px;
    }
}

@media (max-width: 430px) {
    .dar-projects-toolbar-side {
        display: grid;
        grid-template-columns: 1fr;
    }

    .dar-project-sort {
        width: 100%;
    }

    .dar-project-stats {
        grid-template-columns: 1fr 1fr;
    }
}
