{% scope_css %}

/* --- MAIN CONTAINER --- */
.info-cards__container_dark {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
    /* Centers the card if it has a max-width; change to flex-start for left-align */
    justify-content: center; 
}

/* --- CARD (Dynamic logic) --- */
.info-cards__entry_dark {
    position: relative;
    /* flex-grow: 1 allows it to fill space if it's the only child */
    /* flex-basis: 30% acts as the "ideal" starting point */
    flex: 1 1 30%; 
    min-width: 0;
    
    /* This ensures that even if it grows, it won't exceed 1/3 width 
       UNLESS you want a single card to be 100% wide. 
       If you want a single card to be 100% wide, delete the line below: */
    max-width: calc(33.333% - 13.34px); 

    border: 2px solid #fff;
    border-radius: 12px;
    padding: 40px 40px 80px 40px; 
    box-sizing: border-box;
    overflow: hidden;
}

/* Logic: If there is ONLY ONE card, let it be full width */
/* This CSS pseudo-class trick detects if an element is both first and last child */
.info-cards__entry_dark:first-child:last-child {
    max-width: 100%;
}

/* --- HEADER CONTAINER --- */
.info-cards__header_dark {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    width: 100%;
}

/* --- H3 HEADER --- */
.info-cards__header_dark h3 {
    margin: 0;
    color: #fff;
    width: 100%;
    font-size: clamp(20px, 4vw, 50px); 
    line-height: 1.1;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

/* --- MANUAL FONT ADJUSTMENTS --- */
@media (max-width: 1450px) {
    .info-cards__header_dark h3 {
        font-size: 38px;
    }
}

@media (max-width: 1250px) {
    .info-cards__header_dark h3 {
        font-size: 30px;
    }
    .info-cards__entry_dark {
        padding: 30px 20px 80px 20px;
    }
}

/* --- MOBILE STACK (999px and below) --- */
@media (max-width: 999px) {
    .info-cards__entry_dark {
        flex: 1 1 100%;
        max-width: 100% !important; /* Force full width on mobile */
        padding: 40px 40px 80px 40px;
    }

    .info-cards__header_dark h3 {
        font-size: 42px;
    }

    .info-cards__inner_dark > *:not(.info-cards__row_dark),
    .info-cards__inner_dark .hs-richtext,
    .info-cards__inner_dark p {
        padding-right: 20px;
    }
}

/* --- CONTENT --- */
.info-cards__description-static_dark {
    padding-bottom: 10px;
}

.info-cards__inner_dark {
    padding-bottom: 20px;
}

/* --- INNER ROW (70 / 30 SPLIT) --- */
.info-cards__row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.info-cards__column {
    width: 100%;
}

/* --- FIELD A & B SIDE BY SIDE --- */
.info-cards__richtext-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    color: #fff;
}

.info-cards__richtext-wrapper .hs-richtext {
    flex: 1 1 calc(50% - 12.5px);
    padding-right: 0 !important;
}

/* --- BUTTON (HARD-LOCKED) --- */
.info-cards__button-link-wrapper_dark {
    position: absolute;
    bottom: 40px;
    right: 40px;
    text-decoration: none;
    cursor: pointer;
}

.info-cards__button-link_dark {
    padding: 0px 10px;
    border: 1px solid #fff;
    border-radius: 4px;
    background: transparent;
    text-align: center;
}

.info-cards__button-link_dark p {
    margin: 0 !important;
    color: #fff !important;
    font-size: 16px !important;
}

/* Hover States */
.info-cards__button-link-wrapper_dark:hover .info-cards__button-link_dark {
    background-color: #fff;
}

.info-cards__button-link-wrapper_dark:hover p {
    color: #000 !important;
}

/* --- DESKTOP COLUMN SPLIT --- */
@media (min-width: 1000px) {
    .info-cards__column--70 {
        width: 70%;
    }
    .info-cards__column--30 {
        width: 30%;
        text-align: right;
    }
}

{% endscope_css %}
