/* blog/css/blog.css */

.blog-container {
    max-width: 1100px;
    margin: 0 auto;
    /* The 100px top padding ensures it clears your header safely */
    padding: 100px 20px 60px 20px; 
}

/* Main Blog Page Grid */
.blog-hero {
    text-align: center;
    margin-bottom: 50px;
}
.blog-hero h1 {
    font-size: 2.5rem;
    color: #111827;
    margin-bottom: 15px;
}
.blog-hero p {
    font-size: 1.125rem;
    color: #4b5563;
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}
.blog-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

/* Updated Blog Card Image (No Cropping) */
.blog-card-img {
    width: 100%;
    height: auto; 
    border-bottom: 1px solid #e5e7eb;
    display: block;
}

.blog-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.blog-meta {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}
.blog-card-content h2 {
    font-size: 1.25rem;
    line-height: 1.4;
    margin-bottom: 15px;
}
.blog-card-content h2 a {
    color: #111827;
    text-decoration: none;
}
.blog-card-content h2 a:hover {
    color: #2563eb;
}
.blog-card-content p {
    color: #4b5563;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}
.read-more {
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
    align-self: flex-start;
}
.read-more:hover { text-decoration: underline; }

/* Single Post Styles */
.single-post-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}
.back-to-blog {
    display: inline-block;
    margin-bottom: 20px;
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}
.back-to-blog:hover { text-decoration: underline; }
.single-post-title {
    font-size: 2.5rem;
    color: #111827;
    margin-bottom: 20px;
    line-height: 1.2;
}
.single-post-meta {
    color: #6b7280;
    font-size: 1rem;
}

/* Updated Single Post Image (No Cropping) */
.single-post-image {
    width: 100%;
    height: auto; 
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    display: block;
}

.single-post-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.8;
    color: #374151;
}
.single-post-content h2 {
    font-size: 1.875rem;
    color: #111827;
    margin: 40px 0 20px 0;
}
.single-post-content h3 {
    font-size: 1.5rem;
    color: #1f2937;
    margin: 30px 0 15px 0;
}
.single-post-content p { margin-bottom: 20px; }
.single-post-content ul, .single-post-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}
.single-post-content li { margin-bottom: 10px; }
.cta-box {
    background: #f3f4f6;
    border-left: 4px solid #2563eb;
    padding: 30px;
    margin-top: 50px;
    border-radius: 0 12px 12px 0;
}