.tg-topnav {
    --tg-topnav-color: #84171c;
    color: #222;
    background: #fff;
}
.tg-topnav *, .tg-topnav *::before, .tg-topnav *::after { box-sizing: border-box; }
.tg-topnav-heading { display: flex; justify-content: center; text-align: center; background: #fff; }
.tg-topnav-heading h1 {
    position: relative;
    display: inline-block;
    min-width: 180px;
    margin: 0;
    padding: 22px 36px;
    background: var(--tg-topnav-color);
    color: #fff;
    font-size: 22px;
    font-weight: normal;
    line-height: 1.5;
}
.tg-topnav-heading h1::after {
    position: absolute;
    bottom: 0;
    left: 50%;
    content: "";
    border-right: 10px solid transparent;
    border-bottom: 8px solid #f8f8f8;
    border-left: 10px solid transparent;
    transform: translateX(-50%);
}
.tg-topnav-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px 64px;
    padding: 24px 20px 18px;
    background: linear-gradient(#f8f8f8, #fff);
}
.tg-topnav-tabs a {
    padding-bottom: 8px;
    border-bottom: 1px solid transparent;
    color: #777;
    font-size: 18px;
    line-height: 26px;
}
.tg-topnav-tabs a:hover, .tg-topnav-tabs a:focus-visible, .tg-topnav-tabs a.is-current {
    border-color: var(--tg-topnav-color);
    color: var(--tg-topnav-color);
}
@media (max-width: 600px) { .tg-topnav-tabs { gap: 12px 24px; } }

/* Banner image styling */
.tg-news-banner {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 0;
}

/* Spacing for content that comes after banner */
.tg-page {
    margin-top: 0;
}

/* PC content wrapper for pages using the full-width topnav structure. */
.tg-page-content {
    width: 100%;
    background: linear-gradient(#f8f8f8, #fff 150px);
    padding: 0 0 64px;
    margin-top: 0;
}
.tg-page-content .w1200 {
    width: 1200px;
    margin: 0 auto;
}
.tg-page-content .article {
    width: 100%;
}

/* Center legacy image grids after removing the sidebar column. */
.tg-page-content .article > .pro {
    width: 930px;
    margin: 0 auto;
    overflow: hidden;
}
.tg-page-content .article > .pro::after,
.tg-page-content .article > .gyly_pro::after {
    display: block;
    clear: both;
    content: "";
}
.tg-page-content .article > .gyly_pro {
    width: 930px;
    margin: 0 auto;
    overflow: hidden;
}
.tg-page-content .article > .page {
    float: none;
    clear: both;
    width: 930px;
    margin: 20px auto;
    text-align: center;
}
@media (max-width: 980px) {
    .tg-page-content .w1200 {
        width: calc(100% - 30px);
    }
    .tg-page-content .article > .pro,
    .tg-page-content .article > .gyly_pro,
    .tg-page-content .article > .page {
        width: 100%;
    }
}
