/* UniGo news cards and university filters */
.unigo-news {
    width: 100%;
    min-width: 0;
}

.unigo-news .university-scroll {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px 0 16px;
    margin-bottom: 8px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.unigo-news .university-scroll button {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 10px 16px;
    border: 0;
    border-radius: 12px;
    background: #fff;
    color: #3C61C9;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
    box-shadow: none;
    transition: background-color .2s ease, color .2s ease;
}

.unigo-news .university-scroll button:hover {
    background: #f0f3ff;
    color: #3C61C9;
    border: 0;
    box-shadow: none;
}

.unigo-news .university-scroll button.active,
.unigo-news .university-scroll button.active:hover {
    background: #3C61C9;
    color: #fff;
    border: 0;
    box-shadow: none;
}

.unigo-news .university-scroll button:focus-visible,
.unigo-news a.unigo-card:focus-visible {
    outline: 2px solid #3C61C9;
    outline-offset: 3px;
}

.unigo-news .unigo-news-grid {
    display: grid;
    grid-template-columns: repeat(var(--unigo-desktop-columns, 3), minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
    width: 100%;
}

.unigo-news .unigo-card,
.unigo-news a.unigo-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    background: #fff;
    border: 0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: none;
    text-decoration: none;
    color: inherit;
}

.unigo-news a.unigo-card { cursor: pointer; }
.unigo-news .unigo-card:not(a) { cursor: default; }

.unigo-news .unigo-card:hover,
.unigo-news .unigo-card:active,
.unigo-news .unigo-card:focus {
    border: 0;
    background: #fff;
    box-shadow: none;
    color: inherit;
    text-decoration: none;
    transform: none;
}

.unigo-news .unigo-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f1f3f7;
    flex-shrink: 0;
}

.unigo-news .unigo-image img,
.unigo-news .unigo-card:hover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transform: none;
}

.unigo-news .unigo-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 12px;
    padding: 16px;
    min-width: 0;
}

.unigo-news .unigo-message {
    margin: 0;
    padding: 0;
    color: #252525;
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.45;
    text-align: left;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    overflow: hidden;
}

.unigo-news .unigo-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    column-gap: 10px;
    row-gap: 4px;
    width: 100%;
    margin-top: auto;
}

.unigo-news .unigo-source,
.unigo-news .unigo-date {
    margin: 0;
    padding: 0;
    color: #3C61C9;
    font-family: inherit;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    text-align: left;
    text-decoration: none;
}

.unigo-news .unigo-source { min-width: 0; overflow-wrap: anywhere; }
.unigo-news .unigo-date { white-space: nowrap; margin-left: auto; }

.unigo-news .unigo-status {
    grid-column: 1 / -1;
    padding: 28px 16px;
    margin: 0;
    color: #777;
    font-size: 14px;
    text-align: center;
}

@media (max-width: 767px) {
    .unigo-news .unigo-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
    .unigo-news .unigo-content { padding: 14px; }
    .unigo-news .university-scroll { gap: 6px; }
    .unigo-news .university-scroll button { padding: 9px 14px; }
}

@media (max-width: 560px) {
    .unigo-news .unigo-news-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }
    .unigo-news .unigo-card { border-radius: 16px; }
    .unigo-news .unigo-content { padding: 16px; gap: 12px; }
    .unigo-news .unigo-message { font-size: 13px; line-height: 1.5; }
    .unigo-news .university-scroll { padding-bottom: 14px; }
}
/* Tablet layout */

@media (min-width: 768px) and (max-width: 1100px) {
    .unigo-news .unigo-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile layout */

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