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

.cListings {
    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;   
}
.cListing-item {
    width: 100%;
    position: relative;
    background: #FFF;
    padding: 15px 14px 24px 14px;
    border-radius: 8px;       
}
.cListing-item:after{
    content: '';
    width: calc(100% - 30px);
    height: 2px;
    position: absolute;
    bottom: 10px;
    left: 15px;
    background: #f4ede5;
}

.cListing-item-inner img {
    width: 100%;
}
.cListing-title a {
    text-decoration: none;
}
.cListing-information {
    padding: 0 6px 10px 6px;
    border-bottom: 2px solid #f4ede5;
    overflow: hidden; /* so will grow to contain floated read more */
}
.cListing-registration {
    clear: both;
    padding: 16px 6px 0 6px;
}

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

/* join the waitlist text */
.regSectionWaitlist h2 {
    font-size: 26px;
    font-weight: 400;
    line-height: normal;
    padding-bottom: 3px;
}
.regSectionWaitlist h2:after {
    content: "...";
}

/* form buttons (waitlist, active, standby, view course) */
.cListing-registration .regSectionWaitlist .submit-container .submit-wrap .ninja-forms-field,    
.cListing-registration .register-button .register_upper,
.cListing-view-course {
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
}
/* standby button */
.cListing-registration .register-button.register_standby .register_upper {
    letter-spacing: 1px;
}
@media (max-width: 768px) {
    .cListing-registration .regSectionWaitlist .submit-container .submit-wrap .ninja-forms-field,    
    .cListing-registration .register-button .register_upper,
    .cListing-view-course {
        font-size: 14px;
        letter-spacing: 1px;
    }
    .cListing-registration .register-button.register_standby .register_upper {
        letter-spacing: 0;
    }
}
@media (max-width: 360px) {
    .cListing-registration .register-button.register_standby .register_upper {
        font-size: 12px;
    }
}

/* view course button/link */
.cListing-view-course {
    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;
}
.cListing-view-course: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) {
    .cListings {
        -ms-grid-columns: (1fr)[2];
        grid-template-columns: repeat(2, 1fr); /* Two columns */
    }
}

@media (max-width: 768px) {
    .cListings {
        -ms-grid-columns: 1fr;
        grid-template-columns: 1fr; /* Single column */
    }
}

