/* Custom CSS for Research Cards */
.research-card {
    margin-bottom: 30px;
    /* Spacing between cards vertically */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* Subtle shadow for card effect */
    transition: transform 0.2s ease-in-out;
    /* Smooth hover effect */
    height: 100%;
    /* Ensure all cards in a row are the same height */
    display: flex;
    /* Use flexbox for inner card content */
    flex-direction: column;
    /* Stack card body content vertically */
}

.research-card:hover {
    transform: translateY(-5px);
    /* Slight lift on hover */
}

.research-card .card-img-top {
    width: 100%;
    height: 220px;
    /* Fixed height for consistent image size across all cards */
    object-fit: cover;
    /* Ensures image covers the area without distortion, cropping if necessary */
    border-top-left-radius: calc(.25rem - 1px);
    /* Match Bootstrap's card border radius */
    border-top-right-radius: calc(.25rem - 1px);
}

.research-card .card-body {
    padding: 1.5rem;
    /* Standard Bootstrap padding */
    flex-grow: 1;
    /* Allows the body to expand and push footer content down */
    display: flex;
    flex-direction: column;
}

.research-card .card-title {
    font-size: 1.5rem;
    /* Adjust title size */
    margin-bottom: 0.75rem;
    /* Spacing below title */
    font-weight: 600;
    /* Make title bolder */
    color: #333;
    /* Darker color for readability */
}

.research-card .card-text {
    font-size: 0.95rem;
    /* Adjust text size for readability */
    line-height: 1.6;
    /* Improve line spacing */
    color: #555;
    /* Slightly lighter color for body text */
    margin-bottom: 1rem;
    /* Space before links */
    flex-grow: 1;
    /* Allow description to take up available space */
    overflow: hidden;
    /* Hide overflow content if text is too long */
    text-overflow: ellipsis;
    /* Add ellipsis for overflow text */
    /* If you want to strictly limit text lines uncomment the lines below and adjust */
    /* max-height: 120px; */
    /* Example: limit to ~5-6 lines */
    /* display: -webkit-box; */
    /* -webkit-line-clamp: 5; */
    /* -webkit-box-orient: vertical; */
}

.research-card .card-link {
    margin-top: auto;
    /* Pushes the links to the bottom of the card body */
    padding-top: 1rem;
    /* Space between description and links */
    border-top: 1px solid #eee;
    /* Subtle separator */
}

.research-card .card-link .btn {
    margin-right: 10px;
    margin-bottom: 5px;
    /* Spacing between buttons */
    font-size: 0.85rem;
    /* Smaller button text */
    padding: 0.4rem 0.8rem;
    /* Adjust button padding */
}

/* Adjust padding/margin for the container row if needed */
#research-highlights-container {
    padding-top: 20px;
    /* Space between the "Research Highlights" title and the first row of cards */
    padding-bottom: 20px;
    /* Space before the next section */
}