/* Styling for blogs.php page */

.blog-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 20px;
}

.blog-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.blog-header h1 {
    font-size: 2.8rem;
    color: #1e3a8a; /* Dark Blue */
    margin-bottom: 0.5rem;
}

.blog-header p {
    font-size: 1.1rem;
    color: #6c757d; /* Muted gray text */
}

/* Individual blog post styling */
.blog-post-item {
    background-color: #ffffff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
    margin-bottom: 2.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.post-meta {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 0.75rem;
    font-family: Arial, sans-serif;
}

.blog-post-item h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.blog-post-item h2 a {
    text-decoration: none;
    color: #1e3a8a;
    transition: color 0.3s ease;
}

.blog-post-item h2 a:hover {
    color: #3b82f6; /* Lighter blue on hover */
}

.post-content p {
    line-height: 1.7;
    color: #333;
    margin: 0;
}

.read-more {
    display: inline-block;
    margin-top: 1.5rem;
    color: #1e3a8a;
    font-weight: bold;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.read-more:hover {
    transform: translateX(5px);
}

/* --- Styles for Expand/Collapse Content --- */

.post-snippet {
    display: block;
}

.full-post-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out, margin-top 0.5s ease-in-out;
}

/* NEW '.expanded' class will be added by JavaScript */
.blog-post-item.expanded .full-post-content {
    max-height: 1000px; /* A large value to allow for content growth */
    opacity: 1;
    margin-top: 1rem;
}