﻿.posty-post-grid {
    display: grid;
    gap: 24px;
}

.posty-post-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
}

.posty-post-card-featured {
    min-height: 420px;
    background-size: cover;
    background-position: center;
    background-color: #0a1e35;
    color: #ffffff;
    display: flex;
    align-items: flex-end;
}

.posty-post-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(4, 18, 36, 0.25) 0%, rgba(2, 10, 20, 0.82) 72%);
}

.posty-post-card-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 28px 32px;
}

.posty-badge-featured {
    display: inline-block;
    margin-bottom: 14px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #35b8ff;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
}

.posty-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.3;
    opacity: 0.95;
}

.posty-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    background: #2f4ea1;
    color: #ffffff;
}

.posty-title {
    margin: 0 0 12px;
    font-size: 42px;
    line-height: 1.08;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.posty-title a {
    color: inherit;
    text-decoration: none;
}

.posty-title a:hover {
    opacity: 0.86;
}

.posty-excerpt {
    margin: 0;
    font-size: 28px;
    line-height: 1.45;
    max-width: 90%;
}

.posty-readmore {
    display: inline-flex;
    align-items: center;
    margin-top: 18px;
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
    color: #2aa0e5;
}

.posty-readmore-button {
    margin-top: 24px;
    background: #ffffff;
    color: #2f4ea1;
    border-radius: 14px;
    padding: 14px 24px;
}

.posty-post-card-compact {
    display: grid;
    grid-template-columns: 300px 1fr;
    align-items: stretch;
    background: #ffffff;
    color: #0f1e30;
    box-shadow: 0 8px 28px rgba(14, 35, 66, 0.1);
}

.posty-post-card-compact .posty-post-card-content {
    padding: 24px 28px;
}

.posty-post-card-compact .posty-title {
    font-size: 34px;
    margin-bottom: 10px;
}

.posty-post-card-compact .posty-excerpt {
    color: #415063;
    font-size: 24px;
    max-width: 100%;
}

.posty-post-card-compact .posty-readmore {
    margin-top: 0;
}

.posty-thumb {
    position: relative;
    display: block;
    align-self: stretch;
    height: 100%;
    min-height: 220px;
    background: #d7dee8;
    overflow: hidden;
}

.posty-thumb img,
.posty-thumb-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.posty-footer {
    margin-top: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.posty-reading-time {
    color: #6a7585;
    font-size: 16px;
}

.posty-post-grid-empty {
    border-radius: 12px;
    padding: 20px;
    background: #f5f7fa;
    color: #3f4f63;
}

.posty-pagination {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.posty-pagination .page-numbers {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: #354a9a;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.posty-pagination .page-numbers.current {
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.posty-latest-news {
    background: #ffffff;
    border-radius: 18px;
    padding: 26px 24px;
    box-shadow: 0 8px 28px rgba(14, 35, 66, 0.1);
}

.posty-latest-news-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px;
    color: #23419a;
    font-size: 38px;
    line-height: 1.1;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.015em;
}

.posty-latest-news-heading-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
}

.posty-latest-news-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.posty-latest-news-item {
    padding: 18px 0 16px;
    border-bottom: 1px solid #d7d9df;
}

.posty-latest-news-item:first-child {
    padding-top: 0;
}

.posty-latest-news-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.posty-latest-news-date-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #5f6a7d;
}

.posty-latest-news-calendar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.posty-latest-news-date {
    font-size: 15px;
    line-height: 1.3;
    color: inherit;
}

.posty-latest-news-title {
    margin: 0;
    font-size: 33px;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    font-weight: 800;
    color: #07112b;
}

.posty-latest-news-title a {
    color: inherit;
    text-decoration: none;
}

.posty-latest-news-title a:hover {
    opacity: 0.82;
}

.posty-category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.posty-category-chip {
    appearance: none;
    border: 0;
    border-radius: 12px;
    background: #f3f4f7;
    color: #1f3158;
    padding: 12px 18px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.posty-category-chip:hover {
    background: #e7eaf3;
}

.posty-category-chip.is-active {
    background: #2f4ea1;
    color: #ffffff;
}

.posty-post-grid.posty-grid-fade-out,
.posty-cards-grid.posty-grid-fade-out {
    opacity: 0.45;
    transform: translateY(4px);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.posty-post-grid.posty-grid-fade-in,
.posty-cards-grid.posty-grid-fade-in {
    opacity: 0;
    transform: translateY(6px);
}

.posty-post-grid.posty-grid-fade-in.is-visible,
.posty-cards-grid.posty-grid-fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.posty-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.posty-grid-card {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(14, 35, 66, 0.12);
    display: flex;
    flex-direction: column;
}

.posty-grid-card-thumb {
    display: block;
    position: relative;
    height: 170px;
    overflow: hidden;
}

.posty-grid-card-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.posty-grid-card-thumb-fallback {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, #dbe1eb, #f0f3f8);
}

.posty-grid-card-content {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100%;
}

.posty-grid-card-title {
    margin: 0;
    font-size: 16px;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    font-weight: 800;
    color: #2f4ea1;
}

.posty-grid-card-title a {
    color: inherit;
    text-decoration: none;
}

.posty-grid-card-title a:hover {
    opacity: 0.82;
}

.posty-grid-card-meta {
    margin: 0;
    color: #7c8290;
    font-size: 14px;
    line-height: 1.4;
}

.posty-grid-card-excerpt {
    margin: 4px 0 0;
    color: #5f6675;
    font-size: 18px;
    line-height: 1.45;
}

.posty-grid-card-readmore {
    margin-top: auto;
    color: #1ea3e6;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
}

.posty-grid-card-readmore:hover {
    opacity: 0.84;
}

@media (max-width: 1024px) {
    .posty-title {
        font-size: 34px;
    }

    .posty-excerpt {
        font-size: 22px;
    }

    .posty-post-card-compact {
        grid-template-columns: 240px 1fr;
    }

    .posty-post-card-compact .posty-title {
        font-size: 30px;
    }

    .posty-latest-news {
        padding: 22px 20px;
    }

    .posty-latest-news-heading {
        font-size: 30px;
        margin-bottom: 16px;
    }

    .posty-latest-news-title {
        font-size: 26px;
    }

    .posty-category-chip {
        padding: 11px 16px;
        font-size: 14px;
    }

    .posty-cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .posty-grid-card-excerpt {
        font-size: 17px;
    }
}

@media (max-width: 767px) {
    .posty-post-card-featured {
        min-height: 360px;
    }

    .posty-post-card-content {
        padding: 20px;
    }

    .posty-title {
        font-size: 28px;
    }

    .posty-excerpt {
        font-size: 18px;
        max-width: 100%;
    }

    .posty-post-card-compact {
        grid-template-columns: 1fr;
    }

    .posty-thumb {
        min-height: 180px;
    }

    .posty-post-card-compact .posty-title {
        font-size: 26px;
    }

    .posty-post-card-compact .posty-excerpt {
        font-size: 17px;
    }

    .posty-readmore {
        font-size: 18px;
    }

    .posty-latest-news {
        border-radius: 14px;
        padding: 18px 14px;
    }

    .posty-latest-news-heading {
        font-size: 22px;
        gap: 8px;
    }

    .posty-latest-news-heading-icon {
        font-size: 16px;
    }

    .posty-latest-news-item {
        padding: 14px 0;
    }

    .posty-latest-news-date {
        font-size: 14px;
    }

    .posty-latest-news-title {
        font-size: 18px;
        line-height: 1.25;
    }

    .posty-category-filter {
        gap: 8px;
    }

    .posty-category-chip {
        padding: 10px 14px;
        font-size: 13px;
        border-radius: 10px;
    }

    .posty-cards-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .posty-grid-card-thumb {
        height: 190px;
    }

    .posty-grid-card-content {
        padding: 14px 14px 16px;
    }

    .posty-grid-card-excerpt {
        font-size: 16px;
    }
}
