.grid-card {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    height: auto; /* Let content dictate or standard min-height */
    background-color: var(--color-light-bg);
    transition: box-shadow 0.3s ease;
}

.grid-card:hover {
    box-shadow: 0 0 16px 0 rgba(0, 0, 0, 0.15);
}

.grid-card .card-image {
    height: 180px;
    width: 100%;
    overflow: hidden;
}

/* Grid card content styling is same as large card essentially */
.grid-card .category {
    text-align: left;
}

/* Text Styles in Cards */
.category {
    font-weight: 500;
    font-size: 14px;
    color: #DA291C;
    text-align: left;
    width: 100%;
}


.date {
    font-weight: 400;
    font-size: 14px;
    color: #666666;
    margin-top: auto; /* Push to bottom of flex container */
}


.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.grid-card .card-content {
    background-color: #F7F7F7;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 156px;
    flex: 1;
}

/* Related news */
.related-news-section {
    padding-top: 40px;
    margin-bottom: 80px;
}

.section-title {
    font-weight: 700;
    font-style: Bold;
    font-size: 28px;
    line-height: 100%;
    letter-spacing: 0%;
    color: #27201F;
    margin-bottom: 24px;
}

.grid-card .title {
    font-weight: 500; /* Match insight/styles.css */
    font-size: 18px;
    color: #000000;
    /* font-style: Medium; - Invalid property removed */
    line-height: 24px; /* Increased for better readability */
    margin: 0; /* Match insight/styles.css */
    letter-spacing: 0%;
    
    /* Allow wrapping for long words/strings */
    white-space: normal; 
    word-break: break-word; /* Legacy: behaves like break-all if needed */
    overflow-wrap: break-word; /* Standard: allows breaking in middle of words if line full */
    
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* autoprefixer: ignore next */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* Inheriting grid-card styles from parent css, but defining grid layout here */
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Responsive */
@media screen and (max-width: 1024px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
}
