@media (min-width: 768px){
    .square-box:hover {
        -webkit-box-shadow: 0 5px 10px 0 rgba(33,33,33,0.5) !important;
        -moz-box-shadow: 0 5px 10px 0 rgba(33,33,33,0.5) !important;
        box-shadow: 0 5px 10px 0 rgba(33,33,33,0.5) !important;
    }
}

/* New layout structure */
#fl_tool_choice_frontpage_container {
    display: flex;
    margin-bottom: 30px;
    gap: 40px;
    align-items: stretch;
    height: 100%;
}

/* Left side - Image block */
.image-box {
    flex: 1.2;
    background: #fff;
    border-radius: 8px;
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    min-width: 320px;
    min-height: 140px;
    max-height: 585px;
    box-shadow: none;
    padding: 0;

}

.image-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: stretch;
    position: relative;
    flex: 1;
}

.left-text-image-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
    height: 100%;
}

.headline-block {
    margin-bottom: 18px;
    margin-top: 18px;
}

.headline-blue {
    color: #0063b9  !important;
    font-weight: bold;
    margin: 0 0 8px 0;
    line-height: 1.2;
}
.subtitle-blue {
    color: #68a7dd !important;
    margin-bottom: 18px;
}
.gasveer-image {
    margin-top: 10px;
}
.gasveer-image img {
    max-width: 320px;
    width: 100%;
    height: auto;
    display: block;
}

/* Right side - Blocks container */
.blocks-wrapper {
    flex: 1.5;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.choice-card {
    padding: 0;
    display: flex;
    align-items: stretch;
    min-height: 90px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.blocks-wrapper a:first-child .choice-card {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.blocks-wrapper a:last-child .choice-card {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* Link styling to remove text decoration */
.blocks-wrapper a {
    text-decoration: none !important;
    color: inherit;
    display: block;
    border-bottom: 1px solid #0063b90f;
}

.blocks-wrapper a:last-child {
    border-bottom: none;
}

.blocks-wrapper a:hover,
.blocks-wrapper a:active,
.blocks-wrapper a:focus,
.blocks-wrapper a:visited {
    text-decoration: none !important;
    color: inherit;
}

.blocks-wrapper a * {
    text-decoration: none;
}

/* Target the specific link elements more aggressively */
#blocks-container a,
#blocks-container a:hover,
#blocks-container a:active,
#blocks-container a:focus,
#blocks-container a:visited {
    text-decoration: none !important;
    text-decoration-line: none !important;
    text-decoration-style: none !important;
    text-decoration-color: transparent !important;
}

.choice-card,
.choice-card *,
.choice-card h2,
.choice-card h4,
.choice-card .card-title,
.choice-card .card-desc,
.choice-card .card-counter {
    text-decoration: none;
}

.choice-card:hover,
.choice-card:hover *,
.choice-card:hover h2,
.choice-card:hover h4,
.choice-card:hover .card-title,
.choice-card:hover .card-desc,
.choice-card:hover .card-counter {
    text-decoration: none;
}

.choice-card:active,
.choice-card:active *,
.choice-card:active h2,
.choice-card:active h4,
.choice-card:active .card-title,
.choice-card:active .card-desc,
.choice-card:active .card-counter {
    text-decoration: none;
}

.choice-card:hover {
    background: #0063b90f;
}

.choice-card:active {
    transform: translateY(0px);
    background: #0063b921;
}

.card-content {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    padding: 18px 22px 18px 22px;
    justify-content: space-between;
}

.card-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.card-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 2px;
}

.card-title {
    font-size: 1.25em;
    font-weight: bold;
    line-height: 1.1;
}

.card-title-orange {
    color: #f3921d;
}

.card-title-blue {
    color: #1a7ed6;
}

.card-counter {
    font-size: 0.95em;
    color: #888;
    margin-bottom: 2px;
}

.card-desc {
    font-size: 1.08em;
    color: #222;
    font-weight: bold;
    margin-top: 2px;
}

.card-right-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin-left: 18px;
    gap: 20px;
}

.card-icon {
    margin-top: 15px;
    align-self: flex-start;
}

.card-arrow {
    font-size: 2em;
    color: #98caf5;
    align-self: flex-start;
    font-weight: bold;
    margin-top: 0;
}

.fl_tool_choice_frontpage_p {
    color: white;
    font-size: 32px;
    line-height: 100%;
    font-weight: bold;
}
.fl_tool_choice_frontpage {
    font-size: 23px;
    font-weight: normal;
    color: white;
    line-height: 115%;
    padding: 5px;
}

.small_font_counter {
    font-size: 46% !important;
    color: #e1e1e1 !important;
}

.square-box.box-configurator {
    background-image: url("../img/configurator_bg.jpg?v=2512231457");
}
.square-box.box-calculator {
    background-image: url("../img/rekentool_bg.jpg?v=2512231457");
}
.square-box.box-replacements {
    background-image: url("../img/vervanger_bg.jpg?v=2512231457");
    margin-right: 0%;
}

.square-box.box-replacements .fl_tool_choice_frontpage_p {
    color: #0064b9; width: 60%;
}
.square-box.box-replacements .fl_tool_choice_frontpage {
    text-shadow: 0 0 1px black;
}

.card-title:hover, .card-counter:hover, .card-desc:hover, .card-main:hover, .card-title-orange:hover {
    text-decoration: none;
}

.gasveer-overlay-container {
    position: relative;
    width: 100%;
    height: 100%;
    flex: 1;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    overflow: hidden;
    min-height: 180px;
}
.gasveer-overlay-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom center;
    display: block;
    border-radius: 8px;
}
.overlay-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 28px 10px 18px 10px;
    color: #1a4d96;
    z-index: 3;
    border-radius: 8px 8px 0 0;
    background: none;
    pointer-events: none;
}
.overlay-text .headline-blue, .overlay-text .subtitle-blue {
    color: #1a4d96;
    text-shadow: none;
}
.overlay-text .headline-blue {
    font-size: 1.3em;
    margin-bottom: 6px;
}
.overlay-text .subtitle-blue {
    font-size: 1em;
}

.slideshow-img {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom center;
    opacity: 0;
    transition: opacity 2s ease;
    z-index: 1;
    border-radius: 8px;
    pointer-events: none;
}
.slideshow-img.visible {
    opacity: 1;
    z-index: 2;
}

@media screen and (max-width: 1024px) {
    .card-content {
        padding: 5px 15px 5px 15px;
    }
    .overlay-text {
        padding: 15px 10px 5px 10px;
    }
}

@media screen and (max-width: 768px) {
    .card-content {
        padding: 12px 12px 12px 12px;
        h2 {
            margin-top: 0 !important;
        }
    }
    .image-box {
        min-width: 265px;
    }
    .card-title {
        line-height: 1.0;
    }
    #fl_tool_choice_frontpage_container {
        gap: 20px;
    }
}

@media screen and (max-width: 767px) {
    #fl_tool_choice_frontpage_container {
        flex-direction: column;
        /*gap: 24px;*/
        /*height: auto;*/
        border: 1px solid #0063b90f;
        border-radius: 8px;
    }
    .image-box, .blocks-wrapper {
        min-width: 0;
        min-height: 65px;
        width: 100%;
        height: auto;
    }
    .image-content {
        padding: 0;
    }
    .gasveer-image img {
        max-width: 100%;
    }
    .gasveer-overlay-container {
        min-height: 180px;
        display: none;
    }
}
@media screen and (max-width: 700px) {
    .blocks-wrapper {
        /*gap: 14px;*/
    }
    .card-content {
        padding: 12px 10px 12px 10px;
    }
    .headline-blue {
        font-size: 1.2em;
    }
    .subtitle-blue {
        font-size: 1em;
    }
    .gasveer-overlay-container {
        min-height: 120px;
    }
    .overlay-text {
        padding: 12px 10px 8px 10px;
    }
    .overlay-text .headline-blue {
        font-size: 1em;
    }
    .overlay-text .subtitle-blue {
        font-size: 0.9em;
    }
}
@media screen and (max-width: 480px) {
    .headline-blue {
        font-size: 1em;
    }
    .subtitle-blue {
        font-size: 0.95em;
    }
    .card-title {
        font-size: 1em;
    }
    .card-arrow {
        font-size: 1.2em;
    }
}

@media screen and (max-width: 680px) {

    div#fl_tool_choice_frontpage_container {
        padding-top: 0px !important;
    }

    .small_font_counter {
        display: none;
    }

    .square-box{
        width: 100%;
        display: block;
        margin: auto;
        margin-bottom: 10px;
        height: 100px;
    }

    .square-box {
        background-position: center;
    }

    #fl_tool_choice_frontpage_container {
        display: block;
    }

    .square-content {
        padding: 10px;
    }

    .square-content span {
        padding-top: 0px !important;
        padding-left: 0px !important;
        display: inline;
    }


    .fl_tool_choice_frontpage_p {

        font-size: 5vw;
    }
    .fl_tool_choice_frontpage {
        font-size: 3vw;
    }
}

@media screen and (min-width: 768px) and (max-width: 1100px){
    .fl_tool_choice_frontpage_p {
        font-size: 25px;
    }
    .fl_tool_choice_frontpage {
        font-size: 15px;
    }
}

@media screen and (min-width: 641px) and (max-width: 768px){
    .fl_tool_choice_frontpage_p {
        font-size: 22px;
    }
    .fl_tool_choice_frontpage {
        font-size: 15px;
    }

    .small_font_counter {
        font-size: 52% !important;
        color: #e1e1e1 !important;
    }
}

@media screen and (max-width: 400px) {
    .image-box {
        min-height: 105px;
    }
}


