.cl-feed-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(319px, 1fr));
    gap: 16px;
    padding:0 16px 16px;  
}

.cl-feed-card {
    border: 1px solid #ddd;
    padding: 16px;
    border-radius:20px;
    background-color: #fff;
    position: relative; /* Needed for the ::before pseudo-element */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.cl-feed-card-image {
    width: 100%;
    height: auto;
    border-radius: 20px;
    margin-bottom: 16px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.cl-feed-card-title {
    font-size: 18px;
    margin: 0 0 8px;
    position: static;
    z-index: 1; /* Ensure the title text appears above ::before */
}

.cl-feed-card-title a {
    text-decoration: none;   
    position: static;
    z-index: 1; /* Ensure the link text is above the ::before */
}

/* Make the entire card clickable using ::before */
.cl-feed-card-title a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2; /* Send it behind the text but above the card */
    background: transparent;
    cursor: pointer;
}

.cl-feed-card-excerpt {
    display: -webkit-box;           /* Enables a flex container for proper line clamping */
    -webkit-box-orient: vertical;  /* Specifies the orientation as vertical */
    overflow: hidden;              /* Hides overflowing content */
    -webkit-line-clamp: 4;         /* Limits the content to 4 lines */
    font-size: 14px;
    color: #555;
    margin: 0 0 16px;
    position: relative;
    z-index: 1; /* Ensure text appears above the clickable ::before */
}

/* Change hover styles for the entire card */
.cl-feed-card:hover {
    background-color: #f0f0f0;
}

.cl-feed-card-title a:hover {
    text-decoration: underline;
}
