/* Keep the original styles for screens wider than 600px */
.priorities-blocks-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.priorities-block {
    width: calc(25% - 10px);
    margin-bottom: 20px;
    text-align: center;
    border: 1px solid #ccc;
    padding: 10px;
}

.priorities-block img {
    max-width: 100%;
    height: auto;
    border-radius: 999px !important;
    max-height: 136px;
}

/* Center the text within the .priorities-block */
.priorities-block h3 {
    text-align: center;
}

a.priorities-block:not(:last-child) {
    margin-right: 10px;
}

/* Underline the name on hover */
a.priorities-block:hover h3 {
    text-decoration: underline !important;
}

/* Change the layout for screens under 600px */
@media screen and (max-width: 600px) {
    .priorities-blocks-container {
        display: flex;
        justify-content: space-between;
        flex-direction: column;
    }

    .priorities-block {
        width: 100%;
    }

    a.priorities-block:not(:last-child) {
        margin-right: 0;
    }
}

/* Media Query for screens less than 768px */
/* Existing styles... */

/* Your existing desktop styles here... */

/* Media Query for Mobile Devices */
/* CSS for mobile adjustments */
@media screen and (max-width: 768px) {
    /* Other mobile styles... */

    /* Target the container of each priority item. You might need to adjust the specificity based on your HTML structure. */
    .flex_column_table.sc-av_one_fourth.av-equal-height-column-flextable {
        display: flex;
        flex-direction: row; /* Keep items in a row */
        flex-wrap: wrap;
        align-items: flex-start; /* Align items to the top of the container */
        width: 100%;
    }

    /* Styles for the image container */
    .flex_column.av_one_fourth.avia-builder-el-4 {
        flex: 0 0 80px; /* Flex-basis is the width of the image container */
        max-width: 80px; /* Maximum width is also set to the width of the images */
    }

    /* Styles for the text container */
    .flex_column.av_three_fourth.avia-builder-el-6 {
        flex: 1; /* Text container takes up the remaining space */
    }

    /* Specific style to flip the image position for every odd (second) item. 
       We achieve this by selecting every alternate container starting from the second one. */
    .flex_column_table.sc-av_one_fourth.av-equal-height-column-flextable:nth-child(odd) {
        flex-direction: row-reverse; /* This flips the content direction */
    }

    /* Ensure proper alignment and spacing */
    .priorityimages img {
        display: block; /* Ensures block level image behavior */
        max-width: 100%; /* Prevents the image from overflowing its container */
        height: auto; /* Maintains aspect ratio */
    }

    /* Add any additional specific styles as needed */
}




