
/* =========================================================
   BASE
========================================================= */

#h5-featured-projects,
#h5-featured-projects * {
    box-sizing: border-box;
}

#h5-featured-projects {

    --navy: #102A4C;
    --navy-dark: #091E38;

    --teal: #07836F;
    --teal-soft: #EAF6F3;

    --text: #14233D;
    --body: #667085;
    --muted: #8A94A6;

    --border: #E5E9EF;
    --white: #FFFFFF;

    width: 100%;
    background: #FFFFFF;

    padding: 52px 0 64px;

    font-family:
        "Plus Jakarta Sans",
        Arial,
        sans-serif;

    overflow: hidden;
}


/* =========================================================
   MAIN CONTAINER
========================================================= */

.h5fp-container {

    width: min(1240px, calc(100% - 40px));

    margin: 0 auto;
}


/* =========================================================
   SECTION HEADER
========================================================= */

.h5fp-header {

    display: flex;

    justify-content: space-between;
    align-items: flex-end;

    gap: 25px;

    margin-bottom: 24px;
}


.h5fp-heading {

    margin: 0;

    color: var(--navy);

    font-size: 27px;
    line-height: 1.25;

    font-weight: 700;

    letter-spacing: -0.4px;
}


.h5fp-subheading {

    margin: 6px 0 0;

    color: var(--muted);

    font-size: 13px;
    line-height: 1.5;

    font-weight: 500;
}


#h5fpRegionName {

    color: var(--teal);

    font-weight: 700;
}


/* =========================================================
   HEADER RIGHT
========================================================= */

.h5fp-header-right {

    display: flex;

    align-items: center;

    gap: 9px;
}


.h5fp-view-all {

    margin-right: 8px;

    color: var(--teal);

    text-decoration: none;

    font-size: 12px;

    font-weight: 700;

    transition: .2s ease;
}


.h5fp-view-all:hover {

    color: var(--navy);
}


/* =========================================================
   ARROWS
========================================================= */

.h5fp-arrow {

    width: 38px;
    height: 38px;

    border: 1px solid var(--border);

    border-radius: 50%;

    background: #FFFFFF;

    color: var(--navy);

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 0;

    cursor: pointer;

    transition: .2s ease;
}


.h5fp-arrow:hover {

    background: var(--teal-soft);

    border-color: var(--teal);

    color: var(--teal);
}


.h5fp-arrow svg {

    width: 17px;
    height: 17px;

    fill: none;

    stroke: currentColor;

    stroke-width: 2;

    stroke-linecap: round;
    stroke-linejoin: round;
}


/* =========================================================
   SLIDER AREA
========================================================= */

.h5fp-slider {

    position: relative;

    width: 100%;
}


.h5fp-track {

    display: flex;

    gap: 22px;

    width: 100%;

    padding:
        2px
        2px
        22px;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-behavior: smooth;

    scroll-snap-type: x mandatory;

    scrollbar-width: none;

    -ms-overflow-style: none;
}


.h5fp-track::-webkit-scrollbar {

    display: none;
}


/* =========================================================
   CARD
========================================================= */

.h5fp-card {

    position: relative;

    flex:
        0 0
        calc((100% - 44px) / 3);

    min-width: 0;

    padding-bottom: 88px;

    scroll-snap-align: start;

    cursor: pointer;
}


/* =========================================================
   PROJECT IMAGE
========================================================= */

.h5fp-image-box {

    position: relative;

    width: 100%;

    height: 270px;

    overflow: hidden;

    border-radius: 6px;

    background: #E8EDF2;
}


.h5fp-image {

    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform .55s ease;
}


.h5fp-card:hover
.h5fp-image {

    transform: scale(1.035);
}


/* =========================================================
   IMAGE OVERLAY
========================================================= */

.h5fp-image-box::after {

    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to bottom,
            rgba(5, 20, 38, .05),
            rgba(5, 20, 38, .15)
        );

    pointer-events: none;
}


/* =========================================================
   FEATURED BADGE
========================================================= */

.h5fp-badge {

    position: absolute;

    z-index: 4;

    top: 15px;
    left: 0;

    padding:
        6px
        10px;

    background: var(--teal);

    color: #FFFFFF;

    font-size: 9px;

    line-height: 1;

    font-weight: 700;

    letter-spacing: .15px;

    text-transform: uppercase;
}


/* =========================================================
   HEART
========================================================= */

.h5fp-heart {

    position: absolute;

    z-index: 5;

    top: 13px;
    right: 13px;

    width: 36px;
    height: 36px;

    padding: 0;

    border: none;

    background: transparent;

    color: #FFFFFF;

    cursor: pointer;
}


.h5fp-heart svg {

    width: 27px;
    height: 27px;

    fill:
        rgba(0, 0, 0, .10);

    stroke: #FFFFFF;

    stroke-width: 1.7;

    filter:
        drop-shadow(
            0 2px 3px
            rgba(0,0,0,.25)
        );

    transition: .2s ease;
}


.h5fp-heart:hover svg {

    transform: scale(1.08);
}


.h5fp-heart.saved svg {

    fill: var(--teal);

    stroke: var(--teal);
}


/* =========================================================
   INFORMATION BOX
========================================================= */

.h5fp-info {

    position: absolute;

    z-index: 6;

    left: 8%;

    right: 8%;

    top: 205px;

    min-height: 152px;

    padding:
        64px
        25px
        20px;

    border-radius: 8px;

    background: #FFFFFF;

    box-shadow:
        0 7px 17px
        rgba(17, 39, 65, .12);

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}


.h5fp-card:hover
.h5fp-info {

    transform: translateY(-3px);

    box-shadow:
        0 12px 26px
        rgba(17,39,65,.16);
}


/* =========================================================
   BLACK PROJECT LOGO PLACEHOLDER
========================================================= */

.h5fp-logo {

    position: absolute;

    top: -39px;
    left: 50%;

    transform: translateX(-50%);

    width: 82px;
    height: 82px;

    border-radius: 50%;

    border: 5px solid #FFFFFF;

    background: #111111;

    display: flex;

    align-items: center;
    justify-content: center;

    overflow: hidden;

    box-shadow:
        0 3px 8px
        rgba(0,0,0,.12);
}


/*
 LATER:

 Add an IMG inside .h5fp-logo

 <div class="h5fp-logo">
     <img src="YOUR-LOGO.png">
 </div>

*/

.h5fp-logo img {

    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* Placeholder H5 */

.h5fp-logo-placeholder {

    color: #FFFFFF;

    font-size: 15px;

    font-weight: 700;

    letter-spacing: .6px;
}


/* =========================================================
   PROJECT NAME
========================================================= */

.h5fp-name {

    margin: 0;

    color: var(--navy);

    font-size: 16px;

    line-height: 1.35;

    font-weight: 700;

    display: -webkit-box;

    -webkit-line-clamp: 2;

    -webkit-box-orient: vertical;

    overflow: hidden;
}


/* =========================================================
   TYPE + LOCATION
========================================================= */

.h5fp-meta {

    margin-top: 7px;

    color: var(--muted);

    font-size: 12px;

    line-height: 1.45;

    font-weight: 500;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


/* =========================================================
   PRICE
========================================================= */

.h5fp-price {

    margin-top: 16px;

    color: var(--navy-dark);

    font-size: 15px;

    line-height: 1.3;

    font-weight: 700;
}


/* =========================================================
   DOTS
========================================================= */

.h5fp-dots {

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 6px;

    margin-top: 3px;
}


.h5fp-dot {

    width: 6px;
    height: 6px;

    padding: 0;

    border: none;

    border-radius: 20px;

    background: #D6DCE4;

    cursor: pointer;

    transition: .25s ease;
}


.h5fp-dot.active {

    width: 22px;

    background: var(--teal);
}


/* =========================================================
   EMPTY STATE
========================================================= */

.h5fp-empty {

    display: none;

    padding: 45px 20px;

    border:
        1px dashed
        var(--border);

    border-radius: 10px;

    text-align: center;

    background: #FAFBFC;
}


.h5fp-empty.show {

    display: block;
}


.h5fp-empty-title {

    color: var(--navy);

    font-size: 16px;

    font-weight: 700;
}


.h5fp-empty-text {

    margin-top: 5px;

    color: var(--muted);

    font-size: 12px;
}


/* =========================================================
   TABLET
========================================================= */

@media(max-width: 1024px) {

    .h5fp-card {

        flex:
            0 0
            calc((100% - 22px) / 2);

    }

}


/* =========================================================
   MOBILE
========================================================= */

@media(max-width: 767px) {

    #h5-featured-projects {

        padding:
            38px 0
            50px;
    }


    .h5fp-container {

        width:
            calc(100% - 24px);
    }


    .h5fp-heading {

        font-size: 21px;
    }


    .h5fp-subheading {

        font-size: 11px;
    }


    .h5fp-view-all {

        display: none;
    }


    .h5fp-arrow {

        width: 34px;
        height: 34px;
    }


    .h5fp-track {

        gap: 14px;

        padding-right: 40px;
    }


    .h5fp-card {

        flex: 0 0 86%;

        padding-bottom: 83px;
    }


    .h5fp-image-box {

        height: 235px;
    }


    .h5fp-info {

        top: 175px;

        left: 7%;
        right: 7%;
    }

}


/* Make the dynamic title link preserve the original card typography. */
#h5-featured-projects .h5fp-name a { color: inherit; text-decoration: none; }
#h5-featured-projects .h5fp-name a:hover { text-decoration: underline; }

/* Developer logos: keep the existing circular card design and show the full mark. */
.h5fp-logo--image { background: #fff; }
.h5fp-logo--image img { width: 100%; height: 100%; object-fit: contain; }
