body.gygb-news-archive,
body.gygb-news-single {
    --gygb-news-ink: #142a5c;
    --gygb-news-text: #445063;
    --gygb-news-muted: #6f7785;
    --gygb-news-line: #e3e8ef;
    --gygb-news-panel: #f5f7fa;
    --gygb-news-card: #ffffff;
    --gygb-news-accent: #0d7f97;
    --gygb-news-max: 1360px;
}

body.gygb-news-archive #page,
body.gygb-news-archive #content,
body.gygb-news-archive .site-content,
body.gygb-news-single #page,
body.gygb-news-single #content,
body.gygb-news-single .site-content {
    overflow-x: clip;
}

.gygb-news {
    width: 100%;
    color: var(--gygb-news-text);
    background: #fff;
}

.gygb-news *,
.gygb-news *::before,
.gygb-news *::after {
    box-sizing: border-box;
}

.gygb-news__shell {
    width: min(calc(100% - 48px), var(--gygb-news-max));
    margin-inline: auto;
}

.gygb-news__hero {
    padding: clamp(40px, 6vw, 82px) 0 clamp(28px, 4vw, 48px);
    background: linear-gradient(180deg, #f7fafc 0%, #ffffff 100%);
    border-bottom: 1px solid var(--gygb-news-line);
}

.gygb-news__eyebrow {
    margin: 0 0 10px;
    color: var(--gygb-news-accent);
    font-size: 13px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.gygb-news__title {
    margin: 0;
    max-width: 960px;
    color: var(--gygb-news-ink);
    font-size: clamp(36px, 4.7vw, 64px);
    line-height: 1.03;
    font-weight: 800;
    letter-spacing: -.035em;
    text-wrap: balance;
}

.gygb-news__description {
    max-width: 860px;
    margin-top: 18px;
    color: var(--gygb-news-text);
    font-size: clamp(16px, 1.25vw, 18px);
    line-height: 1.7;
}

.gygb-news__description > :first-child { margin-top: 0; }
.gygb-news__description > :last-child { margin-bottom: 0; }

.gygb-news__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.gygb-news__filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid #d8e0e9;
    border-radius: 999px;
    background: #fff;
    color: #334155 !important;
    font-size: 14px;
    line-height: 1;
    font-weight: 700;
    text-decoration: none !important;
    transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease;
}

.gygb-news__filter:hover,
.gygb-news__filter.is-active {
    border-color: var(--gygb-news-ink);
    background: var(--gygb-news-ink);
    color: #fff !important;
}

.gygb-news__content {
    padding: clamp(34px, 5vw, 68px) 0 80px;
}

.gygb-news__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(20px, 2.2vw, 32px);
}

.gygb-news-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--gygb-news-card);
    border: 1px solid var(--gygb-news-line);
    border-radius: 18px;
    box-shadow: 0 8px 26px rgba(20, 42, 92, .055);
}

.gygb-news-card__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #eaf0f5 0%, #dbe4ec 100%);
}

.gygb-news-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .28s ease;
}

.gygb-news-card__placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: rgba(20, 42, 92, .18);
    font-size: clamp(44px, 6vw, 76px);
    font-weight: 900;
    letter-spacing: -.06em;
}

.gygb-news-card__body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding: 22px 22px 24px;
}

.gygb-news-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-bottom: 13px;
    color: var(--gygb-news-muted);
    font-size: 12px;
    line-height: 1.35;
}

.gygb-news-card__category {
    color: var(--gygb-news-accent);
    font-weight: 800;
}

.gygb-news-card__title {
    margin: 0 0 12px;
    color: var(--gygb-news-ink);
    font-size: clamp(20px, 1.55vw, 25px);
    line-height: 1.25;
    font-weight: 780;
    letter-spacing: -.018em;
    text-wrap: balance;
    overflow-wrap: anywhere;
}

.gygb-news-card__title a {
    color: inherit !important;
    text-decoration: none !important;
}

.gygb-news-card__excerpt {
    margin: 0 0 18px;
    color: var(--gygb-news-text);
    font-size: 15px;
    line-height: 1.65;
}

.gygb-news-card__more {
    margin-top: auto;
    color: var(--gygb-news-ink) !important;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none !important;
}

.gygb-news__empty {
    padding: 56px 24px;
    border: 1px dashed #ccd6e1;
    border-radius: 18px;
    background: #f8fafc;
    color: var(--gygb-news-muted);
    text-align: center;
}

.gygb-news__pagination {
    margin-top: clamp(34px, 5vw, 58px);
}

.gygb-news__pagination ul.page-numbers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.gygb-news__pagination .page-numbers a,
.gygb-news__pagination .page-numbers span {
    display: grid;
    place-items: center;
    min-width: 42px;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid #d9e1e9;
    border-radius: 10px;
    background: #fff;
    color: #334155;
    font-weight: 700;
    text-decoration: none;
}

.gygb-news__pagination .page-numbers .current,
.gygb-news__pagination .page-numbers a:hover {
    border-color: var(--gygb-news-ink);
    background: var(--gygb-news-ink);
    color: #fff;
}

/* Single News articles keep the theme markup but gain a readable long-form measure. */
body.gygb-news-single .content-area,
body.gygb-news-single main.site-main,
body.gygb-news-single article {
    min-width: 0;
}

body.gygb-news-single article .entry-content {
    max-width: 920px;
    margin-inline: auto;
    font-size: clamp(16px, 1.2vw, 18px);
    line-height: 1.78;
}

body.gygb-news-single article .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
}

html[dir="rtl"] .gygb-news,
body.rtl .gygb-news {
    direction: rtl;
}

@media (hover: hover) and (pointer: fine) {
    .gygb-news-card {
        transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    }

    .gygb-news-card:hover {
        transform: translateY(-3px);
        border-color: #ccd7e3;
        box-shadow: 0 16px 38px rgba(20, 42, 92, .10);
    }

    .gygb-news-card:hover .gygb-news-card__media img {
        transform: scale(1.025);
    }
}

@media (max-width: 1023px) {
    .gygb-news__shell {
        width: min(calc(100% - 32px), var(--gygb-news-max));
    }

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

@media (max-width: 680px) {
    .gygb-news__shell {
        width: min(calc(100% - 24px), var(--gygb-news-max));
    }

    .gygb-news__hero {
        padding: 32px 0 24px;
    }

    .gygb-news__title {
        font-size: clamp(31px, 9vw, 42px);
    }

    .gygb-news__filters {
        gap: 8px;
        margin-top: 22px;
    }

    .gygb-news__filter {
        min-height: 40px;
        padding-inline: 13px;
        font-size: 13px;
    }

    .gygb-news__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .gygb-news-card__body {
        padding: 19px 18px 21px;
    }

    .gygb-news-card__title {
        font-size: 21px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gygb-news-card,
    .gygb-news-card__media img,
    .gygb-news__filter {
        transition: none !important;
    }
}
