.block-f {
    margin-top: 10vh;
    padding-top: 10vh;
    position: relative;
}

.block-f-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2%;
    justify-content: space-between;
}

.block-f-left {
    flex: 0 0 45%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

.block-f-image-wrapper-left {
    position: relative;
    width: 100%;
}

.block-f-image-wrapper-left::before {
    content: '';
    position: absolute;
    top: -8vh;
    left: -2vw;
    width: 80%;
    height: 135%;
    background-color: #86C3F9;
    z-index: -2;
}

.block-f-image-wrapper-left::after {
    content: '';
    position: absolute;
    top: -2vh;
    left: 1vw;
    width: 100%;
    height: 97%;
    border: 0.3vh solid #2E75BA;
    z-index: 1;
    pointer-events: none;
}

.block-f-image-left {
    width: 100%;
}

.block-f-right {
    flex: 0 0 45%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

.block-f-text-right {
    background-color: #FFFFFF;
    position: relative;
    top: -8vh;
    height: auto;
    padding: 30px;
    z-index: 10;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.block-f-text-right:hover {
    background: #FFFFFF;
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    box-shadow: 0 14px 28px rgba(46, 117, 186, 0.25), 0 10px 10px rgba(46, 117, 186, 0.22);
}

.block-f-text-right h2 {
    margin-bottom: 15px;
    font-size: 1.5vw;
    font-weight: bold;
    position: relative;
    padding-bottom: 10px;
    color: #2E75BA;
}

.block-f-text-right p {
    display: block;
    line-height: 3.5vh;
    overflow: hidden;
}

.block-f-text-right-button {
    float: left;
}

.block-f-text-right-date {
    float: right;
    font-size: 0.9vw;
    padding-top: 3%;
}

.block-f-slider {
    overflow-x: hidden;
    display: flex;
    transition: transform 0.3s ease;
    padding-bottom: 55px;
    max-width: 40vw;
}

.block-f-slider-item {
    position: relative;
    flex: 0 0 30vh;
    margin: 0 1vw;
    overflow: hidden;
    transition: transform 0.3s ease;
    display: inline-block;
    box-shadow: 0 14px 28px rgba(46, 117, 186, 0.25), 0 10px 10px rgba(46, 117, 186, 0.22);
    z-index: 150;
}

.block-f-slider-item img{
    display: block;
    max-width: 100%;
    height: auto;
}

.block-f-slider-pagination {
    position: absolute;
    bottom: 20%;
    display: flex;
    gap: 42vw;
    align-items: center;
    z-index: 100;
}

.block-f-slider-pagination button {
    background: #2E75BA;
    border: 1px solid #2E75BA;
    width: 2vw;
    height: 4vh;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.block-f-slider-pagination button:hover {
    background: #86C3F9;
    border: 1px solid #86C3F9;
}

.block-f-slider-pagination button:hover svg {
    color: white !important;
}

.block-f-slider-pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.block-f-slider {
    cursor: grab;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #2E75BA #f0f0f0;
}

.block-f-slider::-webkit-scrollbar {
    height: 6px;
}

.block-f-slider::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.block-f-slider::-webkit-scrollbar-thumb {
    background: #2E75BA;
    border-radius: 10px;
}

.block-f-slider::-webkit-scrollbar-thumb:hover {
    background: #86C3F9;
}

.block-f-slider-item.active {
    transform: scale(0.98);
    opacity: 0.9;
}

.block-f-slider-item.current {
    border: 2px solid #2E75BA;
}

@media screen and (max-width: 1024px) {
    .block-f {
        margin-top: 40px;
        padding-top: 0;
    }

    .block-f-image-wrapper-left::before,
    .block-f-image-wrapper-left::after {
        display: none !important;
    }
    
    .block-f-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .block-f-left,
    .block-f-right {
        flex: 1 1 auto;
        width: 100%;
        padding: 0;
    }
    
    .block-f-image-wrapper-left {
        width: 100%;
    }
    
    .block-f-image-left {
        width: 100%;
    }
    
    .block-f-text-right {
        position: relative;
        top: 0;
        width: 100%;
        padding: 25px;
        margin-bottom: 20px;
        background: #FFFFFF;
        box-shadow: 0 5px 15px rgba(46, 117, 186, 0.1);
    }
    
    .block-f-text-right h2 {
        font-size: 22px;
        margin-bottom: 10px;
    }
    
    .block-f-text-right p {
        font-size: 14px;
        line-height: 1.6;
    }

    .block-f-text-right-date {
        font-size: 12px;
    }
    
    .block-f-slider {
        max-width: 100%;
        padding-bottom: 15px;
        gap: 10px;
    }
    
    .block-f-slider-item {
        flex: 0 0 200px;
        margin: 0;
    }
    
    .block-f-slider-pagination {
        position: relative;
        bottom: auto;
        justify-content: center;
        gap: 15px;
        margin: 20px 0;
    }
    
    .block-f-slider-pagination button {
        width: 45px;
        height: 45px;
        position: relative;
    }
}

@media screen and (max-width: 768px) {
    .block-f-text-right {
        padding: 20px;
    }
    
    .block-f-slider-item {
        flex: 0 0 150px;
    }
    
    .block-f-slider-pagination button {
        width: 40px;
        height: 40px;
    }
}

@media screen and (max-width: 480px) {
    .block-f-text-right {
        padding: 15px;
    }
    
    .block-f-text-right p {
        font-size: 12px;
        line-height: 1.5;
    }

    .block-f-text-right-date {
        font-size: 10px;
    }
    
    .block-f-slider-item {
        flex: 0 0 120px;
    }
    
    .block-f-slider-pagination button {
        width: 35px;
        height: 35px;
    }
}