/* FEATURED PROJECT CARD */

.featured-project {
    position: relative;
    height: 100%;
    min-height: 480px;
    overflow: hidden;
    border-radius: 12px !important;
	
}

/* The post itself fills the card */
.featured-project article {
    position: relative !important;
    height: 100% !important;
    min-height: 480px !important;
    overflow: hidden !important;
	 border-radius: 12px !important;
	  box-shadow:
        0 8px 25px rgba(30, 55, 75, 0.10),
        0 2px 6px rgba(30, 55, 75, 0.05) !important;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}
/* Subtle lift on hover */
.featured-project article:hover {
    transform: translateY(-3px);

    box-shadow:
        0 14px 32px rgba(30, 55, 75, 0.14),
        0 3px 8px rgba(30, 55, 75, 0.06) !important;
	  
}

/* Featured image fills the whole card */
.featured-project .post-thumbnail,
.featured-project .post-thumbnail-inner {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

.featured-project .post-thumbnail-inner img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Green curved overlay */
.featured-project article::after {
    content: "";
    position: absolute;
    left: -12%;
    bottom: -28%;
    width: 125%;
    height: 78%;
    background: rgba(20, 86, 66, 0.94);
    border-radius: 0 100% 0 0;
    z-index: 1;
    pointer-events: none;
}

/* Content above green overlay */
.featured-project .entry-content-wrap {
    position: absolute !important;
    left: 0 !important;
    right: 18% !important;
    bottom: 0 !important;
    z-index: 2 !important;
    padding: 10px 10px !important;
    background: transparent !important;
}

/* Featured project text */

.featured-project .entry-content-wrap,
.featured-project .entry-content-wrap p,
.featured-project .entry-content-wrap a {
    color: #ffffff !important;
}

/* Category */
.featured-project .entry-taxonomies,
.featured-project .entry-taxonomies a {
    color: #ffffff !important;
    font-size: 13px !important;
	
}

/* Title */
.featured-project .entry-title,
.featured-project .entry-title a {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: none !important;
    font-size: 22px !important;
    line-height: 1.15 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
	
	
}
/* Excerpt */
.featured-project .entry-summary,
.featured-project .entry-summary p {
    color: #ffffff !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
	 margin-top: 8px !important;
}

/* Read more */
.featured-project .more-link {
    color: #ffffff !important;
    font-size: 14px !important;
}

/* Featured project Read More button */
.featured-project .post-more-link {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 10px 18px !important;
    background: #ffffff !important;
    color: #3569a3 !important;
    -webkit-text-fill-color: #3569a3 !important;
    border: 2px solid #ffffff !important;
    border-radius: 8px;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    transition: all 0.25s ease;
}

.featured-project .post-more-link:hover {
    background: transparent !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    transform: translateY(-2px);
}

.featured-project .post-more-link,
.featured-project .post-more-link * {
    color: #3569a3 !important;
    fill: #3569a3 !important;
    stroke: #3569a3 !important;
    -webkit-text-fill-color: #3569a3 !important;
}

.featured-project .post-more-link:hover,
.featured-project .post-more-link:hover * {
    color: #ffffff !important;
    fill: #ffffff !important;
    stroke: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

.featured-project,
.featured-project > div,
.featured-project .kt-post-grid-layout {
    box-shadow: none !important;
}
/* =========================================================
   MOBILE FEATURED PROJECT
========================================================= */

@media (max-width: 767px) {
/* Remove Kadence thumbnail ratio spacing */
.featured-project .post-thumbnail {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    aspect-ratio: auto !important;
}

.featured-project .post-thumbnail-inner {
    padding: 0 !important;
}

/* Ensure content follows image immediately */
.featured-project .entry-content-wrap {
    margin: 0 !important;
    padding: 20px !important;
}
    /* Featured project becomes a standard vertical card */
    .featured-project {
        height: auto !important;
        min-height: 0 !important;
        overflow: hidden !important;
        border-radius: 12px !important;
    }

    .featured-project article {
        display: flex !important;
        flex-direction: column !important;

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

        overflow: hidden !important;

        background: #ffffff !important;

        border-radius: 12px !important;

        box-shadow:
            0 8px 24px rgba(30, 55, 75, 0.12),
            0 2px 5px rgba(30, 55, 75, 0.05) !important;
    }


    /* Remove green desktop overlay */
    .featured-project article::after {
        display: none !important;
    }


    /* Image becomes normal top image */
    .featured-project .post-thumbnail {
        position: relative !important;

        display: block !important;

        inset: auto !important;

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

        margin: 0 !important;
    }

    .featured-project .post-thumbnail-inner {
        position: relative !important;

        inset: auto !important;

        width: 100% !important;
        height: 180px !important;
    }

    .featured-project .post-thumbnail-inner img {
        display: block !important;

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

        object-fit: cover !important;
    }


    /* Content below image */
    .featured-project .entry-content-wrap {
        position: relative !important;

        left: auto !important;
        right: auto !important;
        bottom: auto !important;

        width: 100% !important;

        padding: 22px 20px 24px !important;

        background: transparent !important;

        box-sizing: border-box !important;
    }


    /* Category */
.featured-project .entry-taxonomies,
.featured-project .entry-taxonomies a {
    font-size: 11px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    margin-bottom: 7px !important;

    background: linear-gradient(
        90deg,
        #3569a3,
        #55b88b
    ) !important;

    -webkit-background-clip: text !important;
    background-clip: text !important;

    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
}

    /* Title */
    .featured-project .entry-title {
        margin: 0 0 10px !important;
    }

    .featured-project .entry-title,
    .featured-project .entry-title a {
        font-size: 21px !important;
        line-height: 1.2 !important;

        color: #3569a3 !important;
        -webkit-text-fill-color: transparent !important;

        background: linear-gradient(
            90deg,
            #3569a3,
            #55b88b
        ) !important;

        -webkit-background-clip: text !important;
        background-clip: text !important;
    }


    /* Excerpt */
    .featured-project .entry-summary,
    .featured-project .entry-summary p {
        color: #4b5960 !important;

        font-size: 14px !important;
        line-height: 1.45 !important;

        margin-bottom: 15px !important;
    }


    /* Read more */
    .featured-project .post-more-link {
        padding: 0 !important;

        background: transparent !important;

        border: 0 !important;
        border-radius: 0 !important;

        color: #234f7e !important;
        -webkit-text-fill-color: #234f7e !important;

        font-size: 12px !important;
        font-weight: 700 !important;

        text-transform: uppercase;
        letter-spacing: 0.08em;
    }

    .featured-project .post-more-link * {
        color: #234f7e !important;
        fill: #234f7e !important;
        stroke: #234f7e !important;
        -webkit-text-fill-color: #234f7e !important;
    }
}
/* =========================================================
   RIGHT PROJECT CARDS
   ========================================================= */

/* Desktop scrolling container */
@media (min-width: 768px) {

    .project-stack-posts {
        height: 480px;
        overflow-y: auto;
        overflow-x: hidden;
        scroll-snap-type: y mandatory;
        scroll-behavior: smooth;

        /* Hide scrollbar */
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .project-stack-posts::-webkit-scrollbar {
        display: none;
    }

    .project-stack-posts article {
        scroll-snap-align: start;
    }
}


/* Individual project card */
.project-stack-posts article {
    position: relative !important;
    height: 220px !important;
    overflow: hidden !important;
    border-radius: 12px !important;

    background:
        radial-gradient(
            circle at 92% 15%,
            rgba(86, 165, 145, 0.10) 0%,
            rgba(86, 165, 145, 0.04) 24%,
            transparent 48%
        ),
        linear-gradient(
            135deg,
            #ffffff 0%,
            #ffffff 62%,
            #f5f9f8 100%
        ) !important;

    border: 1px solid rgba(53, 105, 163, 0.10) !important;

    box-shadow:
        0 8px 25px rgba(30, 55, 75, 0.10),
        0 2px 6px rgba(30, 55, 75, 0.05) !important;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


/* Hover */
.project-stack-posts article:hover {
    transform: translateY(-3px);

    box-shadow:
        0 14px 32px rgba(30, 55, 75, 0.14),
        0 3px 8px rgba(30, 55, 75, 0.06) !important;
}


/* Image */
.project-stack-posts .post-thumbnail,
.project-stack-posts .post-thumbnail-inner {
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
}

.project-stack-posts .post-thumbnail-inner img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    filter: saturate(0.9) brightness(0.95);
}


/* Content */
.project-stack-posts .entry-content-wrap {
    position: relative !important;
    z-index: 2 !important;
    width: 400px !important;
    height: 100% !important;
    box-sizing: border-box !important;
    padding: 26px 28px !important;
    background: transparent !important;
}


/* Category */
.project-stack-posts .entry-taxonomies,
.project-stack-posts .entry-taxonomies a {
    font-size: 11px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    margin-bottom: 6px !important;
}


/* Title */
.project-stack-posts .entry-title {
    margin: 0 0 10px !important;
}

.project-stack-posts .entry-title,
.project-stack-posts .entry-title a {
    font-size: 22px !important;
    line-height: 1.15 !important;
}


/* Excerpt */
.project-stack-posts .entry-summary {
    margin: 0 0 12px !important;
}

.project-stack-posts .entry-summary,
.project-stack-posts .entry-summary p {
    font-size: 14px !important;
    line-height: 1.4 !important;
}

.project-stack-posts .entry-summary p {
    margin: 0 !important;
}


/* =========================================================
   SCROLL CONTROLS
   ========================================================= */

.project-scroll-controls {
    position: absolute;
    left: -38px;
    top: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 10;
}

.project-scroll-controls button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid rgba(53, 105, 163, 0.25);
    border-radius: 50%;
    background: #ffffff;
    color: #3569a3;
    font-size: 10px;
    line-height: 1;
    cursor: pointer;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.project-scroll-controls button:hover {
    background: #3569a3;
    color: #ffffff;
    border-color: #3569a3;
}


/* =========================================================
   MOBILE PROJECT CARDS
   ========================================================= */

@media (max-width: 767px) {

    /* Hide desktop scroll controls */
    .project-scroll-controls {
        display: none;
    }


    /* Stack area */
    .project-stack-posts {
          width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    overflow: visible !important;
    border-radius: 0 !important;
    }


    /* Each project becomes a vertical card */
    .project-stack-posts article {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        min-height: 0 !important;
        height: auto !important;
        margin: 0 0 22px 0 !important;
        border-radius: 0 !important;
        overflow: hidden !important;

        background:
            linear-gradient(
                145deg,
                #ffffff 0%,
                #ffffff 70%,
                #f3f8f7 100%
            ) !important;

        box-shadow:
            0 8px 24px rgba(30, 55, 75, 0.12),
            0 2px 5px rgba(30, 55, 75, 0.05) !important;
    }


    /* Image */
    .project-stack-posts .post-thumbnail {
        position: relative !important;
        display: block !important;
        width: 100% !important;
        height: 180px !important;
        margin: 0 !important;
        padding-top: 20px !important;
        inset: auto !important;
    }

    .project-stack-posts .post-thumbnail-inner {
        position: relative !important;
        width: 100% !important;
        height: 180px !important;
    }

    .project-stack-posts .post-thumbnail-inner img {
        display: block !important;
        width: 100% !important;
        height: 180px !important;
        object-fit: cover !important;
    }

    .project-stack-posts .post-thumbnail.kadence-thumbnail-ratio-2-3 {
        padding-bottom: 20px !important;
    }


    /* Content */
    .project-stack-posts .entry-content-wrap {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        padding: 22px 20px 24px !important;
        background: transparent !important;
        box-sizing: border-box !important;
    }

    .project-stack-posts .entry-header,
    .project-stack-posts .entry-summary,
    .project-stack-posts .entry-footer {
        width: 100% !important;
        max-width: none !important;
    }


    /* Category */
    .project-stack-posts .entry-taxonomies,
    .project-stack-posts .entry-taxonomies a {
        font-size: 11px !important;
        line-height: 1.2 !important;
        margin-bottom: 7px !important;
    }


    /* Title */
    .project-stack-posts .entry-title {
        margin: 0 0 10px 0 !important;
    }

    .project-stack-posts .entry-title,
    .project-stack-posts .entry-title a {
        font-size: 21px !important;
        line-height: 1.2 !important;
    }


    /* Excerpt */
    .project-stack-posts .entry-summary {
        margin: 0 0 15px 0 !important;
    }

    .project-stack-posts .entry-summary,
    .project-stack-posts .entry-summary p {
        font-size: 14px !important;
        line-height: 1.45 !important;
    }
}