#pk_flex_content .flex_layout.beloftes_repeater{
    padding-block: 80px;
}

#pk_flex_content .flex_layout.beloftes_repeater .content_wrapper{
    max-width: 600px;
    margin-bottom: -50px;
}

@media screen and (max-width: 1200px) {
    #pk_flex_content .flex_layout.beloftes_repeater .content_wrapper{
        margin-bottom: 20px;
    }
}

@media screen and (max-width: 992px) {
    #pk_flex_content .flex_layout.beloftes_repeater .content_wrapper{
        margin-bottom: 40px;
    }
}

#pk_flex_content .flex_layout.beloftes_repeater .flex_container_inner {
    margin: 0 auto;
}

#pk_flex_content .flex_layout.beloftes_repeater .beloftes-wrapper{
    width: 100%;
}

/* Main Container */
#pk_flex_content .flex_layout.beloftes_repeater .beloftes-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 0px;
}

/* Left Column - Beloftes List */
#pk_flex_content .flex_layout.beloftes_repeater .beloftes-items {
    width: 45%;
    max-height: 520px; /* Limit height to enable scrollbar */
    overflow-y: auto; /* Enable scrollbar */
    padding-right: 50px; /* Prevent text from hitting scrollbar */
    padding-left: 10px;
    margin-left: -10px;
    
    padding-top: 10px;
    margin-top: -10px;
}

/* Custom Scrollbar */
#pk_flex_content .flex_layout.beloftes_repeater .beloftes-items::-webkit-scrollbar {
    width: 2px;
}

#pk_flex_content .flex_layout.beloftes_repeater .beloftes-items::-webkit-scrollbar-track {
    background: var(--wp--preset--color--fl-footer-hover);
}

#pk_flex_content .flex_layout.beloftes_repeater .beloftes-items::-webkit-scrollbar-thumb {
    background: var(--wp--preset--color--fl-body-text);
}

/* Beloftes Item Styling */
#pk_flex_content .flex_layout.beloftes_repeater .beloftes-item {
    padding: 20px;
    background: #fff;
    margin-bottom: 15px;
    box-shadow: 0px 4px 15px rgba(112, 148, 157, 0.1);
    cursor: pointer;
    transition: background 0.3s ease-in-out, opacity 0.3s ease-in-out;
    display: flex;
    flex-direction: row;
    gap: 20px;
    opacity: 0.7; /* Default dimmed effect */
}

.site-id-2 #pk_flex_content .flex_layout.beloftes_repeater .beloftes-item {
    background: var(--wp--preset--color--fl-footer-link);
}

#pk_flex_content .flex_layout.beloftes_repeater .beloftes-item.active,
#pk_flex_content .flex_layout.beloftes_repeater .beloftes-item:hover {
    opacity: 1; /* Highlight active item */
}

/* Beloftes Number & Title */
#pk_flex_content .flex_layout.beloftes_repeater .beloftes-item .nummer {
    font-weight: 700;
    color: var(--wp--preset--color--fl-body-text);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    aspect-ratio: 1;
    background-color: var(--wp--preset--color--fl-footer-hover);
    flex-shrink: 0;
}

.site-id-2 #pk_flex_content .flex_layout.beloftes_repeater .beloftes-item .nummer {
    background-color: var(--wp--preset--color--fl-topbar-hover);
    color: white;
}

#pk_flex_content .flex_layout.beloftes_repeater .beloftes-item h3 {
    font-size: 22px;
    font-weight: 500;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--wp--preset--color--fl-footer-hover);
}

/* Right Column - Image */
#pk_flex_content .flex_layout.beloftes_repeater .beloftes-image {
    width: 50%;
    text-align: right;
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

#pk_flex_content .flex_layout.beloftes_repeater .beloftes-image img {
    width: 100%;
    max-width: 600px;
    aspect-ratio: 1;
    object-fit: cover;
    object-position: center ;
    height: auto;
    transition: opacity 0.3s ease-in-out;
}

/* Mobile Layout */
@media screen and (max-width: 992px) {
    #pk_flex_content .flex_layout.beloftes_repeater .beloftes-container {
        flex-direction: column;
        gap: 40px;
    }

    #pk_flex_content .flex_layout.beloftes_repeater .beloftes-items {
        width: 100%;
        max-width: unset;
    }

    #pk_flex_content .flex_layout.beloftes_repeater .beloftes-image {
        width: 100%;
    }
    
    #pk_flex_content .flex_layout.beloftes_repeater .beloftes-image img{
        max-width: unset;
    }
}

@media screen and (max-width: 767px) {
    #pk_flex_content .flex_layout.beloftes_repeater{
        padding-block: 40px;
    }
}
