.gis-news-page,
.gis-news-detail-page {
    background: #f6f8fc;
}

.gis-news-hero {
    background: linear-gradient(135deg, #081a3a 0%, #0f62fe 100%);
    color: #fff;
    padding: 88px 0 118px;
    text-align: center;
}

.gis-news-hero span {
    color: #67e8f9;
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.gis-news-hero h1 {
    color: #fff;
    font-size: 56px;
    margin: 12px 0;
}

.gis-news-hero p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    margin: 0 auto;
    max-width: 720px;
}

.gis-news-content {
    margin-top: -58px;
    padding-bottom: 80px;
}

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

.gis-news-card {
    background: #fff;
    border: 1px solid rgba(15, 98, 254, 0.1);
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(16, 24, 40, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.gis-news-card-image {
    aspect-ratio: 16 / 10;
    background: #d6e4ff center/cover;
    overflow: hidden;
    position: relative;
}

.gis-news-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gis-news-card:hover .gis-news-card-image img {
    transform: scale(1.05);
}

.gis-news-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    background: #0f62fe;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(15, 98, 254, 0.32);
}

/* Source flags (Company News / External Technology News) */
.gis-news-flags {
    margin-bottom: 12px;
}

.gis-news-flag {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 11.5px;
    font-weight: 700;
    gap: 6px;
    letter-spacing: 0.02em;
    padding: 5px 11px;
    text-transform: uppercase;
}

.gis-news-flag.company {
    background: rgba(15, 98, 254, 0.1);
    color: #0f45c0;
}

.gis-news-flag.external {
    background: rgba(16, 122, 87, 0.1);
    color: #0f7a4f;
}

.gis-news-readmore {
    align-self: flex-start;
    margin-top: auto;
}

/* Toolbar: search + sort */
.gis-news-toolbar {
    align-items: center;
    background: #fff;
    border: 1px solid rgba(15, 98, 254, 0.1);
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(16, 24, 40, 0.06);
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 28px;
    padding: 16px 18px;
}

.gis-news-search {
    align-items: center;
    background: #f6f8fc;
    border: 1px solid #e4e9f2;
    border-radius: 10px;
    display: flex;
    flex: 1 1 320px;
    gap: 10px;
    max-width: 520px;
    padding: 10px 14px;
}

.gis-news-search i {
    color: #8a90a2;
}

.gis-news-search input {
    background: transparent;
    border: 0;
    color: #1a2540;
    flex: 1;
    font-size: 15px;
    outline: none;
}

.gis-news-toolbar-right {
    align-items: center;
    display: flex;
    gap: 12px;
}

.gis-news-count {
    color: #667085;
    font-size: 13px;
    font-weight: 700;
}

.gis-news-sort-label {
    color: #667085;
    font-size: 13px;
    font-weight: 700;
    margin: 0;
}

.gis-news-sort {
    background: #fff;
    border: 1px solid #e4e9f2;
    border-radius: 10px;
    color: #1a2540;
    font-size: 14px;
    font-weight: 600;
    padding: 9px 12px;
}

/* Skeleton loaders */
.gis-news-skeleton {
    pointer-events: none;
}

.gis-skel {
    background: linear-gradient(90deg, #eef2f9 25%, #e2e8f4 37%, #eef2f9 63%);
    background-size: 400% 100%;
    animation: gis-skel-shine 1.4s ease infinite;
    border-radius: 6px;
}

.gis-news-skeleton .gis-news-card-image.gis-skel {
    border-radius: 0;
}

.gis-skel-line {
    height: 12px;
    margin-bottom: 10px;
}

.gis-skel-title {
    height: 22px;
    margin-bottom: 14px;
    width: 90%;
}

.gis-skel-btn {
    height: 40px;
    margin-top: 14px;
    width: 130px;
}

@keyframes gis-skel-shine {
    0% { background-position: 100% 0; }
    100% { background-position: 0 0; }
}

/* Load more */
.gis-news-load-more-wrap {
    margin-top: 40px;
    text-align: center;
}

.gis-news-empty i {
    color: #0f62fe;
    font-size: 34px;
    margin-bottom: 14px;
}

.gis-news-error i {
    color: #d9534f;
}

.gis-news-empty .theme-btn {
    margin-top: 18px;
}

.gis-news-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px;
}

.gis-news-meta {
    color: #667085;
    display: flex;
    flex-wrap: wrap;
    font-size: 13px;
    font-weight: 700;
    gap: 10px;
    margin-bottom: 12px;
}

.gis-news-card h2 {
    font-size: 22px;
    line-height: 1.3;
    margin-bottom: 12px;
}

.gis-news-card p {
    color: #667085;
    line-height: 1.7;
}

.gis-news-card .theme-btn {
    align-self: flex-start;
    margin-top: auto;
}

.gis-news-loading,
.gis-news-empty {
    align-items: center;
    background: #fff;
    border: 1px solid rgba(15, 98, 254, 0.1);
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(16, 24, 40, 0.08);
    display: flex;
    flex-direction: column;
    grid-column: 1 / -1;
    justify-content: center;
    min-height: 220px;
    padding: 34px;
    text-align: center;
}

.gis-news-detail-shell {
    padding: 70px 15px;
}

.gis-news-detail-article {
    background: #fff;
    border: 1px solid rgba(15, 98, 254, 0.1);
    border-radius: 8px;
    box-shadow: 0 22px 60px rgba(16, 24, 40, 0.1);
    margin: 0 auto;
    max-width: 980px;
    overflow: hidden;
}

.gis-news-detail-image {
    aspect-ratio: 16 / 7;
    background: #d6e4ff center/cover;
}

.gis-news-detail-body {
    padding: 50px;
}

.gis-news-detail-body h1 {
    font-size: 44px;
    line-height: 1.16;
    margin-bottom: 16px;
}

.gis-news-detail-content {
    color: #475467;
    font-size: 18px;
    line-height: 1.85;
    white-space: pre-line;
}

.gis-loader {
    animation: gis-loader-spin 0.8s linear infinite;
    border: 3px solid #d6e4ff;
    border-radius: 50%;
    border-top-color: #0f62fe;
    display: inline-block;
    height: 34px;
    margin-bottom: 12px;
    width: 34px;
}

@keyframes gis-loader-spin {
    to {
        transform: rotate(360deg);
    }
}

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

    .gis-news-hero h1 {
        font-size: 42px;
    }

    .gis-news-detail-body h1 {
        font-size: 36px;
    }
}

@media (max-width: 575px) {
    .gis-news-grid {
        grid-template-columns: 1fr;
    }

    .gis-news-hero {
        padding: 64px 0 92px;
    }

    .gis-news-hero h1 {
        font-size: 32px;
    }

    .gis-news-detail-body {
        padding: 28px;
    }

    .gis-news-detail-body h1 {
        font-size: 30px;
    }

    .gis-news-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .gis-news-search {
        max-width: none;
    }

    .gis-news-toolbar-right {
        justify-content: space-between;
    }
}

/* ------------------------------------------------------------------ */
/* External article preview page (/news-external)                      */
/* ------------------------------------------------------------------ */
.gis-ext-article {
    background: #fff;
    border: 1px solid rgba(15, 98, 254, 0.1);
    border-radius: 8px;
    box-shadow: 0 22px 60px rgba(16, 24, 40, 0.1);
    margin: 0 auto;
    max-width: 860px;
    overflow: hidden;
}

.gis-ext-image {
    aspect-ratio: 16 / 8;
    background: #d6e4ff center/cover;
    overflow: hidden;
    position: relative;
}

.gis-ext-image img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.gis-ext-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #0f62fe;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 6px 13px;
    border-radius: 999px;
}

.gis-ext-body {
    padding: 40px;
}

.gis-ext-source-note {
    align-items: center;
    background: rgba(16, 122, 87, 0.08);
    border-radius: 8px;
    color: #0f7a4f;
    display: flex;
    font-size: 13px;
    font-weight: 700;
    gap: 8px;
    margin-bottom: 20px;
    padding: 10px 14px;
}

.gis-ext-body h1 {
    font-size: 36px;
    line-height: 1.18;
    margin-bottom: 16px;
}

.gis-ext-body .gis-news-meta {
    font-size: 13px;
    margin-bottom: 22px;
}

.gis-ext-content {
    color: #475467;
    font-size: 17px;
    line-height: 1.85;
    margin-bottom: 26px;
}

.gis-ext-actions {
    align-items: center;
    border-top: 1px solid #eef1f6;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding-top: 24px;
}

.gis-ext-attribution {
    color: #8a90a2;
    font-size: 13px;
    margin-top: 18px;
}

@media (max-width: 575px) {
    .gis-ext-body {
        padding: 26px;
    }

    .gis-ext-body h1 {
        font-size: 27px;
    }
}
