/* assets/css/blog.css */

/* Base Container */
.blog-container {
    max-width: 720px;
    margin: 4rem auto;
    padding: 0 1.5rem;
    font-family: 'Bricolage Grotesque', sans-serif; /* FORCE THE FONT */
    color: #334155;
    line-height: 1.8;
}

.blog-header { text-align: center; margin-bottom: 3rem; }
.blog-date { color: #94a3b8; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1rem; display: block; font-weight: 600; }

/* Typography */
.blog-container h1 { 
    font-family: 'Bricolage Grotesque', sans-serif; 
    font-size: 2.5rem; 
    line-height: 1.1; 
    color: var(--brand-dark); 
    margin-bottom: 1.5rem; 
    font-weight: 800;
}

.blog-container h2 { 
    font-family: 'Bricolage Grotesque', sans-serif; 
    font-size: 1.8rem; 
    color: var(--brand-dark); 
    margin-top: 3rem; 
    margin-bottom: 1rem; 
    font-weight: 700;
}

.blog-container h3 { 
    font-family: 'Bricolage Grotesque', sans-serif; 
    font-size: 1.4rem; 
    color: #475569; 
    margin-top: 2rem; 
    margin-bottom: 0.8rem; 
    font-weight: 600;
}

/* Paragraphs - The Fix for "Broken" fonts */
.blog-container p { 
    margin-bottom: 1.5rem; 
    font-size: 1.1rem; /* Slightly larger for reading */
    font-weight: 400; /* Regular weight, not thin */
    color: #334155;
    font-family: 'Bricolage Grotesque', sans-serif; 
}

/* Lists */
.blog-container ul { margin-bottom: 1.5rem; padding-left: 20px; }
.blog-container li { margin-bottom: 0.5rem; font-weight: 400; }

/* Images */
.featured-image {
    width: 100%;
    height: auto;
    aspect-ratio: 3/2;
    background-color: #e2e8f0;
    border-radius: 12px;
    margin-bottom: 3rem;
    object-fit: cover;
}

.article-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2.5rem 0;
}

/* Call to Action Box */
.cta-box {
    background: #f0fdfa;
    border: 1px solid var(--brand-teal);
    padding: 2rem;
    border-radius: 12px;
    margin-top: 3rem;
    text-align: center;
}
.cta-button {
    display: inline-block;
    background: var(--brand-teal);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 1rem;
    transition: background 0.2s;
}
.cta-button:hover { background: #0f766e; }

/* --- BLOG LISTING (GRID LAYOUT) --- */
.blog-listing-header {
    text-align: center;
    padding: 4rem 1.5rem 2rem 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.blog-listing-header h1 {
    font-size: 3rem;
    color: var(--brand-dark);
    margin-bottom: 1rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); /* Responsive Grid */
    gap: 2rem;
    max-width: 1100px;
    margin: 2rem auto 5rem auto;
    padding: 0 1.5rem;
}

/* The Card */
.blog-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-color: var(--brand-teal);
}

.blog-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: #f1f5f9;
}

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

.blog-card-date {
    font-size: 0.8rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.blog-card-title {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin: 0 0 0.8rem 0;
    line-height: 1.2;
}

.blog-card-excerpt {
    font-size: 0.95rem;
    color: #64748B;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1; /* Pushes button to bottom */
}

.blog-card-link {
    text-decoration: none;
    color: var(--brand-teal);
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.blog-card-link:hover { text-decoration: underline; }

/* Mobile Adjustment */
@media (max-width: 600px) {
    .blog-listing-header h1 { font-size: 2rem; }
    .blog-grid { grid-template-columns: 1fr; }
}