.howto {
    display: flex;
    width: 100%;
    height: auto;
    justify-content: center;
    align-items: start;
    flex-direction: column;
}
.howto .sectionb-title {
    height: auto;
    display: flex;
    justify-content: start;
    align-items: center;
    margin-bottom: 5vh;
    width: 100%;
    padding-left: 1em;
}
.howto .sectionb-title h1 {
    max-width: 50vw;
    font-family: 'Horizon';
    font-size: 2em;
    color: var(--var-gray-hover);
    text-align: start;
}
.howto .resize-sectionb {
    width: 100%;
    display: grid;
    grid-template-rows: 100%;
}
.howto .resize-sectionb .container {
    grid-row: 1;
    grid-column: 2;
    display: flex;
    flex-direction: row;
    width: 100vw;
    position: relative;
    gap: 0 !important;
    background: var(--var-pink);
}
.howto .resize-sectionb .container .sidebar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 30%;
    border-radius: 15px;
    margin-top: 5%;
    padding-left: 1em;
    padding-right: 1em;
}
.howto .resize-sectionb .container .sidebar label {
    padding: 12px 15px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    height: auto;
    min-height: 55px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
    color: var(--var-white)
}
.howto .resize-sectionb .container input[type="radio"] {
    display: none;
}
.howto .resize-sectionb .container .content {
    flex: 1;
}
.howto .resize-sectionb .container .content .tab {
    display: none;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 100px;
    height: 100%;
    width: 100%;
    margin: 0 auto;
}
.howto .resize-sectionb .container .content .bg-tab1 {
    background: url('../../img/web-dev-represent.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.howto .resize-sectionb .container .content .bg-tab2 {
    background-image: url('../../img/design-represent.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.howto .resize-sectionb .container .content .bg-tab3 {
    background-image: url('../../img/saas-represent.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.howto .resize-sectionb .container .content .bg-tab4 {
    background-image: url('../../img/api-represent.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.howto .resize-sectionb .container .content .tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(51, 51, 51, 0.8);
    z-index: 0;
    pointer-events: none;
    padding: 100px;
    box-sizing: border-box;
}
[data-theme="dark"] .howto .resize-sectionb .container .content .tab::before {
    background: rgba(51, 51, 51, 0.8);
}
.howto .resize-sectionb .container .content .tab h2,
.howto .resize-sectionb .container .content .tab p,
.howto .resize-sectionb .container .content .tab .btn {
    position: relative;
    z-index: 100;
    color: #ffffff;
}
.howto .resize-sectionb .container #tab1:checked ~ .content #content1,
.howto .resize-sectionb .container #tab2:checked ~ .content #content2,
.howto .resize-sectionb .container #tab3:checked ~ .content #content3,
.howto .resize-sectionb .container #tab4:checked ~ .content #content4 {
    display: block;
    height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.howto .resize-sectionb .container #tab1:checked ~ .sidebar label[for="tab1"],
.howto .resize-sectionb .container #tab2:checked ~ .sidebar label[for="tab2"],
.howto .resize-sectionb .container #tab3:checked ~ .sidebar label[for="tab3"],
.howto .resize-sectionb .container #tab4:checked ~ .sidebar label[for="tab4"] {
    background: var(--var-white);
    color: var(--var-black);
    position: relative;
    z-index: 1;
}
[data-theme="dark"] .howto .resize-sectionb .container #tab1:checked ~ .sidebar label[for="tab1"],
[data-theme="dark"] .howto .resize-sectionb .container #tab2:checked ~ .sidebar label[for="tab2"],
[data-theme="dark"] .howto .resize-sectionb .container #tab3:checked ~ .sidebar label[for="tab3"],
[data-theme="dark"]  .howto .resize-sectionb .container #tab4:checked ~ .sidebar label[for="tab4"] {
    background: var(--var-black);
    color: var(--var-white);
    position: relative;
    z-index: 1;
}
.howto .resize-sectionb .container #tab1:checked ~ .sidebar label[for="tab1"]::after,
.howto .resize-sectionb .container #tab2:checked ~ .sidebar label[for="tab2"]::after,
.howto .resize-sectionb .container #tab3:checked ~ .sidebar label[for="tab3"]::after,
.howto .resize-sectionb .container #tab4:checked ~ .sidebar label[for="tab4"]::after {
    content: '';
    position: absolute;
    top: 0;
    left: 100%;
    width: 100px;
    height: 60px;
    background: var(--var-pink);
    border-radius: 0 15px 15px 0;
    z-index: 99;
}

/* Progress bar using ::before pseudo-element */
.howto .resize-sectionb .container #tab1:checked ~ .sidebar label[for="tab1"]::before,
.howto .resize-sectionb .container #tab2:checked ~ .sidebar label[for="tab2"]::before,
.howto .resize-sectionb .container #tab3:checked ~ .sidebar label[for="tab3"]::before,
.howto .resize-sectionb .container #tab4:checked ~ .sidebar label[for="tab4"]::before {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 0;
    height: 4px;
    background: rgb(255 255 255 / 30%);
    z-index: 100;
    width: 100%;
}

.howto .resize-sectionb .container .content .tab .btn {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    padding: 10px 20px;
    background: var(--var-pink);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    text-decoration: none;
    color: var(--var-white);
    font-size: 14px;
    transition: 0.3s;
    margin-top: 5%;
    max-width: 150px;
}
.howto .resize-sectionb .container .content .tab .btn:hover {
    background: rgba(224, 46, 92, 0.8); 
}
.howto .resize-sectionb .container .content .tab h2 {
    margin-top: 0;
    font-family: 'Montserrat-Bold';
    color: var(--var-white);
    border-radius: 5px;
    margin-bottom: 0.5em;
    font-size: 2em;
}
[data-theme="dark"] .howto .resize-sectionb .container .content .tab h2 {
    color: var(--var-black);
}
[data-theme="dark"] .howto .resize-sectionb .container .sidebar label {
    color: var(--var-black);
}
[data-theme="dark"] .howto .resize-sectionb .container .content .tab .btn {
    color: var(--var-black);
}
.howto .resize-sectionb .image-sectionb {
    grid-row: 1;
    grid-column: 1;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.howto .resize-sectionb .image-sectionb .image-resize {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: end;
}
.howto .resize-sectionb .image-sectionb .image-resize svg{
    width: 100%;
    height: auto;
    padding-right: 50px;
}
.howto .resize-sectionb .image-sectionb .image-resize svg path{
    stroke: var(--var-black, #000000);
    stroke-width: 10px;
    fill: var(--var-black, #000000);
}
@media screen and (max-width: 767px) {
    .howto {
        padding: 0 0 0 0;
    }
    .howto .sectionb-title {
        margin-left: 2vw;
        margin-bottom: 3vh;
        width: 100%;
    }

    .howto .sectionb-title h1 {
        max-width: 70vw;
        font-size: 3em;
        margin-left: 5vw;
        padding-bottom: 5vh;
    }

    .howto .resize-sectionb {
        width: 100%;
        margin: 0;
    }

    .howto .resize-sectionb .container {
        flex-direction: column;
        border-radius: 0;
        background: 0;
        background: var(--var-pink)
    }

    .howto .resize-sectionb .container .sidebar {
        width: 80%;
        margin-top: 0;
        padding: 1em;
        gap: 8px;
    }

    .howto .resize-sectionb .container .sidebar label {
        padding: 15px 20px;
        min-height: 60px;
        font-size: 14px;
    }

    .howto .resize-sectionb .container .content .tab {
        padding: 50px 30px;
        height: 40vh;
        min-height: 300px;
    }

    .howto .resize-sectionb .container .content .tab h2 {
        font-size: 1.5em;
        margin-bottom: 1em;
    }

    .howto .resize-sectionb .container .content .tab .btn {
        font-size: 12px;
        padding: 12px 25px;
        max-width: 140px;
    }

    .howto .resize-sectionb .container #tab1:checked ~ .sidebar label[for="tab1"]::after,
    .howto .resize-sectionb .container #tab2:checked ~ .sidebar label[for="tab2"]::after,
    .howto .resize-sectionb .container #tab3:checked ~ .sidebar label[for="tab3"]::after,
    .howto .resize-sectionb .container #tab4:checked ~ .sidebar label[for="tab4"]::after {
        display: none;
    }
    .howto .resize-sectionb .container #tab1:checked ~ .content #content1,
    .howto .resize-sectionb .container #tab2:checked ~ .content #content2,
    .howto .resize-sectionb .container #tab3:checked ~ .content #content3,
    .howto .resize-sectionb .container #tab4:checked ~ .content #content4 {
        border-radius: 0;
    }
    .howto .resize-sectionb .container .content .tab::before {
        border-radius: 0;
    }
    .howto .resize-sectionb .container .sidebar {
        border-radius: 0 !important;
    }
}

/* Tablet - Medium screens (768px - 1023px) */
@media screen and (min-width: 768px) and (max-width: 1023px) {
    .howto .sectionb-title h1 {
        max-width: 60vw;
        font-size: 2.2em;
    }

    .howto .resize-sectionb .container .sidebar {
        width: 35%;
    }

    .howto .resize-sectionb .container .content .tab {
        padding: 80px 40px;
    }

    .howto .resize-sectionb .container .content .tab h2 {
        font-size: 1.7em;
    }

    .howto .resize-sectionb .container .sidebar label {
        padding: 14px 18px;
        min-height: 58px;
    }

    .howto .resize-sectionb .container #tab1:checked ~ .sidebar label[for="tab1"]::after,
    .howto .resize-sectionb .container #tab2:checked ~ .sidebar label[for="tab2"]::after,
    .howto .resize-sectionb .container #tab3:checked ~ .sidebar label[for="tab3"]::after,
    .howto .resize-sectionb .container #tab4:checked ~ .sidebar label[for="tab4"]::after {
        width: 60px;
        height: 58px;
    }
}

/* Desktop - Large screens (> 1024px) */
@media screen and (min-width: 1024px) {
    .howto .sectionb-title h1 {
        max-width: 85vw;
    }

    .howto .resize-sectionb {
    }

    .howto .resize-sectionb .container .sidebar {
        width: 28%;
    }

    .howto .resize-sectionb .container .content .tab {
        padding: 120px 60px;
    }

    .howto .resize-sectionb .container .content .tab h2 {
        font-size: 2.2em;
    }
}

/* Extra Large screens (> 1440px) */
@media screen and (min-width: 1440px) {
    .howto .sectionb-title h1 {
        max-width: 60vw;
    }

    .howto .resize-sectionb {
        width: 100%;
    }

    .howto .resize-sectionb .container .content .tab {
        padding: 140px 80px;
    }

    .howto .resize-sectionb .container .content .tab h2 {
        font-size: 2em;
    }
}