/* 1. Turn the parent grid container into a flexible layout */
.itemsCollectionContent.gridView {
    display: flex !important;
    flex-wrap: wrap !important;
}

/* 2. Remove any old clearfix formatting that might break the flex layout */
.itemsCollectionContent.gridView::before,
.itemsCollectionContent.gridView::after {
    display: none !important;
}

/* 3. Turn the individual blog cards into flex columns */
.itemsCollectionContent.gridView .item.blogsColl-item {
    display: flex !important;
    flex-direction: column !important;
    float: none !important; /* Overrides the builder's default floats */
}

/* 4. Force the text content area to grow and fill the remaining height */
.itemsCollectionContent.gridView .item.blogsColl-item .itemContent {
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}







/* 1. Add extra space to the bottom of the card so text doesn't overlap the button */
.itemsCollectionContent.gridView .item.blogsColl-item .itemContent {
    position: relative !important;
    padding-bottom: 100px !important; 
}

/* 2. Create the "Read More" button and center it */
.itemsCollectionContent.gridView .item.blogsColl-item .contentTitle a::after {
    content: "Read More";
    position: absolute;
    bottom: 20px;
    left: 50%; 
    transform: translateX(-50%); /* Centers the button perfectly */
    
    /* Button Styling */
    display: inline-block;
    background-color: #2b3956; /* Change this hex code to match your brand color */
    color: #ffffff !important;
    padding: 10px 24px;
    font-size: 14px;
    font-family: inherit;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
    letter-spacing: 1px;
    text-decoration: none;
    transition: background-color 0.2s ease;
    white-space: nowrap; /* Keeps the text on one single line */
}

/* 3. Add a hover effect */
.itemsCollectionContent.gridView .item.blogsColl-item .contentTitle a:hover::after {
    background-color: #1a2335; /* Darker color for hover state */
    color: #ffffff !important;
}