/* General Styles */
.image-wrapper {
    height: 70vh;
    width: 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    text-align: left !important;
}

/* Header Content */
.header-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: left;
}

.header-content-wrapper .subtitle-up {
    font-size: 24px;
    margin-bottom: 10px;
}

.header-content-wrapper .title {
    font-size: 36px;
    margin-bottom: 20px;
}

.action__btns--wrapper {
    display: flex;
    justify-content: left;
    flex-wrap: wrap;
    gap: 20px;
}

.action__btns--wrapper .button {
    padding: 10px 20px;
    text-decoration: none;
    color: white;
    background-color: var(--primary-color);
    border-radius: 5px;
}

/* Main Content */
.main-content {
    width: 100%;
}

.blogs__wrapper {
    padding: 40px 20px;
}

.filter__wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.filter-form .filter-label {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.filter-form .filter-select,
.filter-form .search-input,
.filter-form .search-button {
    font-size: 16px;
}

.filter-form .filter-select,
.filter-form .search-input {
    padding: 8px 12px;
    border: 2px solid #ccc;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.3s ease;
}

.filter-form .search-button {
    padding: 8px 16px;
    border: none;
    background-color: var(--primary-color);
    color: white;
    border-radius: 4px;
    cursor: pointer;
}

.filter-form .search-button:hover {
    background-color: var(--primary-color-dark);
}

/* Blogs List */
.blogs-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.blog-item {
    flex: 1 1 calc(33.333% - 40px); /* Three items per row */
    max-width: 400px;
    box-sizing: border-box;
    margin-bottom: 30px;
}

.blog-item .blog-preview__wrapper {
    margin: 0;
}

.blog-item .blog-preview__wrapper .img__wrapper img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 2px solid var(--secondary-color);
}

.blog-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--font-color);
    margin: 10px 0;
}

.blog-item .blog-preview__wrapper p {
    font-size: 16px;
    color: #333;
}

.blog-info p {
    font-size: 14px;
    font-weight: bold;
    color: var(--primary-color);
}

/* Upper Blogs */
.upper-blogs {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    margin-bottom: 60px;
}

.newest-blog {
    flex: 1 1 60%;
}

.newest-blog .blog-item .blog-preview__wrapper .img__wrapper img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.newest-blogs {
    flex: 1 1 35%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Blog Item Row */
.blog-item-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
}

.blog-item-row .img__wrapper {
    flex: 0 0 40%;
}

.blog-item-row .img__wrapper img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 2px solid var(--secondary-color);
}

.blog-item-row .blog-content__wrapper {
    flex: 1 1 60%;
}

.blog-item-row .blog-content__wrapper .blog-title {
    font-size: 20px;
    margin: 0;
}

.blog-item-row .blog-content__wrapper p {
    font-size: 14px;
    color: #333;
}

/* Pagination */
.pagination .page-link {
    background: var(--primary-color);
    border: 1px solid var(--secondary-color);
    color: white;
}

.pagination .page-item.active .page-link {
    background: var(--secondary-color);
}

/* Media Queries */

/* Tablets */
@media (max-width: 992px) {
    .blogs-list .blog-item {
        flex: 1 1 calc(50% - 40px); /* Two items per row */
    }

    .upper-blogs {
        flex-direction: column;
    }

    .newest-blog,
    .newest-blogs {
        flex: 1 1 100%;
    }

    .blog-item-row {
        flex-direction: column;
    }

    .blog-item-row .img__wrapper,
    .blog-item-row .blog-content__wrapper {
        flex: 1 1 100%;
    }
}

/* Mobile Devices */
@media (max-width: 576px) {
    .filter-form {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-form .filter-select,
    .filter-form .search-input,
    .filter-form .search-button {
        width: 100%;
    }

    .blogs-list .blog-item {
        flex: 1 1 100%; /* One item per row */
    }

    .blog-title {
        font-size: 20px;
    }

    .blog-item .blog-preview__wrapper p {
        font-size: 14px;
    }

    .blog-info p {
        font-size: 12px;
    }
}
