.blogItemlist-block {
    display: flex;
    padding: 60px 00px;
    gap: 11px;
    flex-wrap: wrap;
    color: #fff;
    justify-content: center;
}
.blogItemlistRow {
    display: flex;
    flex-wrap: wrap;
    gap: 4px; 
    margin-bottom: 4px;
}
.blogItemlistCol {
    display: flex
;
    gap: 20px;
    flex-wrap: wrap;

}
#blogItemlistContent {
    max-width: 140%;;
    margin: 0 auto !important;
}
#blogItemlistContent > p:first-of-type {
    margin-top: 60px !important;
    margin-bottom: 40px !important; 
}
.blogItemlist-item  img {
    max-width: 100%; 
    object-fit: cover;
    aspect-ratio: 3 / 2 !important;
    width: 100%;
    min-height: 191px;
}
.blogItemlist-item {
    display: flex;
    width: 31%;
    max-width: calc(25% - 15px);
    min-width: 350px;
    padding: 16px;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex: 1 0 0;
    border-radius: 8px; 
    border: 1px solid #e0e0e0; 
    background: #fff; 
    text-decoration: none;
    transition: all .3s;
    flex-grow: 1; 
}

.blogItemlist-item:hover {
    border-color: #cccccc;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

a.goToBlog {
    display: flex;
    padding: 16px 24px; 
    justify-content: center;
    align-items: center;
    gap: 10px;
    align-self: stretch;
    border-radius: 8px; 
    background: #E6CF96;
    color: #232323; 
    text-align: center;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 140%;
    max-width: fit-content;
    margin: auto;
    margin-top: 40px;
    text-decoration: none;
    transition: all .3s; 
}
a.goToBlog:hover {
    background: #d6be82;
}
.blogItemlist-block .wp-block-post-content {
    color: #232323; 
    font-size: 18px; 
    line-height: 1.6;
    margin-bottom: -30px; 
}
.blogItemlist-item .wp-block-post-content p {
    margin-bottom: 24px;
}
.blogItemlist-item  .wp-block-post-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1E1E1E; 
    margin-top: 48px; 
    margin-bottom: 20px; 
}

.blogItemlist-item .wp-block-post-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1E1E1E;
    margin-top: 32px;
    margin-bottom: 16px;
}
#blogItemlistSection {
    min-height: calc(100vh - 115px) !important; 
    display: flex;
    flex-direction: column;
}
@media screen and (min-width: 999px) {
.blogItemlist-item > p:first-of-type {
    min-height: 3.5em;
}
} 
@media screen and (max-width: 749px) {
    #blogItemlistContent {
        max-width: 100%;
    }
    .blogItemlistRow .blogItemlistCol  {
        width: 100%;
        gap: 4px;
        display: flex
    ;
        flex-direction: column;
        max-width: 100% !important;
        padding: 0 16px !important;
    }
    .blogItemlistRow .blogItemlistCol:first-of-type img, .blogItemlistRow .blogItemlistCol:last-of-type .blogItemlist-item:last-of-type img {
        width: 100% !important;
        height: auto !important; 
        object-fit: cover;
        max-width: 100% !important;
        line-height: 1em;
    }
  }


@media screen and (max-width: 479px) {
    .blogItemlistRow .blogItemlistCol  {
        width: 100%;
        gap: 16px;
        display: flex
    ;
        flex-direction: column;
        max-width: 100% !important;
        padding: 0px !important;
    }
    .blogItemlist-item {
        display: flex
    ;
    width: calc(100%) !important;
        max-width: calc(100% - 72px) !important;
        margin: 0px 20px;
        min-width: 300px;
    }
    .blogLatestSidebar-item a {
        
    margin: 0 20px 20px;
    }
    #blogItemlistContent > p:first-of-type { 
        margin-top: 00px !important; 
        margin-bottom: 40px !important;
    }
}

@media (max-width: 781px) {
    .single .blogItemlist-block {
        padding: 40px 00px !important;
    }
}
@media (max-width: 781px) {
    .single .blogItemlist-block {
        padding: 40px 00px !important;
    }
}
.single-post .wp-block-post-title {
    margin-top: 130px !important; 
}

@media screen and (max-width: 768px) {
    .single-post .wp-block-post-title,
    .single-post .wp-block-post-content,
    .single-post .wp-block-buttons {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    .single-post .wp-block-post-title {
        margin-top: 30px !important; 
    }
}

.blogItemlist-item p {
    color: #213E60 !important;
    text-decoration: none !important;
}

.blogItemlist-item p:first-of-type {
    font-weight: 600 !important;
    font-size: 18px !important;
}

.blogItemlist-item p:last-of-type {
    display: inline-flex !important;
    padding: 12px 24px !important;
    background-color: #ECD59F !important;
    color: #213E60 !important; 
    border-radius: 8px !important;
    font-weight: 500 !important;
    font-size: 15px !important;
    justify-content: center;
    align-items: center;
    margin-bottom: 0 !important;
    transition: background-color 0.3s ease !important;
}

.blogItemlist-item:hover p:last-of-type {
    background-color: #ecdfc1 !important;
}
.blogItemlistCol {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}
@media screen and (max-width: 768px) {
    /* 1. Centrowanie kontenera z listą artykułów */
    #blogLatestSidebarContent {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* 2. Wyśrodkowanie samych linków wewnątrz listy */
    .blogLatestSidebar-item {
        width: 100%;
        display: flex;
        justify-content: center;
    }
}
#blogLatestSidebarContent h2, 
#blogLatestSidebarContent h3,
.blogSideBarMessage h2 {
    color: #213E60; 
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
}

.blogLatestSidebar-item a {
    display: block;
    padding: 16px 20px;
    margin-bottom: 12px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    color: #213E60; 
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.blogLatestSidebar-item a:hover {
    border-color: #ECD59F; 
    background-color: #fafafa;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transform: translateX(5px); 
}