/* Dayspring Projects */

.dayspring-projects-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.8rem;
}

.dayspring-projects-nav__item {
    appearance: none;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: Inter, sans-serif;
    font-weight: 500;
    color: #808080;
    padding: 0;
}

.dayspring-projects-nav__item--active {
    color: #231f20;
    border: 0.5px solid rgba(35, 31, 32, 0.58);
    padding: 8px 12px;
    border-radius: 30px;
}

.dayspring-projects-nav__dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #b91c1c;
    margin-right: 6px;
    vertical-align: middle;
}

/* Grid */
.dayspring-projects__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    transition: opacity 0.2s ease;
}

.dayspring-projects--loading .dayspring-projects__grid {
    opacity: 0.35;
    pointer-events: none;
}

.dayspring-projects__load-wrap {
    text-align: center;
    margin-top: 3.5rem;
}

.dayspring-projects__load-more {
    padding: 0.7rem 2rem;
    border: 1px solid #231f20;
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
}

/* Project card */
.dayspring-project-card {
    position: relative;
    overflow: hidden;
}

.dayspring-project-card--fade-in {
    opacity: 0;
    animation: dayspring-fade-in 0.35s ease forwards;
}

@keyframes dayspring-fade-in {
    to {
        opacity: 1;
    }
}

.dayspring-project-card__link {
    display: block;
    position: relative;
    text-decoration: none;
    color: inherit;
}

.dayspring-project-card__image-wrap {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.dayspring-project-card__image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.dayspring-project-card__placeholder {
    width: 100%;
    height: 100%;
    background: #e5e7eb;
}

/* Overlay - slide in from left, 70% width, rouge */
.dayspring-project-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 70%;
    height: 100%;
    background: #b91c1c;
    color: #fff;
    padding: 1.5rem 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    border-radius: 0 52px 12px 10px;
}

.dayspring-project-card:hover .dayspring-project-card__overlay,
.dayspring-project-card--active .dayspring-project-card__overlay,
.dayspring-project-card__link:focus-within .dayspring-project-card__overlay {
    transform: translateX(0);
}

.dayspring-project-card__location {
    font-family: Manrope, sans-serif;
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
    opacity: 0.9;
}

.dayspring-project-card__title {
    font-size: 24px;
    font-weight: 400;
    margin: 0 0 1rem;
    line-height: 1.2;
    font-family: 'Manrope';
    color: white;
    padding: revert-layer;
}

.dayspring-project-card__arrow {
    position: absolute;
    top: 10%;
    right: 10%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: transparent;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.dayspring-project-card__arrow img {
    width: 18px;
    height: 15px;
    object-fit: contain;
}

.dayspring-project-card__arrow:hover {
    transform: scale(1.2) rotate(-45deg);
}

@media (max-width: 980px) {
    .dayspring-projects__grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .dayspring-project-card__overlay {
        padding: 1.5rem 7% 1.5rem;
    }

    .dayspring-project-card__title {
        font-size: 18px;
    }

    .dayspring-project-card__arrow {
        position: absolute;
        top: 15%;
        right: calc(7% + (32px / 2));
        width: 35px;
        height: 35px;
    }

    .dayspring-project-card__arrow img {
        width: 13px;
        height: 12px;
    }
}

@media (max-width: 500px) {
    .dayspring-projects__grid {
        grid-template-columns: repeat(1, 1fr);
    }
}