/* Machine start */

#machine-hero {
    position: relative;
    margin: 0;
    padding: 20px 0;
}

.machine-hero {
    display: flex;
    gap: var(--gap-xl);


    * {
        flex: 1;
    }

}

.machine-hero:after {
    width: 2rem;
    height: 2rem;
    display: block;
    content: "";
    background: url(../img/slp/chevron-down-solid.svg) center center no-repeat;
    background-size: 50%;
    z-index: 5;
    position: absolute;
    bottom: -40px;
    left: 50%;
    margin-left: -0.78125rem;
    margin-bottom: -0.78125rem;
    animation-name: bounce;
    animation-duration: 2s;
    animation-iteration-count: infinite;
}

@media (max-width: 768px) {
    .machine-hero:after {
        bottom: -10px;
    }

}

@media (max-width: 425px) {
    .machine-hero {
        flex-direction: column;
        gap: var(--gap-m);
    }

    .machine-hero-text {
        text-align: center;
    }



}


@keyframes bounce {

    0%,
    25%,
    50%,
    75%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-1.25rem);
    }

    60% {
        transform: translateY(-0.75rem);
    }
}


.machine-hero-h1 {
    text-shadow: 3px 3px 10px white;
    color: var(--main-red);
    font-size: clamp(min(5vw, 2rem), 10vw, min(12vw, 10rem));
    font-weight: 400;
    line-height: 1.3;

    @media (max-width: 425px) {
        font-size: clamp(min(5vw, 2rem), 6rem, min(12vw, 10rem));
    }
}

.machine-hero-img {
    background-color: var(--bg-light);
    /* padding: 20px; */
    overflow: hidden;
    border-radius: var(--radius-m);
    background-image: url(/assets/img/home/large-stone-blocks-splitter-norway-grad.webp);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50% 50%;
    background-origin: content-box;
    transition: background-image 1s ease;
    /* Add transition effect */
}

.machine-video {
    object-fit: cover;
    overflow: hidden;
    border-radius: var(--radius-m);
    max-height: 50rem;

}




.sticky-sidebar {
    display: flex;
    flex-direction: row;
    gap: var(--gap-l);

    @media (max-width: 1200px) {
        display: block;
    }

    #machine-page-nav {
        list-style: none;
        display: flex;
        flex-direction: column;
        margin-top: 100px;
        flex: 1;
        position: -webkit-sticky;
        /* For Safari compatibility */
        position: sticky;
        top: 50px;
        align-self: flex-start;
        /* This ensures the sticky box stays at the top */

        @media (max-width: 1200px) {
            display: none;
        }

        li {
            height: 40px;
            margin-bottom: 10px;
            min-width: 200px;

        }

        a {
            font-family: monospace;
            height: 100%;
            text-decoration: none;
            display: flex;
            align-items: center;
            color: var(--bg-dark-dark);
            text-align: left;
            padding: 5px 10px;

            img {
                max-height: 40px;
            }




        }

        a:hover {
            color: var(--main-red);
        }

        .active-link {
            color: var(--main-red);
            background-color: var(--bg-light-light);
            border-radius: var(--radius-m);
        }

        .machine-contact-btn {
            background-color: var(--bg-dark);
            border-radius: var(--radius-m);
            color: white;

            & :hover {
                background-color: var(--bg-light);
                color: var(--bg-dark);
            }
        }



    }


}





/* machine SLP main advantages START */

.slp-loading {
    background: var(--gradient-overlay), url(/assets/img/slp/slp-loading.webp) 50% 40% no-repeat;


}

.slp-panel {
    background: var(--gradient-overlay), url(/assets/img/slp/slp-panel.webp) 50% 40% no-repeat;

}

.slp-split {
    background: var(--gradient-overlay), url(/assets/img/slp/slp-split.webp) 50% 40% no-repeat;

}

.slp-waste {
    background: var(--gradient-overlay), url(/assets/img/slp/slp-waste.webp) 50% 40% no-repeat;

}

.slp-customize {
    background: var(--gradient-overlay), url(/assets/img/slp/slp-customize.webp) 50% 40% no-repeat;

}

/* machihne description START */
#machine-description {

    & p,
    ul {
        padding-bottom: 1rem;
        line-height: 2.5rem;

        & span {
            font-weight: 800;
        }
    }

    img {
        max-height: 300px;
        max-width: 40%;
        border-radius: var(--radius-m);

        @media (max-width: 650px) {
            max-height: 200px;
        }
    }

    video {
        max-height: 300px;
        max-width: 40%;
        flex: none;
        border-radius: var(--radius-m);
    }

    @media (max-width: 768px) {
        .f-hor {
            align-items: center;
        }

        .gap-l {
            gap: 5px;
        }

        p {
            padding-bottom: 0;
        }

        video,
        img {
            max-width: 100%;
        }

    }
}

.f-desc {
    flex-wrap: wrap;
    gap: var(--gap-l);

    /* * {
        flex: 1;
    } */


}

.desc-text {
    max-width: 700px;
}

/* tech parameters TABS */

/* #tech-parameters td {
    padding: 5px 0;
} */

table {
    width: 100%;
    border-collapse: collapse;

    & tr {
        border-bottom: 1px solid var(--bg-light);

        @media (max-width: 525px) {
            & :nth-child(3) {
                display: none;
            }

        }
    }


}

tbody {
    & .td-num {
        padding: 5px 0 5px 40px;
    }


}

thead {
    & td {
        font-weight: 600;
        padding-top: 20px;
    }
}

/* Style the tab */
.tab {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    overflow: hidden;
    margin: var(--gap-l) 0;
    gap: var(--gap-m);


}

.td-num {
    text-align: right;

}

/* Style the buttons inside the tab */
.tab button {
    background-color: inherit;
    float: left;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 10px;
    transition: 0.3s;
    font-size: 1rem;
    border-radius: var(--radius-m);
    background-color: var(--bg-light);
}

/* Change background color of buttons on hover */
.tab button:hover {
    background-color: var(--bg-dark);
    color: white;
}

/* Create an active/current tablink class */
.tab button.active {
    background-color: var(--main-red);
    color: white;
}

/* Style the tab content */
.tabcontent {
    display: none;
    padding: 20px 0;
    background-color: var(--bg-light-light);
    border-radius: var(--radius-m);


}

.active {
    color: var(--bg-light-light);
    background: black;
    /* transition: background 0.3s ease-in; */
}

/* image gallery START */

.photos-grid-container {
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    grid-gap: var(--gap-m);
    align-items: start;

    @media (max-width: 580px) {
        grid-template-columns: 1fr;
    }

    .img-box {
        border: 1px solid #ffffff;
        border-radius: var(--radius-m);
        position: relative;
    }

    .img-box:hover .transparent-box {
        background-color: rgba(0, 0, 0, 0.6);
    }

    .img-box:hover .caption {
        transform: translateY(-5px);
    }

    img {
        max-width: 100%;
        display: block;
        height: auto;
        border-radius: var(--radius-m);
        width: 100%;
        height: 100%;
        object-fit: cover;

    }

    .caption {
        color: white;
        transition: transform 0.3s ease, opacity 0.3s ease;
        font-size: 1.5rem;
    }

    .transparent-box {
        height: 100%;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        position: absolute;
        top: 0;
        left: 0;
        transition: background-color 0.3s ease;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: var(--radius-m);
    }

    .main-photo {
        grid-row: 1;
        grid-column: 1;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .sub {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(auto-fit, minmax(200px, 300px));
        grid-gap: var(--gap-m);

        &:nth-child(0) {
            grid-column: 1;
            grid-row: 1;
        }

        &:nth-child(1) {
            grid-column: 2;
            grid-row: 1;
        }

        &:nth-child(2) {
            grid-column: 1;
            grid-row: 2;
        }

        &:nth-child(3) {
            grid-column: 2;
            grid-row: 2;
        }
    }
}

.hide-element {
    border: 0;
    clip: rect(1px 1px 1px 1px);
    /* IE6, IE7 */
    clip: rect(1px, 1px, 1px, 1px);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

@media screen and (min-width: 1280px) {
    .container {
        margin: 0 auto;
        width: 1250px;
    }
}

/* machine model START */

.grid-model {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: var(--gap-l);


    & img {
        max-width: 100%;
        max-height: 400px;

    }
}


/* machine configurations START */

.content {

    section {
        padding: 40px;
        background-color: var(--bg-light-light);
        border-radius: var(--radius-m);

        @media screen and (max-width: 768px) {
            padding: 20px;
        }

    }

    .container-l,
    .container-xl {
        padding: 0;
    }

    h2 {
        color: var(--main-red);
        margin-bottom: 30px;
        font-family: monospace;
        font-size: 1.5rem;

    }

    h3 {
        font-weight: 600;
        margin-bottom: .5rem;
    }

    p {
        padding: 0.5rem 0;
    }

    ul {
        list-style-position: inside;

        li {
            padding: 5px 0;
        }
    }

    .grid-img-configurations {
        display: flex;
        flex-direction: row;
        gap: var(--gap-m);
        margin: 20px 0;
        flex-wrap: wrap;
        justify-content: center;

        & img, video {
            max-height: 250px;
            max-width: 100%;
            border-radius: var(--radius-m);
            border: 1px solid #ffffff;

        }
    }
}

.layouts-img>img {
    max-width: 100%;
    max-height: 200px;
    object-position: center;
    margin: 2rem auto;
    display: block;
}



@media (max-width: 425px) {
    .accordion {
        cursor: pointer;
        width: 100%;
        border: none;
        text-align: left;
        outline: none;
        font-size: 15px;
        transition: 0.4s;
    }

    .panel {
        margin-top: 20px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.2s ease-out;
    }

    .accordion:after {
        content: '\002B';
        font-weight: bold;
        float: right;
        margin-left: 5px;
    }

    .active-acc:after {
        content: "\2212";
    }

    .content h2 {
        margin-bottom: 0;
        font-size: 1.2rem;
    }

    section {
        margin: 10px 0;
    }

    .machine-hero:after {
        display: none;
    }

    .f-desc {
        flex-wrap: nowrap;
    }
}