
/* General Blog Styling */
body {
    background-color: #f8f9fa; /* A light grey for the whole page */
}

.blog-main-container {
    max-width: 1100px;
    margin: 20px auto;
    padding: 20px;
    font-family: 'Open Sans', sans-serif;
}

/* --- Blog Listing Page --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.blog-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.blog-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-title a {
    text-decoration: none;
    color: #002868;
    font-family: 'Lora', serif;
    font-size: 1.6em;
}

.blog-card-title a:hover {
    color: #BF0A30;
    text-decoration: underline;
}

.blog-card-meta {
    font-size: 0.9em;
    color: #6c757d;
    margin-bottom: 15px;
    font-style: italic;
}

.blog-card-excerpt {
    font-size: 1em;
    line-height: 1.6;
    color: #333;
    flex-grow: 1;
    margin-bottom: 20px;
}

.read-more-link {
    font-weight: bold;
    color: #BF0A30;
    text-decoration: none;
    align-self: flex-start;
    transition: color 0.2s ease;
}

.read-more-link:hover {
    color: #002868;
    text-decoration: underline;
}


/* --- Blog Post Container (Individual Post) --- */
.blog-post-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    font-family: 'Open Sans', sans-serif;
    color: #333;
}

/* --- Hero Section (Shared by Listing and Post) --- */
.blog-hero {
    text-align: center;
    padding: 40px 20px;
    background-color: #ffffff; /* White background for a clean look */
    border-radius: 8px;
    margin-bottom: 40px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.blog-hero h1 {
    font-family: 'Lora', serif;
    font-size: 3em;
    color: #002868; /* Main site blue */
    margin-bottom: 0.2em;
}

.blog-hero p {
    font-size: 1.2em;
    color: #555;
    max-width: 650px;
    margin: 0 auto;
}

.blog-hero .publish-date {
    font-style: italic;
    color: #6c757d; /* Muted grey */
    margin-top: 10px;
    display: block;
}

/* --- Article Content (Individual Post) --- */
.blog-content {
    line-height: 1.8;
}

.blog-content h2 {
    font-family: 'Lora', serif;
    font-size: 1.8em;
    color: #002868;
    margin-top: 2em;
    margin-bottom: 1em;
    border-bottom: 2px solid #BF0A30; /* Main site red */
    padding-bottom: 0.4em;
}

.blog-content p {
    margin-bottom: 1.5em;
    font-size: 1.1em;
}

.blog-content strong {
    font-weight: 600;
    color: #333;
}

/* --- Step-by-Step Cards (Individual Post) --- */
.steps-container {
    margin-top: 2em;
}

.step-card {
    background-color: #f8f9fa; /* Light grey for contrast */
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.step-card h3 {
    font-family: 'Lora', serif;
    color: #BF0A30; /* Main site red */
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 0.5em;
}

/* --- Conclusion/Call to Action (Individual Post) --- */
.blog-conclusion {
    margin-top: 3em;
    padding: 30px;
    background-color: #002868; /* Dark Blue */
    color: #ffffff;
    border-radius: 8px;
    text-align: center;
}

.blog-conclusion h2 {
    color: #ffffff;
    border-bottom: none;
    font-size: 2em;
}

.blog-conclusion p {
    font-size: 1.1em;
    margin-bottom: 1.5em;
}

.blog-conclusion .cta-button {
    background-color: #BF0A30;
    color: #ffffff;
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    display: inline-block;
}

.blog-conclusion .cta-button:hover {
    background-color: #A30000;
    text-decoration: none;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .blog-hero h1 {
        font-size: 2.2em;
    }
    .blog-content h2 {
        font-size: 1.6em;
    }
    .blog-grid {
        grid-template-columns: 1fr; /* Stack cards on smaller screens */
    }
}
