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

.custom-select {
    position: relative;
    display: flex;
    justify-content: flex-end;
    text-align: center;
    min-width: 175px;
    min-width: auto;
}

.select-options {
    flex-wrap: wrap;
    position: absolute;
    background-color: #f9f9f9;
    box-shadow: 0px 0px 10px 0px #9E9E9E;
    border-radius: .5rem;
    z-index: 1;
    right: 0;
    margin-top: 25px;
    text-align: left;
    font-size: small;
}

.select-options a {
    color: black;
    padding: 12px 16px;
    display: block;
    cursor: pointer;
    width: 100%;
    border-bottom: 1px solid #9E9E9E; 
    border-radius: .5rem .5rem 0 0;
}

.select-options a:hover {
    background-color: #f1f1f1;
    text-decoration: none;
}


article {
    margin-bottom: 50px;
}

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

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

.article img {
    border-top-left-radius: .25rem; /* 4px */
    border-bottom-left-radius: .25rem; /* 4px */
    max-width: 100px;
    height: fit-content; 
    object-fit: contain; 
    margin-right: 5px
}

.article-text {
    display: flex;
    flex-wrap: wrap;
    padding: .5rem; /* 8px */
    flex: 2;
}

.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 */
}

.article-item {
    display: flex;
    display: -ms-flexbox;
    flex-wrap: wrap;
    align-items: center;
    -ms-flex-direction: column;
    flex-direction: column;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    margin-top: .75rem; /* 12px */    
    width: 100%;
    min-height: 1px;
    padding: 1.25rem;
    position: relative;
    min-width: 0;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: border-box;
    border-radius: .5rem;
    border: 1px solid #ccc;
    margin-bottom: 1rem;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
}

.article-item:is(.dark *) {
    background: #252229;
}

.article-item p {
    width: 100%;
}

.article-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.author-margin-right {
    margin-right: .5rem;
}

.date-margin-left {
    margin-left: .5rem;
}

.article-section {
    padding: 0 15px;
}

.article-thumbnail {
    width: 100px;
    height: 150px;
    margin:5px;
}

.article-content {
    padding: 10px;
    flex: 1;
}

label {
    width: 100px;
}




/******************************/
/*     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;
    }
}



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


@media (max-width: 768px) {
    .articles {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

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