.block-b {
    margin-top: 10vh;
    padding-top: 10vh;
    position: relative;
}

.block-b-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2%;
    justify-content: space-between;
}

.block-b-container::after {
    content: '';
    position: absolute;
    top: 0vh;
    left: 20vw;
    width: 40%;
    height: 75%;
    background-color: #2E75BA;
    z-index: -2;
}

.block-b-side {
    flex: 0 0 48%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}


.block-b-image-wrapper-left {
    position: relative;
    width: 100%;
}

.block-b-image-wrapper-left::before {
    content: '';
    position: absolute;
    top: -2vh;
    left: 1vw;
    width: 100%;
    height: 100%;
    border: 0.3vh solid #86C3F9;
    z-index: 1;
    pointer-events: none;
}

.block-b-image-wrapper-right {
    position: relative;
    width: 100%;
}

.block-b-image-wrapper-right::before {
    content: '';
    position: absolute;
    margin-top: 15%;
    top: -2vh;
    left: 1vw;
    width: 100%;
    height: 80%;
    border: 0.3vh solid #86C3F9;
    z-index: 1;
    pointer-events: none;
}

.block-b-image-left,
.block-b-image-right {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 0;
}

.block-b-image-right {
    margin-top: 15%;
}

.block-b-text {
    position: relative;
    background-color: #FFFFFF;
    width: 100%;
    min-height: 25vh;
    padding: 30px;
    z-index: 10;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.block-b-text:hover {
    background: #FFFFFF;
    transform: translateY(-10px);
    box-shadow: 0 14px 28px rgba(46, 117, 186, 0.25), 0 10px 10px rgba(46, 117, 186, 0.22);
}

.block-b-text h2 {
    margin-bottom: 15px;
    font-size: 1.5vw;
    font-weight: bold;
    position: relative;
    padding-bottom: 10px;
}

.block-b-text p {
    display: block;
    line-height: 3.5vh;
    overflow: hidden;
}

.block-b-text a {
    text-decoration: none;
    color: #424146;
}

.block-b-text a:hover {
    color: #2E75BA;
}

@media screen and (max-width: 1024px) {
    .block-b {
        margin-top: 40px;
        padding-top: 0;
    }
    
    .block-b-container::after,
    .block-b-image-wrapper-left::before,
    .block-b-image-wrapper-right::before {
        display: none !important;
    }

    .block-b-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .block-b-side {
        flex: 1 1 auto;
        width: 100%;
        padding: 0;
    }
    
    .block-b-image-wrapper-left,
    .block-b-image-wrapper-right {
        width: 100%;
    }
    
    .block-b-image-left,
    .block-b-image-right {
        width: 100%;
        margin-top: 0;
    }
    
    .block-b-text {
        width: 100%;
        min-height: auto;
        padding: 25px;
        margin-top: -20px;
        background: #FFFFFF;
        box-shadow: 0 5px 15px rgba(46, 117, 186, 0.1);
    }
    
    .block-b-text h2 {
        font-size: 22px;
        margin-bottom: 10px;
    }
    
    .block-b-text p {
        font-size: 14px;
        line-height: 1.6;
    }
}

@media screen and (max-width: 768px) {
    .block-b-text {
        padding: 20px;
    }
}

@media screen and (max-width: 480px) {
    .block-b-text {
        padding: 15px;
    }
    
    .block-b-text p {
        font-size: 12px;
        line-height: 1.5;
    }
}