.ctgl-news-grid-wrapper {
    width: 100%;
}

.ctgl-news-grid-wrapper.ctgl-news-grid-loading {
    pointer-events: none;
}

.ctgl-news-grid-filters {
    margin-bottom: 24px;
}

.ctgl-news-grid-filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0;
    padding: 0;
    border: 0;
}

.ctgl-news-grid-filter-option {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.ctgl-news-grid-filter-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ctgl-news-grid-filter-option span {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    border: 1px solid #d6d6d6;
    border-radius: 999px;
    background: #ffffff;
    color: #222222;
    font-size: 14px;
    line-height: 1.2;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.ctgl-news-grid-filter-option input:checked + span {
    background: #1c3f94;
    border-color: #1c3f94;
    color: #ffffff;
}

.ctgl-news-grid-list {
    min-height: 120px;
}

.ctgl-news-grid-wrapper.ctgl-news-grid-loading .ctgl-news-grid-list {
    opacity: 0.55;
}

.ctgl-news-grid-list-inner {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.ctgl-news-grid-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #ffffff;
    border: 1px solid #e7e7e7;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(19, 32, 68, 0.08);
}

.ctgl-news-grid-card-media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f4f6fb;
}

.ctgl-news-grid-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ctgl-news-grid-card-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
}

.ctgl-news-grid-card-terms {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ctgl-news-grid-card-term {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef3ff;
    color: #1c3f94;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
}

.ctgl-news-grid-card-title {
    margin: 0;
    font-size: 24px;
    line-height: 1.3;
}

.ctgl-news-grid-card-title a {
    color: #202020;
    text-decoration: none;
}

.ctgl-news-grid-card-date {
    color: #5f6780;
    font-size: 14px;
    font-weight: 600;
}

.ctgl-news-grid-card-summary {
    margin: 0;
    color: #424242;
    font-size: 15px;
    line-height: 1.7;
}

.ctgl-news-grid-card-link {
    margin-top: auto;
    color: #1c3f94;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.ctgl-news-grid-empty {
    padding: 24px;
    border: 1px dashed #d6d6d6;
    border-radius: 16px;
    text-align: center;
}

.ctgl-news-grid-pagination {
    margin-top: 28px;
}

.ctgl-news-grid-pagination-sets {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.ctgl-news-grid-page,
.ctgl-news-grid-load-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    padding: 11px 16px;
    border: 1px solid #d6d6d6;
    border-radius: 12px;
    background: #ffffff;
    color: #1f1f1f;
    text-decoration: none;
    cursor: pointer;
}

.ctgl-news-grid-page.active,
.ctgl-news-grid-load-more {
    border-color: #1c3f94;
    background: #1c3f94;
    color: #ffffff;
}

@media (max-width: 1024px) {
    .ctgl-news-grid-list-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .ctgl-news-grid-list-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .ctgl-news-grid-card-body {
        padding: 20px;
    }

    .ctgl-news-grid-card-title {
        font-size: 20px;
    }
}