.blogs {
    display: grid;
    gap: 20px;
    margin-top: 1.25rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cta {
    display: flex;
    align-items: center;
    position: relative;
    margin: 0;
    padding: 10px 18px;
    transition: all 0.2s ease;
    border: none;
    background: none;
    cursor: pointer;
    width: fit-content;
    margin-top: 1rem;
}
  
.cta:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    border-radius: 50px;
    background: #83a7b8;
    width: 45px;
    height: 45px;
    transition: all 0.3s ease;
}

.cta:hover {
    text-decoration: none;
}
  
.cta:hover span {
    color: #ffffff;
}

.cta span {
    position: relative;
    font-family: "Ubuntu", sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .05em;
    color: #000000;
}

.cta span:is(.dark *) {
    color: #f9f9f9;
}
  
.cta svg {
    position: relative;
    top: 0;
    margin-left: 10px;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke: #000000;
    stroke-width: 2;
    transform: translateX(-5px);
    transition: all 0.3s ease;
}
  
.cta:hover:before {
    width: 100%;
    background: #607d8b;
}
  
.cta:hover svg {
    transform: translateX(0);
    stroke: #ffffff;
}
  
.cta:active {
    transform: scale(0.95);
}

.cta-color {
    color: #0d0c0f;
}

.cta-color:is(.dark *) {
    color: #F9F9F9;
}

.paragraph-spacing {
    margin-bottom: 1rem; /* 16px */
    margin-top: 1rem; /* 16px */
}

.admin-panel {
    position: relative;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    min-width: 0;
    width: 100%;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: border-box;
    border-radius: .5rem;
    border: 1px solid #ccc;
    margin-bottom: 1rem;
    margin-top: 1rem;
    box-shadow: 0px 8px 16px #00000033;
    flex-wrap: wrap;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    min-height: 1px;
    padding: 1.25rem;
}

.admin-panel:is(.dark *) {
    background: #252229;
}

select {
    height: 35px;
    padding: 5px 10px;
}

select:is(.dark *) {
    color: black;
}

.note-editor {
    margin: 20px 0;
}

.blog-header {
    display: flex;
    justify-content: space-between;
}

.after::after, .before::before {
    margin: 20px auto;
}

.comment-panel {
    position: relative;
    display: -ms-flexbox;
    display: flex;
    flex-wrap: wrap;
    -ms-flex-direction: column;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    width: 100%;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: border-box;
    border-radius: .5rem;
    border: 1px solid #ccc;
    margin-bottom: 1rem;
    margin-top: 1rem;
    box-shadow: 0px 8px 16px #00000033;
    min-height: 1px;
    padding: 1.25rem;
}

.comment-panel:is(.dark *) {
    background: #252229;
}

.comments {
    display: flex;
    width: 100%;
    gap: 10px;
    flex-wrap: wrap;
}

.comment {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
    border: 1px solid #dee2e6 !important;
    border-radius: .5rem !important;
    background-color: #ffffff;
    margin-top: .5rem;
    padding: .75rem;
}

.comment:is(.dark *) {
    background-color: #0d0c0f;
}

.comment-head {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
}

.comment h4 {
    margin-bottom: 0;
}

.comment p {
    width: 100%;
    margin-left: 10px;
}

.blog-row > a {
    font-weight: 600;
    text-decoration: none;
    grid-column: 1 / -1; /* přes celý první řádek */
}

.blog-row p {
    margin: 0;
    font-size: .95rem;
    color: #000000;
    width: 100%;
}

.blog-row p:is(.dark *) {
    color: #ffffff;
}

.blog-row p a {
    text-decoration: none;
}

.blog-row p a:hover {
    text-decoration: underline;
}

.comment small {
    width: 100%;
    text-align: end;
}

.blog-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.blog-row {
    display: grid;
    grid-template-columns: 1fr 150px 150px;
    grid-template-rows: auto auto;    
    width: 100%;
    border: 1px solid #ccc;
    padding: 10px;
    gap: 8px 15px;
    background: #ffffff;
    border-radius: .5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.15s, box-shadow 0.15s;
}

.blog-row:is(.dark *) {
    background: #0d0c0f;
}

.blog-row > div {
    background: #f6f7fb;
    border-radius: .5rem;
    border: 1px solid #ccc;
    font-size: .9rem;
}

.blog-row > div:is(.dark *) {
    background: #252229;
}

.post-content {
    width: 100%;
}



@media (max-width: 767.98px) {
    .comment-panel {
        flex: none;
    }

    .comments {
        flex-direction: column-reverse;
    }

    .blog-row {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-evenly;
    }

    .blog-row a {
        width: 100%;
    }

}


/******************************/
/*     POSLEDNÍ PŘÍSPĚVEK     */
/******************************/
.latest-posts {
    margin-top: 2.5rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .75rem;
}

.latest-title {
    margin-bottom: .75rem;
    grid-column: 1 / -1;
}

.last-post-card {
    display: flex;
    flex-wrap: wrap;
    align-content: space-between;
    background: #ffffff;
    border: 1px solid #ccc;
    border-radius: .5rem;
    padding: 14px 16px;
    transition: box-shadow .15s ease, transform .15s ease;
}

.last-post-card:is(.dark *) {
    background: #252229;
}

.last-post-card > div {
    width: 100%;
}

.lp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    flex-wrap: wrap;
    margin-bottom: .4rem;
    border-bottom: 1px solid #ccc;
    padding-bottom: .5rem;
}

.lp-title {
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    color: #222;
}

.lp-title:hover {
    text-decoration: underline;
}

.lp-body {
    display: -webkit-box;
    -webkit-line-clamp: 3;   /* počet řádků */
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: .95rem;
    color: #000000;
    line-height: 1.45;
    margin-bottom: .45rem;
}

.lp-body:is(.dark *) {
    color: #ffffff;
}

.lp-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .35rem;
    font-size: .8rem;
    color: #777;
}

.lp-footer a {
    color: #555;
    text-decoration: none;
    font-weight: 500;
}

.lp-footer a:hover {
    text-decoration: underline;
}

.dot {
    font-size: .6rem;
}




@media (max-width: 768px) {
    .latest-posts {
        grid-template-columns: 1fr;
    }

    .blogs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .blogs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}