/* =========================================
   BLOG SECTION (Main Grid)
   ========================================= */

.blog-section {
    padding: 60px 40px;
    background-color: #edf3f1;
}

.blog-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 Columns */
    gap: 30px;
    max-width: 1600px;
    /* Wider container for 4 columns */
    margin: 0 auto;
}

.blog-card {
    background-color: #fff;
    /* White Background */
    border-radius: 15px;
    overflow: hidden;
    text-decoration: none;
    color: #103f1d;
    /* Green Text */
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.blog-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.blog-card h3 {
    padding: 20px;
    font-size: 1.1rem;
    line-height: 1.5;
    margin: 0;
    color: #103f1d;
    /* Green Heading */
    font-weight: 600;
}

/* Blog Responsive Breakpoints */
@media (max-width: 1200px) {
    .blog-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .blog-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .blog-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* =========================================
   BLOG DETAIL PAGES (blog-details.php style)
   ========================================= */

.blog-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    font-family: 'Montserrat', sans-serif;
}

/* 1. Title Section */
.blog-detail-hero {
    text-align: center;
    margin-bottom: 50px;
    padding: 0 10%;
}

.blog-detail-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #103f1d;
    /* Dark Green */
    line-height: 1.3;
    margin: 0;
}

/* 2. Featured Image Section */
.blog-detail-image-section {
    width: 100%;
    margin-bottom: 60px;
    display: flex;
    justify-content: center;
}

.blog-featured-image-wrapper {
    width: 100%;
    max-width: 1200px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.blog-featured-image {
    width: 100%;
    height: auto;
    max-height: 600px;
    /* Restrict height for desktop friendliness */
    object-fit: contain;
    /* Ensure full image is visible without cropping */
    display: block;
    margin: 0 auto;
    /* Center the image if it's narrower than container */
    background-color: #f9f9f9;
    /* Optional: subtle background for landscape container */
    border-radius: 20px;
}

/* 3. Content Section */
.blog-detail-content {
    max-width: 850px;
    margin: 0 auto 80px;
    color: #333;
}

.blog-content-block {
    margin-bottom: 40px;
}

.blog-section-title {
    color: #f77037;
    /* Orange */
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.blog-content-list {
    list-style: none;
    /* Custom bullets */
    padding: 0;
    margin: 0;
}

.blog-content-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.blog-content-list li::before {
    content: "•";
    /* Minimal bullet, or use SVG for fancier look */
    color: #f77037;
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -5px;
}

/* 4. Navigation Buttons */
.blog-navigation {
    display: flex;
    justify-content: space-between;
    max-width: 850px;
    margin: 0 auto 60px;
    padding-top: 40px;
    border-top: 1px solid #ddd;
}

.nav-btn {
    display: inline-block;
    padding: 15px 30px;
    background-color: #103f1d;
    /* Dark Green */
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background-color: #f77037;
    /* Orange Hover */
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(247, 112, 55, 0.3);
}

/* Responsive Blog Details */
@media (max-width: 768px) {
    .blog-detail-title {
        font-size: 1.8rem;
    }

    .blog-section-title {
        font-size: 1.4rem;
    }

    .blog-content-list li {
        font-size: 1rem;
    }

    .blog-detail-container {
        padding: 40px 15px;
    }
}