/* ==== Article ==== */

.site-main--article .hero__inner {
    max-width: 37.25rem;
}

/* Article hero – prvý riadok title v accent farbe */
.site-main--article .hero__title::first-line {
    color: var(--fires);
}

.site-main--article-grow .hero__title::first-line {
    color: var(--green);
}

/* Article hero – perex max 2 riadky */
.site-main--article .hero__text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;

    overflow: hidden;
    text-overflow: ellipsis;
}

.site-main--article.site-main--category .hero__text {
    display: block;
    -webkit-box-orient: initial;
    -webkit-line-clamp: unset;
    overflow: visible;
    text-overflow: clip;
}

.article-content {
    display: flex;
    padding: 10rem 0;
    flex-direction: column;
    align-items: center;
    gap: 10rem;
    align-self: stretch;
    border-top: 15px solid var(--fires);
}

.site-main--article-grow .article-content {
    border-top-color: var(--green);
}

.site-main--article-grow .article-content__back-link,
.site-main--article-grow .article-related__title,
.site-main--article-grow .post-card__title {
    color: var(--green);
}

.site-main--article-grow .article-related {
    border-top-color: var(--green);
}

.entry-content p {
    margin: revert;
}

.entry-content p:last-child {
    margin-bottom: 0;
}

/* default: 2 stĺpce */
.article-content__grid.has-media {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* bez obrázka: jeden stĺpec, centrovaný */
.article-content__grid.no-media {
    display: grid;
    grid-template-columns: 1fr;
}

.article-content__grid.no-media .article-content__body {
    max-width: 760px;
    margin-inline: auto;
}

.article-content__body {
    display: flex;
    flex-direction: column;
    gap: 3.12rem;
}

.article-content__image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 1.5rem;
    object-fit: cover;
}

.article-content__prose > *:first-child {
    margin-top: 0;
}

.article-content__meta {
    padding-top: 1.25rem;
    border-top: 2px solid #E4E4E4;
    display: grid;
    grid-template-columns: auto auto 1fr;
    gap: 3rem;
    align-items: center;
}

.article-content__meta-label {
    font-size: 0.875rem;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.article-content__meta-value {
    font-size: 0.875rem;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.article-content__back-icon {
    display: inline-flex;
}

.article-content__back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--fires);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
}

.article-content__back-link:hover {
    text-decoration: underline;
}

/* ==== Related section ==== */

.article-related {
    display: flex;
    padding: 10rem 0;
    flex-direction: column;
    align-items: center;
    gap: 10rem;
    align-self: stretch;
    border-top: 15px solid var(--fires);
}

.article-related__header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.625rem;
    align-self: stretch;
}

.article-related__label {
    font-size: 1.375rem;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.article-related__title {
    color: var(--fires);
    font-size: 2.625rem;
    font-style: normal;
    font-weight: 900;
    line-height: 120%;
}

.article-related__text {
    font-size: 1rem;
    font-style: normal;
    font-weight: 500;
    line-height: 140%;
}

.article-related__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3.12rem;
    margin-top: 2.5rem;
}

.article-related__footer {
    display: flex;
    justify-content: center;
    margin-top: 3.12rem;
    align-items: stretch;
}

/* ==== Post card ==== */

.post-card {
    border-radius: 0.5rem;
    background: var(--Gray, #F5F5F5);
    overflow: hidden;
    box-shadow: 4px 5px 0 2px rgba(6, 32, 63, 0.23);

    height: 100%;
    display: flex;
    flex-direction: column;
}

.post-card__media {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.post-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.article-related__header-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.625rem;
    align-self: stretch;
}

.post-card__body {
    display: flex;
    padding: 1.875rem 1.875rem 2.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.875rem;
    align-self: stretch;

    background: rgba(245, 245, 245, 1);
    flex: 1;
}

.post-card__meta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.post-card__pill {
    display: flex;
    padding: 0.25rem 0.5rem;
    align-items: flex-start;
    border-radius: 0.25rem;
    background: var(--white);

    font-size: 0.875rem;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    color: #000;
    text-decoration: none;
}

.post-card__date {
    display: flex;
    padding: 0.25rem 0.5rem;
    align-items: flex-start;

    font-size: 0.875rem;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.post-card__title {
    font-family: "Red Hat Display";
    font-size: 1.375rem;
    font-style: normal;
    font-weight: 900;
    line-height: normal;
    letter-spacing: -0.01375rem;
    color: var(--fires);
}

.post-card__title a {
    text-decoration: none;
    color: inherit;
}

.post-card__excerpt {
    font-size: 1rem;
    font-style: normal;
    font-weight: 500;
    line-height: 140%;
    color: var(--dark-blue);
width: -webkit-fill-available;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;

    overflow: hidden;
    text-overflow: ellipsis;
}

.post-card__cta {
    margin-top: auto;
}

/* ==== Category archive loop ==== */

.category-loop {
    padding: 10rem 0;
    border-top: 15px solid var(--fires);
}

.category-loop__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

/* Pagination (FIRES style) */
.category-loop__pagination {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
}

.category-loop__pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.75rem;
    height: 2.75rem;
    padding: 0 0.75rem;

    border-radius: 0.5rem;
    background: var(--Gray, #F5F5F5);
    color: var(--dark-blue, #06203F);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.875rem;

    box-shadow: 3px 3px 0 0px rgba(6, 32, 63, 0.23);
}

.category-loop__pagination .page-numbers + .page-numbers {
    margin-left: 0.75rem;
}

.category-loop__pagination .page-numbers:hover {
    color: var(--fires);
    border-color: rgba(237, 95, 85, 0.45);
}

.category-loop__pagination .page-numbers.current {
    background: var(--fires);
    color: #fff;
    border-color: var(--fires);
}

.category-loop__pagination .page-numbers.dots {
    box-shadow: none;
    border-color: transparent;
    background: transparent;
    min-width: auto;
    padding: 0 0.25rem;
}

.category-loop__pagination .page-numbers.prev,
.category-loop__pagination .page-numbers.next {
    padding: 0 1rem;
}

.category-loop__empty {
    padding: 2rem 0;
    text-align: center;
    opacity: 0.85;
}

/* ==== News categories sections ==== */

.news-category {
    border-top: 15px solid var(--fires);
    padding: 10rem 0;
}

.news-category__intro-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 0.625rem;
    align-self: stretch;
}

.news-category__label {
    font-size: 1.375rem;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.news-category__title {
    margin: 0;
    color: var(--fires);
}

.news-category__text {
    font-size: 1rem;
    font-style: normal;
    font-weight: 500;
    line-height: 140%;
	margin-bottom: 30px;
}

.news-category__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.news-category__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    padding: 3.12rem 0;
}

.news-category__footer {
    display: flex;
    justify-content: center;
}

/* ==== Responsive ==== */

@media (max-width: 900px) {
    .article-related__grid {
        grid-template-columns: 1fr;
    }

    .article-content__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .news-category__grid {
        grid-template-columns: 1fr;
    }

    .news-category__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .category-loop__grid {
        grid-template-columns: 1fr;
    }
        .article-content__grid.has-media {
            grid-template-columns: 1fr;
        }
}

@media (max-width: 600px) {
    .article-content__meta {
        grid-template-columns: 1fr;
        gap: 1rem;
        align-items: start;
    }
        .article-related__title {
            font-size: 2rem;
        }

}
