/* ==========================================================================
   COLOR SYSTEM (60-30-10 RULE) & CONFIGURATION
   ========================================================================== */
   body {
    background-color: var(--organic-cream) !important;
}

/* Structural layouts that sit comfortably inside your site flow */
.em-blog,
.em-blog-detail {
    color: var(--deep-forest-green);
    width: 100%;
    box-sizing: border-box;
    padding: var(--s-32) 0 var(--s-32) 0;
}

.em-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--s-32);
    box-sizing: border-box;
}

.em-container-detail {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--s-16);
    box-sizing: border-box;
}

/* Header Text Blocks (Replaced the breaking literal header tags) */
.em-blog-title-block,
.em-detail-title-block {
    text-align: center;
    margin-bottom: var(--s-32);
}

.em-blog-subtitle {
    color: var(--harvest-mustard);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
    display: block;
    margin-bottom: var(--s-8);
}

.em-section-title {
    color: var(--deep-forest-green);
    font-size: 2.5rem;
    margin: 0;
    font-weight: 800;
}

/* Homepage Cards Grid */
.em-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: var(--s-32);
    margin-bottom: var(--s-32);
    width: 100%;
}

/* Card Element Styles (Balanced Cream-to-White contrast contrast) */
.em-blog-card {
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.em-card-link-wrapper {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.em-blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(31, 61, 43, 0.14);
}

/* Image Wrapper Scale FX */
.em-img-container {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background-color: var(--organic-cream);
}

.em-blog-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.em-blog-card:hover .em-blog-img {
    transform: scale(1.04);
}

/* Padding Content Elements inside Cards */
.em-blog-content {
    padding: var(--s-24);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.em-card-headline {
    color: var(--deep-forest-green);
    font-size: 1.3rem;
    margin: 0 0 var(--s-16) 0;
    line-height: 1.4;
    font-weight: 700;
}

/* CTA Highlight Strings (10% Mustard System Rule) */
.em-blog-link {
    color: var(--harvest-mustard);
    font-weight: 700;
    font-size: 0.95rem;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s ease;
}

.em-blog-card:hover .em-blog-link {
    color: var(--deep-forest-green);
}

/* Clean Pagination Controls */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--s-24);
    margin-top: var(--s-32);
}

.current-page {
    font-weight: 600;
    color: var(--deep-forest-green);
}

.btn-pagination {
    background-color: var(--deep-forest-green);
    color: var(--organic-cream);
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-pagination:hover {
    background-color: var(--harvest-mustard);
    color: var(--deep-forest-green);
}

.em-no-articles {
    text-align: center;
    padding: var(--s-32);
    font-style: italic;
    opacity: 0.8;
    grid-column: 1 / -1;
}

/* ==========================================================================
   BLOG DETAILS STYLING RULES
   ========================================================================== */
.em-back-link {
    color: var(--harvest-mustard);
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    margin-bottom: var(--s-16);
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.em-back-link:hover {
    color: var(--deep-forest-green);
}

.em-detail-title {
    font-size: 2.5rem;
    color: var(--deep-forest-green);
    line-height: 1.2;
    margin: 0 0 var(--s-24) 0;
    font-weight: 800;
}

.em-detail-img-wrapper {
    width: 100%;
    max-height: 480px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: var(--s-32);
    box-shadow: var(--shadow-soft);
}

.em-detail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Typographic reading alignments */
.em-detail-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--deep-forest-green);
}

.em-detail-content p {
    margin-bottom: var(--s-24);
}

/* Responsive Adaptive Viewports */
@media (max-width: 992px) {
    .em-container {
        padding: 0 var(--s-16);
    }
}

@media (max-width: 768px) {
    .em-section-title,
    .em-detail-title { 
        font-size: 1.85rem; 
    }
    .em-blog-grid { 
        gap: var(--s-16); 
    }
}
