@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Montserrat:wght@700&display=swap');

body {
    font-family: 'Lato', sans-serif;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Montserrat', sans-serif;
}

.navbar-brand {
    font-weight: 700;
}

header {
    background-color: #e8f8f5;
}
.card {
    border: none;
    transition: transform .2s, box-shadow .2s;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,.12), 0 4px 8px rgba(0,0,0,.06);
}

#posts .card-title {
    font-size: 1.25rem; 
    font-weight: 700;
}

.btn-primary {
    background-color: #27ae60;
    border: none;
}

.btn-primary:hover {
    background-color: #229954;
}

/* 1. Constrain the width of the post content for better line length */
.post-container {
    max-width: 840px; /* Increased from 740px for a wider reading area */
    margin-left: auto;
    margin-right: auto;
}

/* 2. Add a dedicated style for the post date/metadata */
.post-meta {
    color: #6c757d; /* A muted gray color */
    margin-bottom: 2rem; /* More space between date and content */
    display: block; /* Make sure it's on its own line */
}

/* 3. Improve paragraph styling for the main content */
.entry-content p {
    font-size: 1.1rem; /* Slightly larger font */
    line-height: 1.7;  /* Generous spacing between lines */
    margin-bottom: 1.5rem; /* More space between paragraphs */
    color: #343a40; /* Softer, dark gray instead of pure black */
}

/* 4. Ensure the title has enough space below it */
.post-title {
    margin-bottom: 0.5rem; /* Space between title and date */
}

.post-header {
    background-color: transparent; /* Removes any inherited background color */
}

.back-to-posts {
    margin-top: 2rem;
}