/* HEIMAN FIRE & MAINTENANCE: PROFESSIONAL BLOG STYLES 
   Restored Home Grid + "Boxed" Professional Single Post 
*/

/* --- 1. GLOBAL DEFAULTS --- */
body.blog, body.single-post {
    background-color: #f4f7f9; /* Light grey site background */
    margin: 0;
    padding: 0;
}

/* --- 2. HOME.PHP: THE BLOG GRID --- */
.blog-grid-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Responsive Grid */
@media (max-width: 992px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } }

.grid-card {
    background: #ffffff;
    border: 1px solid #e1e1e1; /* Stroke box */
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05); /* Drop shadow */
    transition: transform 0.3s ease;
}

.grid-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.card-img img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.card-text {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-post-title a {
    color: #002e6d;
    text-decoration: none;
    font-family: 'Arial Black', sans-serif;
    font-size: 22px;
}

.read-more-box {
    margin-top: auto;
    display: inline-block;
    padding: 12px 20px;
    border: 1px solid #002e6d;
    color: #002e6d;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
}

/* --- 3. SINGLE.PHP: PROFESSIONAL BOXED LAYOUT --- */

/* Hero Header (No Box) */
.article-header-section {
    padding: 80px 0 40px;
    text-align: center;
}

.article-headline {
    font-family: 'Arial Black', sans-serif;
    font-size: 48px;
    color: #002e6d;
    line-height: 1.1;
    margin: 20px 0 0;
}

/* The Container Fix: Stroke box and Shadow */
.article-container-narrow,
.article-container-medium {
    max-width: 900px;
    margin: 0 auto 40px;
    padding: 40px;
    background: #ffffff; /* Container background */
    border: 1px solid #e1e1e1; /* The Stroke Box */
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); /* The Drop Shadow */
    border-radius: 4px;
}

/* Ensure images inside the boxed container fit perfectly */
.hero-img-fluid {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    display: block;
    margin-bottom: 20px;
}

/* Content Typography */
.article-content-wrapper {
    font-family: Georgia, serif;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.article-content-wrapper p {
    margin-bottom: 30px;
}

/* Subheaders */
.article-content-wrapper h2, 
.article-content-wrapper h3 {
    font-family: 'Arial Black', sans-serif;
    color: #002e6d;
    margin-top: 40px;
}

/* List Styling (NFPA Bullet points) */
.article-content-wrapper ul {
    margin: 30px 0;
    padding-left: 30px;
}

.article-content-wrapper li {
    margin-bottom: 12px;
}

/* Footer Navigation (Outside the box) */
.article-footer-nav {
    padding: 40px 0 80px;
    text-align: center;
}

.btn-back-to-blog {
    color: #002e6d;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    border-bottom: 2px solid #002e6d;
}