@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');


.post-card, .post-feed {
    display: -ms-flexbox;
    display: flex;
}

.post-feed {
    position: relative;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin: 0 -20px;
    padding: 0;
}
.post-card {
    -ms-flex: 1 1 300px;
    flex: 1 1 300px;
    -ms-flex-direction: column;
    flex-direction: column;
    min-height: 300px;
    overflow: hidden;
    margin: 0 20px 40px;
    background: #fff 50%;
    background-size: cover;
    border-radius: .25rem;
    box-shadow: 0 0 1px rgb(39 44 49 / 10%), 0 3px 16px rgb(39 44 49 / 7%);
    transition: all .2s ease;
}
.post-card:hover {
    box-shadow: 0 0 0.25rem rgb(0 0 0 / 8%), 0 0.5rem 0.75rem rgb(0 0 0 / 14%);
    transition: all .3s ease;
    text-decoration: none;
    /* transform: translate3D(0,-1px,0); */
}

/* Per visa ploti */
.post-feed .post-card:nth-child(6n+1) {
    flex: 1 1 100%;
    flex-direction: row;

}
.post-feed .post-card:nth-child(6n+1) .photo {
    flex-basis: 70%;
    width:auto;
}
.post-feed .post-card:nth-child(6n+1) .text {
    flex-basis: 30%;
    width:auto;
}

.container.container-blog {
    font-family: 'Roboto', sans-serif;
    width:1200px;
}
.blog-title {
    /*margin-top: 70px;*/
    /*margin-bottom: 70px;*/
}
.blog-title h1 {
    font-size: 35px;
    color: #1f1267;
    font-weight: 300;
    text-align: center;
}
.blog-title p {
    margin-bottom: 20px;
    font-size: 17px;
    text-align: center;
    color: #212529;
}

.post-card .photo {
    min-height: 200px;
    flex-basis:auto;
    background-color: turquoise;
    background-size:cover;
}
.post-card .text {
    flex-basis: auto;
    padding: 40px 30px;
}
.post-card .title {
    font-size: 24px;
    font-weight: 500;
    color: #1f1267;
    margin-top: 10px;
    margin-bottom: 0;
}
.post-card .body {
    color: var(--color-c);
    margin-bottom: 20px;
    font-size: 17px;
    text-align: justify;
}
.post-card .date {
    font-size:13px;
    color: var(--color-c);
    font-weight:600;
}

/* Stilius 3 stulpeliu layoutui */
/* .row.blog-3-cols .blog-card {
    flex-direction:column;
    flex-basis:auto;
}
.row.blog-3-cols .blog-card__photo {
    height:200px;
    flex-basis:auto;
}
.row.blog-3-cols .blog-card__text {
    padding: 40px 30px;
}
.row.blog-3-cols div:nth-child(1) .blog-card  {
    margin-right: 8px;
}
.row.blog-3-cols div:nth-child(2) .blog-card  {
    margin-left: 8px;
    margin-right: 8px;
}
.row.blog-3-cols div:nth-child(3) .blog-card  {
    margin-left: 8px;
} */

/* Stilius 2 stulpeliu layoutui */
/* .row.blog-2-cols .blog-card {
    flex-direction:column;
    flex-basis:auto;
}
.row.blog-2-cols .blog-card__photo {
    height:200px;
    flex-basis:auto;
}
.row.blog-2-cols .blog-card__text {
    padding: 40px 30px;
}
.row.blog-3-cols div:nth-child(1) .blog-card  {
    margin-right: 8px;
}
.row.blog-3-cols div:nth-child(2) .blog-card  {
    margin-left: 8px;
}*/

@media (max-width: 1200px){
    .container.container-blog {
        width:992px;
    }
    .post-feed .post-card:nth-child(6n+1) {
        flex-direction: column;
    }
    .blog-title {
        margin: 110px 10px;
    }
}

@media (max-width: 992px){
    .container.container-blog {
        width: 768px;
    }
    .blog-title {
        margin: 80px 10px;
    }

}
@media (max-width: 768px){
    .container.container-blog {
        width: 100%;
    }
    .blog-title {
        margin: 50px 10px;
    }
    .blog-title h1 {
        font-size: 40px;
    }
}





/* Blog opened page */

.blog-opened .photo {
    height: 440px;
    background-size: cover;
    /* margin-bottom:50px; */
}
.blog-opened .blog-title .back {
    height: 29px;
    width: 37px;
    margin-right: 30px;
    margin-top: 6px;
    display:block;
    cursor:pointer;

}
.blog-opened .blog-title {
    margin-top:50px;
    margin-bottom:50px;
    display: flex;
}
.blog-opened .blog-title h1 {
    font-size: 35px;
    color: #1f1267;
    font-weight: 300;
    text-align: center;
}
.blog-opened .blog-title .date {
    font-size: 13px;
    color: #a8a098;
    font-weight: 400;
    margin-top: 24px;
}
.blog-opened .post-content h2{
    font-size: 24px;
    font-weight: 500;
    color: #1f1267;
    margin-top: 10px;
    margin-bottom: 20px;
}
.blog-opened .post-content p{
    margin-bottom: 20px;
    font-size: 17px;
    text-align: justify;
    color: #1f1267;
}
.blog-opened .post-content *:last-child {
    margin-bottom: 30px;
}
.blog-opened .post-content a {
    color: #00aee4;
}
.post-content {
    width: 100%;
    word-wrap: break-word;
}
.post-feed .text .body {
    display: table;
    table-layout: fixed;
    width: 100%;
    font-size:16px;
    color:var(--color-c);
    word-wrap: break-word;
}
/* PAGINATION */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    margin-bottom: 50px;
}

.pagination a {
    display: inline-block;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    color: #555;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s ease;
    background-color: #fff;
}

.pagination a:hover {
    background-color: #f1f1f1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.pagination a.active {
    color: #fff;
    background-color: #00A2FF;
    border-color: #00A2FF;
}

.pagination .dots {
    padding: 8px 16px;
    color: #aaa;
    font-weight: 500;
}

.pagination a.prev,
.pagination a.next {
    /*font-weight: bold;*/
    /*color: #00A2FF;*/
}

.pagination a.prev:hover,
.pagination a.next:hover {
    background-color: #f1f1f1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.pagination a:disabled {
    color: #aaa;
    background-color: #f9f9f9;
    border-color: #ddd;
    cursor: not-allowed;
}

@media (max-width: 600px) {
    .pagination {
        flex-wrap: wrap;
        gap: 8px;
    }
}
