@charset "utf-8";

/* Copyright ENDEA */

/* --- main --- */

.m-blog-hd h1 {
    margin-top: 40px;
    margin-bottom: 40px;
    color: #313131;
}

/* --- Post --- */

.post {
    padding-top: 20px;
    padding-right: 0px;
}

.post-bcg-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.post-bcg {
    width: 100%;
    overflow: hidden;
    aspect-ratio: 16/9;
    position: relative;
}

.post-bcg img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.post-bcg-info {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: rgba(41, 54, 58, 0.7);
    color: #AAA;
    font-size: 10px;
    border-radius: 5px;
    padding: 2px 5px;
    line-height: 1;
}

.post-info {
    margin: 0;
    padding: 15px 0 12px 0;
    border-top: 0px solid #313131;
    border-bottom: 1px solid #313131;
    border-radius: 0px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.post-info-item {
    padding: 5px 15px 0 0;
    margin-bottom: 5px;
}

.post-info-item-desc {
    font-size: 11px;
}

.post-info-item-data {
    font-size: 13px;
    font-weight: 700;
}

.post-info-author {
    margin-bottom: 0px;
}

.post-info-author .post-info-item-data {
    font-weight: 700;
}

.post-title h1,
.post-title-static h1 {
    position: static;
    margin-top: 20px;
    margin-bottom: 30px;
}

.post h2, .post h3, .post h4  {
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 800;
}

.post h2  {
    padding-bottom: 20px;
    border-bottom: 1px solid #404040;
}

.post p {
    margin: 0 0 20px
}

.post a {
    border-bottom: 2px dotted #16266D;
}

.post ul li, .post ol li {
    margin-bottom: 15px;
    padding-left: 10px;
}

.post b, .post strong {
    font-weight: 800;
}

.post img {
    border-radius: 5px;
    margin-top: 15px;
    margin-bottom: 15px;
}


@media (min-width: 992px) {

    .post {
        padding-left: 30px;
        padding-right: 30px;
        padding-top: 20px;
    }
    
    .post-info {
        margin: 0px 30px 0 30px;
    }

    .post-info-item {
        padding: 5px 25px 0 0;
    }

    .post-bcg-info {
        top: 5px;
        bottom: auto;
        font-size: 11px;
    }
    
    .post-title h1 {
        position: absolute;
        bottom: 0;
        margin-bottom: 0px;
        width: 80%;
        margin-left: 10%;
        margin-right: 10%;
        padding: 30px 35px;
        background: rgba(255, 255, 255, 1);
        z-index: 2;
        border-top-left-radius: 5px;
        border-top-right-radius: 5px;
    }

}

@media (min-width: 1200px) {

    .post-bcg {
        aspect-ratio: auto;
        height: 450px;
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }

    .post_bcg-gradient::before {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        content: "";
        height: 100%;
        width: 100%;
        background: linear-gradient(90deg, rgb(255, 255, 255) 0%, rgba(255,255,255,0) 50%, rgb(255, 255, 255) 100%);
    }
    
}


/* txt boxes */

.box-explanation, .box-thought, .box-tip, .box-warning {
    position: relative;
    padding: 75px 20px 20px;
    margin: 25px 0;
    border-radius: 5px;
}

.box-explanation p:last-of-type,
.box-thought p:last-of-type,
.box-tip p:last-of-type,
.box-warning p:last-of-type
{
    margin-bottom: 0;
}

.box-explanation ul,
.box-explanation ol,
.box-thought ul,
.box-thought ol,
.box-tip ul,
.box-tip ol,
.box-warning ul,
.box-warning ol
{
    margin-top: 10px;
    padding: 0 0 0 20px;
}

.box-explanation {
    background: #16456f;
}
.box-thought {
    background: #196f16;
}
.box-tip {
    background: #a18800;
}
.box-warning {
    background: #962b2b;
}


.box-explanation::before {
    background: url(../img/ic-explain.svg);
}
.box-thought::before {
    background: url(../img/ic-thought.svg);
}
.box-tip::before {
    background: url(../img/ic-tip.svg);
}
.box-warning::before {
    background: url(../img/ic-warning.svg);
}


.box-explanation::before,
.box-thought::before,
.box-tip::before,
.box-warning::before
{
    position: absolute;
    top: 20px;
    left: 20px;
    display: inline-block;
    content: '';
    background-repeat: no-repeat;
    background-size: contain;
    width: 40px;
    height: 40px;
}

@media (min-width: 992px) {

    .box-explanation, .box-thought, .box-tip, .box-warning {
        padding: 30px 30px 30px 85px;
    }

    .box-explanation::before,
    .box-thought::before,
    .box-tip::before,
    .box-warning::before
    {
        top: 30px;
        left: 30px;
        margin-top: 3px;
    }

}

@media (min-width: 1200px) {

    .box-explanation, .box-thought, .box-tip, .box-warning {
        padding: 30px 30px 30px 100px;
    }

    .box-explanation::before,
    .box-thought::before,
    .box-tip::before,
    .box-warning::before
    {
        width: 50px;
        height: 50px;
    }
}


/* --- posts: all (boxes / lists )  --- */

.posts-item {
    border-radius: 15px;
    overflow: hidden;
    padding: 0px;
    transition: all .3s ease-in-out;
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
}

.posts-item:hover,
.posts-item:focus {
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.6);
}

.posts-item-img {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    margin-bottom: 30px;
}

.posts-item-data {
    padding: 0 25px 25px 25px;
}

.posts-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.posts-item-heading h2 {
    font-size: 23px;
    line-height: 1.5;
    font-weight: 700;
    margin: 0;
    text-align: left;
}

.posts-item-category {
    font-size: 14px;
    margin-bottom: 10px;
    color: #16266D;
    font-weight: 700;;
}

.posts-item-part {
    font-size: 15px;
    margin-top: 20px;
}


/* posts: boxes --- */

.posts-boxes {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 32px;
}

.posts-boxes .posts-item {
    width: 100%;
    background: #FFF;
}

@media (min-width: 768px) {

    .posts-boxes {
        flex-direction: row;
    }

    .posts-boxes .posts-item {
        width: calc((100% - 64px) / 3);
    }

}


/* posty: lista --- */

.posts-list .posts-item {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 15px;
}

.posts-list .posts-item-img {
    align-self: center;
}

.posts-list .posts-item-part {
    margin-bottom: 10px;
}


@media (min-width: 484px) {

    .posts-list .posts-item {
        flex-direction: row;
    }

    .posts-list .posts-item-img {
        aspect-ratio: auto;
        width: 150px;
        height: 150px;
        margin-right: 30px;
        margin-bottom: 0;
        align-self: flex-start;
        flex-shrink: 0
    }

    .posts-list .posts-item-data {
        flex-grow: 1
    }

}


.read-also {
    font-weight: bold;
    margin: 40px 0;
}


/* --- promowane posty - sekcja (strona główna) --- */

.promo-posts-section {
    background: none;
    position: relative;
}

.promo-posts-section h2 {
    margin: 40px 0 30px 0;
    padding: 0;
    font-size: 25px;
    text-align: center;
}

.promo-posts-section .posts-item-heading h2 {
    text-align: left;
}


/* posty: zobacz wszystkie */

.posts-see-all {
    text-align: center;
    margin-top: 60px;
    padding-bottom: 20px;
}

.posts-see-all a {
    background: #16266D;
    color: #FFF;
    font-weight: 600;
    padding: 15px 30px;
    transition: all 0.3s ease-in-out;
    border-radius: 10px;
}

.posts-see-all a:hover,
.posts-see-all a:focus
{
    background: #828282;
    color: #fff;
}
