/* General */
body.blogs-page {
    font-family: 'Source Sans 3', sans-serif;
    background-color: #f9f9f9;
    margin-right: 0px;
    margin-left: 0px;
    padding: 0;
}

.blogs-main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.blogs-main h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.blog-intro {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #555;
}

/* Grid for blog cards */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* Individual blog card */
.blog-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.blog-card img {
    width: 100%;
    height: 200px;      /* pick a consistent height */
    object-fit: cover; /* crops without distortion */
    display: block;
}

/* Content section */
.blog-card-content {
    padding: 1rem;
    flex: 1; /* Ensures text takes remaining space */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Title styling */
.blog-title {
    font-size: 1.5rem;
    margin: 0.5rem 0;
    text-decoration: none;
    color: #1a73e8;
    transition: color 0.2s ease;
}

.blog-title:hover {
    color: #1558b0;
}

/* Date styling */
.blog-date {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 0.5rem;
}

/* Excerpt styling */
.blog-excerpt {
    font-size: 1rem;
    color: #555;
    margin-bottom: 1rem;
    text-decoration: none;
}

.blog-card a {
    text-decoration: none; /* Remove underline for the entire link */
}

/* Optional: read-more button */
.read-more {
    text-decoration: none;
    color: #fff;
    background-color: #1a73e8;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.2s ease;
    align-self: flex-start; /* Keep button aligned left */
}

.read-more:hover {
    background-color: #1558b0;
}