/* General Styling & Card Container */
body {
    font-family: sans-serif;
    background-color: #f4f4f9;
    margin: 0;
    padding: 20px;
}

.cards-container {
    /* CSS Grid is used to create the responsive layout */
    display: grid;
    /* This makes the grid responsive: auto-fit creates as many columns as will fit, 
       and minmax ensures each column is at least 300px wide but not more than 1fr (equal share) */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px; /* Space between the cards */
    max-width: 1200px; /* Limits the overall width */
    margin: 20px auto; /* Centers the container */
}

/* Individual Card Styling */
.card {
    background-color: #ffffff;
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    overflow: hidden; /* Ensures the image corners are rounded */
    transition: transform 0.3s ease; /* Smooth hover effect */
}

.card:hover {
    transform: translateY(-5px); /* Lifts the card slightly on hover */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover; /* Ensures the image covers the area without distortion */
}

.card-content {
    padding: 15px;
}

.card-title {
    margin-top: 0;
    font-size: 1.5em;
    color: #333;
}

.card-text {
    color: #555; 
    margin-bottom: 15px;
    font-family: "Raleway", Helvetica, sans-serif;
    font-size: 12px;
    font-weight: 510;
    letter-spacing: 0.25em;
    line-height: 1.5em;

}

.card-link {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.card-link:hover {
    background-color: #0056b3;
}

.blog-image{
    width: 50%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin-left: 20%;
}