/* basic or unique styles for this block */
/* some styles, like for the registration section, may come from theme */

.pListings {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr 30px 1fr 30px 1fr;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    -webkit-box-align: start;
        -ms-flex-align: start;
            align-items: start;
    padding: 20px 0 20px 0;   
}
.pListing-item {
    width: 100%;
    position: relative;
    background: #FFF;
    padding: 4px 14px 24px 14px;
    border-radius: 8px;  
}
.pListing-item:after{
    content: '';
    width: calc(100% - 30px);
    height: 2px;
    position: absolute;
    bottom: 10px;
    left: 15px;
    background: #f4ede5;
}
.pListing-item-inner {
    border-top: 2px solid #f4ede5;
    margin-top: 4px;     
}
.pListing-image {    
    height: 260px;
    position: relative;
    text-align: center;
}

.pListing-image img {
    width: auto;
    max-width: 80%;
    max-height: 80%;    
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.pListing-information {
    padding: 10px 6px 10px 6px;
    border-top: 2px solid #f4ede5;    
    overflow: hidden; /* so will grow to contain floated read more */
}

/* read more link styling and full content hiding */
.pListing-full-content {
    display: none; /* Hide the full content initially */
}
.pListing-read-more-link {
    float: none;
    padding: 0 0 0 4px;
    color: #0073aa;
    cursor: pointer;
    text-decoration: underline;
}
.pListing-read-more-link.read-less {
    float: right;
    padding: 0 0 4px 6px;
}
.pListing-read-more-link:hover {
    text-decoration: none;
}

/* button, view article */
.pListing-view-article {
    display: block;
    clear: both;       
    background-color: #f4ede5;
    border: 1px solid #9d878b;
    -webkit-box-shadow: 0 0 0 8px #f4ede5;
            box-shadow: 0 0 0 8px #f4ede5;
    width: auto;
    padding: 14px 0;
    margin: 20px 14px 8px 14px;
    pointer-events: auto;    
    -webkit-transition: background-color .1s ease-in-out,-webkit-box-shadow .1s ease-in-out;    
    transition: background-color .1s ease-in-out,-webkit-box-shadow .1s ease-in-out;    
    -o-transition: box-shadow .1s ease-in-out,background-color .1s ease-in-out;    
    transition: box-shadow .1s ease-in-out,background-color .1s ease-in-out;    
    transition: box-shadow .1s ease-in-out,background-color .1s ease-in-out,-webkit-box-shadow .1s ease-in-out;
    white-space: nowrap;

    font-size: 15px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
}
.pListing-view-article:hover {
    border: 1px solid #302b1e;
    background-color: #F3E0CE;
    -webkit-box-shadow: 0 0 0 8px #F3E0CE;
            box-shadow: 0 0 0 8px #F3E0CE;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 1024px) {
    .pListings {
        -ms-grid-columns: (1fr)[2];
        grid-template-columns: repeat(2, 1fr); /* Two columns */
    }
}

@media (max-width: 768px) {
    .pListings {
        -ms-grid-columns: 1fr;
        grid-template-columns: 1fr; /* Single column */
    }
    .pListing-view-article {
        font-size: 14px;
        letter-spacing: 1px;
    }
}

