/* ==========================================================================
   RALIXIT ALL PROJECT VIEW WIDGET STYLES
   ========================================================================== */



/* Wrapper & Layout */
.ralixit-all-project-wrapper {
    position: relative;
    width: 100%;
}

.ralixit-all-project-items {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
}

/* Individual Project Card */
.ralixit-project-card {
    position: relative;
    width: 100%;
    min-height: 80vh;
    overflow: hidden;
    background-color: #111111;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: scroll;
    display: flex;
    align-items: flex-end;
    box-sizing: border-box;
}

/* Smooth Entrance Animation for Scroll Loaded Cards */
.ralixit-project-card.ralixit-card-loaded {
    animation: ralixitCardFadeIn 0.7s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes ralixitCardFadeIn {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Overlay & Background Link */
.ralixit-project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 2;
    pointer-events: none;
}

.ralixit-project-bg-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    display: block;
    cursor: pointer;
}

/* Container & Content Layout (Matching Portfolio Slider) */
.ralixit-project-container-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.ralixit-project-container {
    position: relative;
    z-index: 2;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-top: 60px;
    padding-bottom: 60px;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: flex-start;
    box-sizing: border-box;
}



@media (max-width: 999px) {
    .ralixit-project-container {
        max-width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }
}

.ralixit-project-content-box {
    position: relative;
    pointer-events: auto;
    max-width: 400px;
    width: 100%;
    display: inline-block;
}

.ralixit-project-text-inner {
    position: relative;
    z-index: 2;
}

/* Typography (Matching Portfolio Slider) */
.ralixit-project-subtitle {
    font-family: "Nord", Sans-serif;
    font-size: 16px;
    line-height: 20px;
    font-weight: 400;
    letter-spacing: 0px;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 12px;
    display: block;
}

.ralixit-project-title {
    font-family: "Nord", Sans-serif;
    font-style: normal;
    font-size: 30px;
    font-weight: 400;
    line-height: 40px;
    letter-spacing: 0px;
    color: #ffffff;
    margin: 0 0 15px 0;
    word-break: break-word;
}

.ralixit-project-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.ralixit-project-title a:hover {
    color: #CCB48E;
    opacity: 1;
}

.ralixit-project-location {
    font-family: "Gambetta", Sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 30px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    display: block;
    word-break: break-word;
}

/* Infinite Scroll Spinner */
.ralixit-infinite-scroll-loader {
    text-align: center;
    padding: 40px 0;
    width: 100%;
    clear: both;
}

.ralixit-spinner {
    display: inline-block;
    width: 36px;
    height: 36px;
    border: 3px solid rgba(212, 175, 55, 0.2);
    border-radius: 50%;
    border-top-color: #d4af37;
    animation: ralixitSpin 0.8s ease-in-out infinite;
}

@keyframes ralixitSpin {
    to {
        transform: rotate(360deg);
    }
}

.ralixit-no-projects {
    text-align: center;
    color: #ffffff;
    font-size: 18px;
    padding: 40px 0;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .ralixit-project-title {
        font-size: 38px;
    }
}

@media (max-width: 768px) {
    .ralixit-project-card {
        min-height: 70vh;
    }

    .ralixit-project-container {
        padding-top: 40px;
        padding-bottom: 40px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .ralixit-project-title {
        font-size: 24px;
        line-height: 30px;
    }

    .ralixit-project-subtitle {
        font-size: 14px;
    }

    .ralixit-project-location {
        font-size: 14px;
        line-height: 22px;
    }
}


/* Container alignment using media queries */
@media (min-width: 1025px) and (max-width: 1440px) {
    .ralixit-project-container {
        padding-left: max(20px, calc((100vw - 1140px) / 2));
        padding-right: 40px;
    }
}

@media (min-width: 1441px) and (max-width: 1700px) {
    .ralixit-project-container {
        padding-left: max(20px, calc((101vw - 1420px) / 2));
        padding-right: 40px;
    }
}

@media (min-width: 1701px) and (max-width: 1850px) {
    .ralixit-project-container {
        padding-left: max(20px, calc((100vw - 1550px) / 2));
        padding-right: 40px;
    }
}

@media (min-width: 1851px) {
    .ralixit-project-container {
        padding-left: max(20px, calc((100vw - 1680px) / 2));
        padding-right: 40px;
    }
}

@media (max-width: 1024px) {
    .ralixit-project-container {
        padding-left: 20px;
        padding-right: 20px;
    }
}