﻿/*--------------------------------- BLOG ------------------------------*/
.blog {
    width: 80%;
    margin: auto;
    padding: 50px 0;
    text-align: center;
}

.blog-header {
    display: inline-block;
    font-size: var(--h1-font);
    color: var(--other-color);
    position: relative;
    padding: 2.5rem 0 3rem;
    letter-spacing: 1px;
}

    .blog-header::after {
        content: "";
        display: block;
        width: 100%;
        height: 3px;
        background: var(--other-color);
        margin: 3px auto 0;
        border-radius: 1px;
    }

.blog-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.blog-box {
    background: var(--second-color);
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: left;
    flex: 1 1 calc(33.33% - 20px);
    max-width: 500px;
}

.box-img {
    width: 100%;
    border-radius: 5px;
    margin-bottom: 15px;
}

.box-title {
    font-size: var(--h3-font);
    color: var(--other-color);
    font-weight: bold;
    margin: 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

    .box-title:hover {
        text-decoration: underline;
    }

.box-description {
    font-size: var(--p-font);
    color: var(--other-color-2);
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.box-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 5px;
}

.box-date {
    font-size: var(--p-font);
    color: var(--other-color-2);
    flex-shrink: 0;
    padding: 5px;
}

.read-more {
    font-size: var(--p-font);
    color: var(--main-color);
    text-decoration: none;
    font-weight: bold;
    white-space: nowrap;
    padding: 5px;
}

    .read-more:hover {
        text-decoration: underline;
    }

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

    .pagination a {
        margin: 0 5px;
        padding: 10px;
        background-color: #f4f4f4;
        text-decoration: none;
        color: #333;
        border-radius: 5px;
    }

        .pagination a.active {
            background-color: var(--main-color);
            color: white;
        }

        .pagination a:hover {
            background-color: #ddd;
        }

        .pagination a.prev, .pagination a.next {
            font-weight: bold;
        }

@media (max-width: 799px) {
    .blog-container {
        flex-direction: column;
    }

    .blog-box {
        width: 100%;
    }

    .blog-header {
        font-size: var(--m-h1-font);
    }

    .box-title {
        font-size: var(--m-h3-font);
    }

    .box-date {
        font-size: var(--m-p-font);
    }

    .box-description {
        font-size: var(--m-p-font);
    }

    .read-more {
        font-size: var(--m-p-font);
    }
}
