{% include 'header.twig' %}
<style>
    /* Margins */
    .wrapper-content {
        margin: 20px auto;
    }

    .card {
        margin-bottom: 20px;
    }

    /* Button styling */
    .btn {
        display: inline-block;
        padding: 10px 20px;
        font-size: 16px;
        font-weight: bold;
        text-transform: uppercase;
        text-align: center;
        color: #fff;
        background-color: #007bff;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }

    .btn:hover {
        background-color: #0056b3;
    }

    .btn-block {
        display: block;
        width: 100%;
    }

    /* Additional styling */
    h4 {
        margin-bottom: 10px;
    }

    .card img {
        width: 100%;
        height: auto;
        margin-bottom: 10px;
    }
</style>
<section>
    <div class="wrapper-content">
        <div class="container">
            <div class="row justify-content-center">
                <div class="col-lg-8">
                    {% if contentText %}
                        <div class="col-lg-12 mt-2">
                            <div class="card mb-2" style="padding: 1rem; border-radius: 0.25rem; background-color: #fff; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);">
                                {{ contentText }}
                            </div>
                        </div>
                    {% endif %}
                </div>
            </div>
        </div>

        {% for blog in blogs %}
                        <div class="col-lg-12 mt-2">
   <div class="card mb-2" style="padding: 1rem; border-radius: 0.25rem; background-color: #fff; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);">                    <div class="">
                        <div class="row">
                            <div class="col-md-8 offset-md-2">
                                <div class="component_card component_button_more component_blog_headers h-100">
                                    <div class="card h-100 mt-2">
                                        <h6 style="padding-bottom:10px;">{{ blog["title"]|slice(0, 35)|join(' ') }}</h6> 
                                        {% if blog["image_file"] %} 
                                            <a href="/blog/{{ blog["blog_get"] }}" style="display:flex;justify-content: center;">
                                                <img src="{{blog["image_file"]}}" alt="{{ blog["title"] }}" class="img-responsive">
                                            </a>
                                        {% endif %}
                                        <div class="block-blog__content"></div><br>
                                        <div class="block-blog__actions mt-auto">
                                            <a href="/blog/{{ blog["blog_get"] }}" class="btn btn-big-primary" style="width:100%;">Read more</a>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="mb-3"></div>
        {% endfor %}

        <div class="container">
            <div class="row justify-content-center">
                <div class="col-lg-8">
                    {% if contentText2 %}
                        <div class="card mt-4 mb-4" style="padding: 1rem; border-radius: 0.25rem; background-color: #fff; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);">
                            {{ contentText2 }}
                        </div>
                    {% endif %}
                </div>
            </div>
        </div>
    </div>
</section>
{% include 'footer.twig' %}
