/* ===============================
   FRONTBOX – BASE
================================ */

.frontbox,
.brxe-frontbox {
    position: relative;
    display: flex;
    align-items: flex-end;
    width: 100%;
    height: 206px;
    overflow: hidden;
    border-radius: 20px;
    text-decoration: none;
    color: inherit;
    transition: height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===============================
   HOVER HEIGHT
================================ */

.brxe-frontbox:hover {
    height: 325px;
}

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

.brxe-frontbox::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    /*background: linear-gradient(to right,
            rgba(0, 0, 0, 1) 0%,
            rgba(0, 0, 0, 0) 100%);*/
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.25) 60%) 0% 0% / cover no-repeat;
    opacity: 0.7;
    border-radius: 20px;
    transition: opacity 0.35s ease;
}

/* ===============================
   BACKGROUND / IMAGE
================================ */

.frontbox-bg,
.frontbox-picture {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.frontbox-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 0%;
    transition: object-position 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: object-position;
}

/* ===============================
   BACKGROUND ARROW (TOP RIGHT)
================================ */

.frontbox-bg svg {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 3;
    opacity: 1;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.frontbox-bg .desktop-arrow {
    opacity: 1;
}

.frontbox-bg .mobile-arrow {
     opacity: 0;
}

.brxe-frontbox:hover .frontbox-bg svg {
    opacity: 0;
}

/* ===============================
   CONTENT OVERLAY
================================ */

.frontbox-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 10px 24px;
    display: flex;
    flex-direction: column-reverse;
    justify-content: flex-end;
    transition: padding-bottom 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===============================
   DESCRIPTION (HOVER ONLY)
================================ */

.frontbox-content p {
    font-size: 14px;
    line-height: 1.2;
    letter-spacing: -0.2px;
    margin: 0 0 5px 0;
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;

    transition:
        opacity 0.25s ease-out,
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);

    will-change: opacity, transform;
}

.brxe-frontbox:hover .frontbox-content p {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* ===============================
   TITLE ROW
================================ */

.frontbox-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /*height: 50px;*/
}

.frontbox-title h3 {
    font-size: 32px;
    line-height: 1;
    letter-spacing: -0.2px;
    font-weight: 600;
    margin: 0;
}

/* ===============================
   TITLE ARROW (BOTTOM RIGHT)
================================ */

.frontbox-title svg {
    opacity: 0;
    transition: opacity 0.25s ease;
    width: 56px;
    height: 56px;
    flex-shrink: 0;
}

.brxe-frontbox:hover .frontbox-title svg {
    opacity: 1;
}

/* ===============================
   IMAGE PAN ON HOVER
================================ */

.brxe-frontbox:hover .frontbox-img {
    object-position: 50% 20%;
}


@media only screen and (max-width: 1670px) {
   .frontbox-title h3 {
        font-size: 28px;
   }

   .frontbox-title svg {
        width: 50px;
        height: 50px;
    }

    .brxe-frontbox .frontbox-content p {
        margin: 0 0 10px 0;
    } 
}


@media only screen and (max-width: 991px) {
    .brxe-frontbox .frontbox-content p {
        display: none;
    }

    .frontbox-title h3 {
        font-size: 24px;
    }

    .frontbox-title svg {
        width: 32px;
        height: 32px;
    }

    .frontbox-bg svg
    {
        top: 4px;
        right: 4px;
    }

    .frontbox-content {
        padding: 10px 14px;
    }
}

@media only screen and (max-width: 767px) {
    .brxe-frontbox {
        height: 343px !important;
    }

    .brxe-frontbox::before {
        border-radius: 8px;
    }

    .frontbox, .brxe-frontbox {
        border-radius: 8px;
    }

    .brxe-frontbox .frontbox-content {
        padding: 20px 20px;
    }

    .brxe-frontbox .frontbox-content p {
        display: block;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .brxe-frontbox:hover .frontbox-bg .mobile-arrow {
        opacity: 1;
    }

    .brxe-frontbox .frontbox-title svg {
        display: none;
    }

    .brxe-frontbox .frontbox-img {
        object-position: 50% 20%;
    }

    .frontbox-bg svg {
        top: 4px;
        right: 4px;
        opacity: 1; 
    }

    .frontbox-bg .desktop-arrow {
        opacity: 0;
    }

    .frontbox-bg .mobile-arrow {
        opacity: 1;
    }
}