.tgs-archive-page {
    padding: 60px 0 60px;
}

.tgs-archive-wrap {
    width: min(1320px, calc(100% - 32px));
    margin: 0 auto;
}

.tgs-archive-header {
    margin-bottom: 40px;
}

.tgs-archive-title {
    margin: 0;
    color: #1f3e84;
    font-size: clamp(26px, 2.1vw, 36px);
    line-height: 1.2;
    font-weight: 400;
    text-align: center;
}

.tgs-archive-description {
    margin-top: 8px;
    color: #5c667f;
    font-size: 15px;
    line-height: 1.55;
}

.tgs-post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px 26px;
}

.tgs-post-card {
    margin: 0;
}

.tgs-post-media {
    position: relative;
}

.tgs-post-thumb-link {
    display: block;
    border-radius: 24px;
    overflow: hidden;
    line-height: 0;
    background: #efefef;
}

.tgs-post-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.tgs-post-thumb--placeholder {
    min-height: 240px;
    background: linear-gradient(135deg, #f3f4f8 0%, #e9edf5 100%);
}

.tgs-post-date-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 100px;
    border-radius: 14px;
    background: linear-gradient(180deg, #f12d2d 0%, #cb001e 100%);
    color: #fff;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 8px 6px;
    box-shadow: 0 10px 22px rgba(190, 0, 26, 0.25);
    z-index: 2;
    gap: 8px;
}

.tgs-post-date-day {
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.tgs-post-date-month {
    margin-top: 3px;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.03em;
    line-height: 1;
}

.tgs-post-content {
    padding-top: 16px;
}

.tgs-post-title {
    margin: 0;
    font-size: 24px;
    line-height: 1.22;
    font-weight: 400;
}

.tgs-post-title a {
    color: #1f4f9b;
    text-decoration: none;
}

.tgs-post-title a:hover {
    color: #123978;
}

.tgs-post-excerpt {
    margin-top: 12px;
    color: #5a6280;
    font-size: 16px;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-height: calc(1.65em * 2);
}

.tgs-post-pagination {
    margin-top: 36px;
}

.tgs-post-pagination-summary {
    margin: 0 0 18px;
    text-align: center;
    color: #2a2f3a;
    font-size: 16px;
    line-height: 1.4;
}

.tgs-post-pagination-summary strong {
    font-weight: 700;
}

.tgs-post-pagination-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.tgs-post-pagination-arrow,
.tgs-post-pagination-page {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 1px solid #edf0f5;
    background: #f7f8fb;
    color: #2a2f3a;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.tgs-post-pagination-arrow {
    width: 42px;
    height: 42px;
    background: #fff;
    color: #235da7;
    box-shadow: 0 2px 8px rgba(20, 52, 104, 0.12);
}

.tgs-post-pagination-arrow svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.tgs-post-pagination-page.current {
    background: #f6a21a;
    border-color: #f6a21a;
    color: #fff;
    font-weight: 700;
}

.tgs-post-pagination-arrow.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.tgs-post-pagination-page.dots {
    background: #f7f8fb;
    color: #2a2f3a;
    pointer-events: none;
}

.tgs-post-pagination-page:hover,
.tgs-post-pagination-arrow:hover {
    text-decoration: none;
    border-color: #d8deea;
    background: #eef3fb;
    color: #235da7;
}

.tgs-post-pagination-page.current:hover {
    background: #f6a21a;
    border-color: #f6a21a;
    color: #fff;
}

.tgs-post-empty {
    color: #5a6280;
    font-size: 16px;
    line-height: 1.5;
}

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

@media (max-width: 767px) {
    .tgs-archive-page {
        padding-top: 20px;
    }

    .tgs-archive-wrap {
        width: min(1320px, calc(100% - 20px));
    }

    .tgs-post-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .tgs-post-title {
        font-size: clamp(20px, 7vw, 30px);
    }

    .tgs-post-excerpt {
        font-size: 15px;
        margin-top: 10px;
    }

    .tgs-post-date-badge {
        width: 85px;
    }

    .tgs-post-date-day {
        font-size: 24px;
    }

    .tgs-post-date-month {
        font-size: 14px;
    }
}
