@media (min-width: 1024px) { /* Tablet */
.stacc_post-item {

    width: 33.3% !important; /* Full width of parent container */
max-width: 33.3% !important;
}
}
.swiper-wrapper{
    height: auto !important;
}

.stacc_post-item {
    display: flex;
    flex-direction: column; /* Stack elements vertically */
    justify-content: space-between; /* Space between elements to align read-more at bottom */
    align-items: left; /* Center content horizontally */
    width: 100%; /* Full width of parent container */
    box-sizing: border-box;
    height: 100%; /* Ensures all items are equal height */
}

/* Image styles */
.stacc_post-item img {
    width: 100%; /* Ensure the image takes the full width of its container */
    height: auto; /* Maintain the aspect ratio */
    aspect-ratio: 16 / 9; /* Modern CSS property for setting the aspect ratio */
    object-fit: cover; /* Ensures the image fills the container while keeping its proportions */
}

/* Responsive adjustments for image width */
@media (max-width: 1024px) { /* Tablet */
    /*
    .stacc_post-item img {
        max-width: 393px; 
        height: 274px !important; 
    }
    */
    .swiper-slide h3 {
        height: 110px;
    padding-bottom: 10px!important;
    }
}

@media (max-width: 768px) { /* Mobile */
    /*
    .stacc_post-item img {
        max-width: 334px; 
        height: 274px !important; 
    }
    */
    .stacc_post-item {
        min-width: calc(100% - 20px);
        }
        .swiper-slide h3 {
            height: 96px;
            padding-bottom: 10px!important;
        }

        .stacc_swiper-pagination {
            margin-top: 40px;
        }
}


/* Excerpt styles */
.stacc_post_excerpt {
    max-width: 100%; /* Restrict width to parent */
    word-wrap: break-word; /* Break long words if necessary */
    flex-grow: 1; /* Allow the excerpt to take remaining vertical space */
    text-align: center; /* Optional: Center text */
}

/* Read more button */
.stacc_read-more-button {
    display: inline-block;
    margin-top: 15px; /* Space above the button */
}

.swiper-container {
    width: 100%;
    margin: 0 auto;
}
.swiper-slide {
    display: flex;
    flex-wrap: wrap; 
    justify-content: flex-start; /* Align items to the left */
}

.stacc_post-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 50px; /* Desired gap size */
}

.stacc_post-item {
    flex: 1 1 calc(33.333% - 50px); /* Adjust size for gap */
}
.swiper-slide {
    will-change: transform;
    border-style: solid;
    border-width: 0;
    transition-duration: .5s;
    transition-property: border,background,transform;
    overflow: hidden;
    flex-shrink: 0;
width: 100%;
height: 100%;
position: relative;
transition-property: transform;
    }
.swiper-slide {
   opacity: 0;
}

.swiper-slide-active {
    opacity: 1;
}

.swiper-slide img {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
}

.swiper-slide h3 {
    font-family: 'Open Sans';
    font-size: 22px;
    font-weight: 400;
    line-height: 28px;
    text-align: left;
    color: #00183D;
	height: 100px;
    padding-bottom: 10px;
}

.stacc_post_excerpt {
    display:block;
    padding-top:20px;
    border-top: 1px solid #656462;
    font-family: 'Open Sans';
    font-size: 18px;
    font-weight: 400;
    line-height: 27px;
    text-align: left;
    color: #515151;
}

a.stacc_read-more-button {
    display: block !important;
    font-family: 'Open Sans';
    font-size: 18px;
    font-weight: 400;
    line-height: 27px;
    text-align: left;
    text-decoration-line: underline !important;
    color: #1C5864;
text-align: left;
}

.stacc_swiper-pagination {
    position: static;
    margin-top: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    gap: 16px;
}


/* Pagination arrows (left and right) */
.stacc_swiper-pagination-first,
.stacc_swiper-pagination-last {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    color: #BDBDBD;
;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    -ms-border-radius: 4px;
    -o-border-radius: 4px;
}

/* Arrow hover effect */
.stacc_swiper-pagination-first:hover svg path,
.stacc_swiper-pagination-last:hover svg path{
    fill: #333 !important;
}

/* Disabled arrow */
.stacc_swiper-pagination-first.disabled svg path,
.stacc_swiper-pagination-last.disabled svg path{
    fill: #E0E0E0;

    cursor: not-allowed;
}


/* Pagination numbers */
.stacc_swiper-pagination-bullet {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 32px;
	width: 32px;
	max-width: 32px;
    height: 32px;
color: #515151;

}
.stacc_swiper-slide{
	gap:50px !important;
}

/* Active pagination number */
.stacc_swiper-pagination-bullet-active,.stacc_swiper-pagination-bullet:hover {
    color: #fff;
    background: #828282;
    border-radius: 4px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    -ms-border-radius: 4px;
    -o-border-radius: 4px;
}

