/* ==========================================
   Dar Arabia — All Decorative Blocks Replacer
   ========================================== */

.dar-hero-project-photo {
    position: relative !important;
    display: block !important;
    overflow: hidden !important;
    isolation: isolate !important;

    width: 100% !important;
    height: 100% !important;
    min-height: 385px !important;

    padding: 0 !important;
    border: 0 !important;
    border-radius: 28px !important;

    background:
        linear-gradient(
            135deg,
            #281268,
            #3d2389 58%,
            #21104f
        ) !important;

    box-shadow:
        0 23px 58px
        rgba(25, 13, 56, 0.2) !important;
}

.dar-hero-project-photo,
.dar-hero-project-photo * {
    box-sizing: border-box;
}

.dar-hero-project-photo__slides {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.dar-hero-project-photo__slide {
    position: absolute;
    inset: 0;

    opacity: 0;
    transform: scale(1.045);

    transition:
        opacity 0.75s ease,
        transform 5.7s ease;
}

.dar-hero-project-photo__slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.dar-hero-project-photo__slide img {
    display: block;

    width: 100% !important;
    height: 100% !important;

    object-fit: cover !important;
    object-position: center !important;
}

.dar-hero-project-photo__slide.is-error {
    background:
        linear-gradient(
            145deg,
            #351b82,
            #d95a2b
        );
}

.dar-hero-project-photo__shade {
    position: absolute;
    inset: 0;
    z-index: 1;

    background:
        linear-gradient(
            180deg,
            rgba(20, 9, 50, 0.03) 0%,
            rgba(21, 10, 53, 0.16) 43%,
            rgba(19, 8, 45, 0.82) 100%
        );

    pointer-events: none;
}

.dar-hero-project-photo__glow {
    position: absolute;
    z-index: 1;

    width: 390px;
    height: 390px;

    inset-inline-end: -145px;
    bottom: -200px;

    border-radius: 50%;

    background:
        rgba(217, 90, 43, 0.28);

    filter: blur(4px);
    pointer-events: none;
}

.dar-hero-project-photo__top {
    position: absolute;
    z-index: 3;

    top: 18px;
    inset-inline-start: 18px;
    inset-inline-end: 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.dar-hero-project-photo__badge,
.dar-hero-project-photo__counter {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 35px;
    padding: 0 13px;

    border:
        1px solid
        rgba(255, 255, 255, 0.22);

    border-radius: 999px;

    background:
        rgba(27, 13, 67, 0.38);

    color: #ffffff;

    font-size: 9px !important;
    font-weight: 900;

    backdrop-filter: blur(11px);
}

.dar-hero-project-photo__badge {
    gap: 7px;
}

.dar-hero-project-photo__badge::before {
    content: "";

    width: 7px;
    height: 7px;

    border-radius: 50%;
    background: #ef7843;
}

.dar-hero-project-photo__bottom {
    position: absolute;
    z-index: 3;

    inset-inline-start: 21px;
    inset-inline-end: 21px;
    bottom: 20px;

    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
}

.dar-hero-project-photo__info {
    max-width: 73%;
    color: #ffffff;
}

.dar-hero-project-photo__eyebrow {
    display: block;
    margin-bottom: 6px;

    color: #f6a17a;

    font-size: 9px !important;
    font-weight: 900;
}

.dar-hero-project-photo__title {
    margin: 0 !important;

    color: #ffffff !important;

    font-size:
        clamp(
            18px,
            2.2vw,
            27px
        ) !important;

    line-height: 1.4 !important;
    font-weight: 900 !important;

    text-shadow:
        0 4px 18px
        rgba(10, 5, 30, 0.38);
}

.dar-hero-project-photo__location {
    margin-top: 6px;

    color:
        rgba(255, 255, 255, 0.8);

    font-size: 10px !important;
    line-height: 1.7;
}

.dar-hero-project-photo__link {
    flex: 0 0 auto;

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

    min-height: 41px;
    padding: 0 15px;

    border: 0;
    border-radius: 11px;

    background:
        rgba(255, 255, 255, 0.93);

    color: #301b70 !important;
    text-decoration: none;

    font-size: 9px !important;
    font-weight: 900;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.dar-hero-project-photo__link:hover {
    background: #d95a2b;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.dar-hero-project-photo__dots {
    position: absolute;
    z-index: 4;

    inset-inline-start: 21px;
    bottom: 116px;

    display: flex;
    align-items: center;
    gap: 6px;
}

.dar-hero-project-photo__dot {
    width: 8px;
    height: 8px;

    min-width: 0 !important;
    min-height: 0 !important;

    padding: 0 !important;
    border: 0 !important;

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.46);

    cursor: pointer;

    transition:
        width 0.2s ease,
        border-radius 0.2s ease,
        background 0.2s ease;
}

.dar-hero-project-photo__dot.is-active {
    width: 25px;

    border-radius: 999px;
    background: #ffffff;
}

/* Prevent old pseudo artwork from appearing */

.dar-hero-project-photo::before,
.dar-hero-project-photo::after {
    display: none !important;
    content: none !important;
}

/* Loading state */

.dar-hero-project-photo-loading {
    position: relative;
    overflow: hidden;
}

.dar-hero-project-photo-loading::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            100deg,
            transparent 25%,
            rgba(255,255,255,.13) 50%,
            transparent 75%
        );

    background-size: 200% 100%;

    animation:
        dar-project-visual-loading
        1.4s linear infinite;
}

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

@media (max-width: 900px) {
    .dar-hero-project-photo {
        min-height: 335px !important;
        height: 335px !important;

        border-radius: 22px !important;
    }
}

@media (max-width: 620px) {
    .dar-hero-project-photo {
        min-height: 270px !important;
        height: 270px !important;

        border-radius: 18px !important;
    }

    .dar-hero-project-photo__top {
        top: 12px;
        inset-inline-start: 12px;
        inset-inline-end: 12px;
    }

    .dar-hero-project-photo__badge,
    .dar-hero-project-photo__counter {
        min-height: 31px;
        padding: 0 10px;

        font-size: 8px !important;
    }

    .dar-hero-project-photo__bottom {
        inset-inline-start: 14px;
        inset-inline-end: 14px;
        bottom: 13px;
    }

    .dar-hero-project-photo__info {
        max-width: 100%;
    }

    .dar-hero-project-photo__title {
        font-size: 17px !important;
    }

    .dar-hero-project-photo__location {
        font-size: 9px !important;
    }

    .dar-hero-project-photo__link {
        display: none;
    }

    .dar-hero-project-photo__dots {
        inset-inline-start: 14px;
        bottom: 91px;
    }
}
