/* Results Grid */
.ct-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

@media (max-width: 768px) {
    .ct-results-grid {
        grid-template-columns: repeat(2, 1fr); /* exactly two columns */
    }
}

/* Result Card */
.ct-result-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    position: relative;
    transition: transform 0.2s ease;
    height: 300px; /* adjust as needed */
    display: flex;
    flex-direction: column;
}
.ct-result-card:hover {
    transform: translateY(-5px);
}

/* Image Wrapper (square, cover) */
.ct-image-wrapper {
    width: 100%;
    /*aspect-ratio: 1/0.6;*/
    overflow: hidden;
    position: relative;
}
.ct-image-wrapper img {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
}

/* Provisional Ribbon */
.ct-ribbon {
    position: absolute;
    top: 30px;
    right: -40px;
    background: red;
    color: #fff;
    padding: 10px 40px;
    transform: rotate(45deg);
    font-size: 18px;
    font-weight: bold;
    z-index: 2;
}
/*Card Content */
.ct-card-content {
    display: flex;
    text-align: center;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}
.ct-title {
    font-size: 12px;
    margin: 0 0 5px;
    padding-bottom: 10px;
    padding-top: 10px;
}
.ct-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0 0 5px;
}
.ct-date {
    font-size: 13px;
    color: #999;
    margin-top: auto;
}

/* Single Result Page */
.ct-result-single {
    max-width: 80%;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

/* Mobile full width */
@media (max-width: 768px) {
    .ct-result-single {
        max-width: 100%;
    }
}

/* Headings */
.ct-title {
    font-size: 20px;
    margin-bottom: 0px;
}

.ct-subtitle {
    font-size: 15px;
    color: #666;
    margin-bottom: 0px;
}

.ct-provisional-heading {
    font-size: 1.5rem;
    color: red;
    margin-bottom: 15px;
    font-weight: bold;
}