/* GetUSAJob blog — all rules scoped to .gb-blog to avoid clashing with site/Bootstrap styles. */
.gb-blog {
    --gb-red: #c8102e;
    --gb-navy: #0a3161;
    /* Derived shades; portal_render() recomputes these from each site's flag colors. */
    --gb-navy-2: #12407e;
    --gb-navy-soft: #f0f5ff;
    --gb-navy-line: #d6e2fb;
    --gb-red-soft: #fdecee;
    --gb-red-dark: #a50d26;
    --gb-shadow: rgba(10,49,97,.10);
    --gb-ink: #1d2433;
    --gb-muted: #5b6475;
    --gb-line: #e4e7ee;
    --gb-soft: #f5f7fb;
    --gb-radius: 12px;
    background: #fff;
    color: var(--gb-ink);
    font-size: 16px;
    line-height: 1.6;
    padding-bottom: 48px;
}
.gb-blog *, .gb-blog *::before, .gb-blog *::after { box-sizing: border-box; }
.gb-blog a { color: var(--gb-navy); }
.gb-blog a:hover { color: var(--gb-red); text-decoration: none; }
.gb-blog img { max-width: 100%; height: auto; }
.gb-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.gb-wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.gb-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; margin-top: 32px; }
.gb-main { min-width: 0; }

/* Breadcrumbs */
.gb-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 14px; font-size: 14px; color: var(--gb-muted); }
.gb-crumbs li + li::before { content: "/"; margin-right: 6px; color: #b3b9c6; }
.gb-crumbs a { color: var(--gb-muted); }

/* Hero */
.gb-hero { background: linear-gradient(135deg, var(--gb-navy) 0%, var(--gb-navy-2) 60%, var(--gb-red) 160%); color: #fff; padding: 36px 0 28px; }
.gb-hero h1 { font-size: 38px; line-height: 1.2; font-weight: 700; margin: 0 0 10px; color: #fff; }
.gb-hero h1 small { font-size: 60%; opacity: .75; }
.gb-hero-intro { font-size: 18px; max-width: 760px; margin: 0; opacity: .92; }
.gb-hero .gb-crumbs ol, .gb-hero .gb-crumbs a { color: rgba(255,255,255,.8); }
.gb-hero .gb-crumbs li + li::before { color: rgba(255,255,255,.5); }
.gb-cat-nav { display: flex; gap: 8px; overflow-x: auto; margin-top: 20px; padding-bottom: 4px; scrollbar-width: thin; }
.gb-blog .gb-cat-nav a { flex: none; color: #fff; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 5px 14px; font-size: 14px; white-space: nowrap; }
.gb-blog .gb-cat-nav a:hover, .gb-blog .gb-cat-nav a.is-active { background: #fff; color: var(--gb-navy); }

/* Cards */
.gb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.gb-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--gb-line); border-radius: var(--gb-radius); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.gb-card:hover { box-shadow: 0 10px 30px var(--gb-shadow); transform: translateY(-2px); }
.gb-card-media { display: block; aspect-ratio: 1200 / 630; background: var(--gb-soft); overflow: hidden; }
.gb-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gb-card-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 48px; font-weight: 700; color: var(--gb-navy-line); background: linear-gradient(135deg, var(--gb-navy-soft), var(--gb-red-soft)); }
.gb-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.gb-card-title { font-size: 19px; line-height: 1.35; margin: 8px 0; font-weight: 700; }
.gb-card-title a { color: var(--gb-ink); }
.gb-card-excerpt { color: var(--gb-muted); font-size: 15px; margin: 0 0 14px; flex: 1; }
.gb-card-featured { display: grid; grid-template-columns: 1.2fr 1fr; margin-bottom: 28px; }
.gb-card-featured .gb-card-media { aspect-ratio: auto; min-height: 280px; }
.gb-card-featured .gb-card-body { padding: 28px; justify-content: center; }
.gb-card-featured .gb-card-title { font-size: 26px; }

.gb-chip { display: inline-block; align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--gb-red) !important; background: var(--gb-red-soft); border-radius: 999px; padding: 3px 10px; }
.gb-meta { display: flex; flex-wrap: wrap; gap: 6px; color: var(--gb-muted); font-size: 14px; }

/* Buttons */
.gb-btn { display: inline-block; background: var(--gb-red); color: #fff !important; border-radius: 8px; padding: 10px 18px; font-weight: 600; border: 2px solid var(--gb-red); text-align: center; }
.gb-btn:hover { background: var(--gb-red-dark); border-color: var(--gb-red-dark); }
.gb-btn-ghost { background: transparent; color: var(--gb-navy) !important; border-color: var(--gb-line); }
.gb-btn-ghost:hover { background: var(--gb-soft); border-color: var(--gb-line); }

.gb-empty { text-align: center; padding: 60px 20px; background: var(--gb-soft); border-radius: var(--gb-radius); }

/* Pagination */
.gb-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 36px 0 0; }
.gb-pagination a, .gb-pagination span { min-width: 40px; padding: 8px 12px; border: 1px solid var(--gb-line); border-radius: 8px; text-align: center; font-size: 15px; }
.gb-pagination .is-current { background: var(--gb-navy); border-color: var(--gb-navy); color: #fff; }
.gb-pagination .gb-gap { border: 0; }

/* Sidebar */
.gb-sidebar { display: flex; flex-direction: column; gap: 24px; }
.gb-widget { border: 1px solid var(--gb-line); border-radius: var(--gb-radius); padding: 20px; }
.gb-widget-title { font-size: 17px; font-weight: 700; margin: 0 0 12px; color: var(--gb-ink); }
.gb-search { display: flex; }
.gb-search input { flex: 1; min-width: 0; border: 1px solid var(--gb-line); border-right: 0; border-radius: 8px 0 0 8px; padding: 10px 12px; font-size: 15px; height: auto; margin: 0; box-shadow: none; }
.gb-search button { border: 0; background: var(--gb-navy); color: #fff; border-radius: 0 8px 8px 0; padding: 0 16px; cursor: pointer; }
.gb-cta { background: linear-gradient(160deg, var(--gb-navy), var(--gb-navy-2)); color: #fff; border: 0; }
.gb-cta .gb-widget-title { color: #fff; }
.gb-cta p { opacity: .9; font-size: 15px; }
.gb-cta .gb-btn { display: block; margin-top: 8px; }
.gb-cta .gb-btn-ghost { color: #fff !important; border-color: rgba(255,255,255,.4); }
.gb-cta .gb-btn-ghost:hover { background: rgba(255,255,255,.1); }
.gb-list { list-style: none; padding: 0; margin: 0; }
.gb-list li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--gb-line); }
.gb-list li:last-child { border-bottom: 0; }
.gb-list li.is-active a { color: var(--gb-red); font-weight: 600; }
.gb-count { color: var(--gb-muted); font-size: 13px; background: var(--gb-soft); border-radius: 999px; padding: 0 9px; }
.gb-mini-list { padding-left: 20px; margin: 0; }
.gb-mini-list li { padding: 6px 0; }
.gb-mini-list a { font-weight: 600; line-height: 1.35; display: block; }
.gb-mini-list time { font-size: 13px; color: var(--gb-muted); }
.gb-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.gb-tags a { font-size: 14px; background: var(--gb-soft); border-radius: 6px; padding: 4px 10px; color: var(--gb-ink); }
.gb-tags a:hover { background: var(--gb-red-soft); }

/* Article */
.gb-preview-bar { background: #fff4d6; border-bottom: 1px solid #f0d58a; padding: 10px 16px; text-align: center; font-size: 15px; }
.gb-article-header h1 { font-size: 40px; line-height: 1.2; font-weight: 800; margin: 12px 0; color: var(--gb-ink); }
.gb-lead { font-size: 20px; color: var(--gb-muted); margin: 0 0 14px; }
.gb-hero-image { margin: 24px 0; }
.gb-hero-image img { width: 100%; border-radius: var(--gb-radius); display: block; }

.gb-toc { background: var(--gb-soft); border: 1px solid var(--gb-line); border-radius: var(--gb-radius); padding: 16px 20px; margin: 24px 0; }
.gb-toc summary { font-weight: 700; cursor: pointer; }
.gb-toc ol { margin: 10px 0 0; padding-left: 20px; }
.gb-toc li { padding: 3px 0; }
.gb-toc .gb-toc-l3 { margin-left: 18px; list-style-type: circle; font-size: 15px; }

.gb-content { font-size: 18px; line-height: 1.75; overflow-wrap: break-word; }
.gb-content h2 { font-size: 28px; font-weight: 700; margin: 40px 0 14px; line-height: 1.3; scroll-margin-top: 110px; }
.gb-content h3 { font-size: 22px; font-weight: 700; margin: 30px 0 10px; scroll-margin-top: 110px; }
.gb-content h4 { font-size: 19px; font-weight: 700; margin: 24px 0 8px; }
.gb-content p, .gb-content ul, .gb-content ol { margin: 0 0 20px; }
.gb-content li { margin-bottom: 6px; }
.gb-content a { color: var(--gb-red); text-decoration: underline; text-underline-offset: 2px; }
.gb-content img { border-radius: 8px; margin: 10px 0; }
.gb-content blockquote { border-left: 4px solid var(--gb-red); background: var(--gb-soft); margin: 24px 0; padding: 14px 20px; font-style: italic; }
.gb-content table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 16px; display: block; overflow-x: auto; }
.gb-content th, .gb-content td { border: 1px solid var(--gb-line); padding: 10px 12px; text-align: left; }
.gb-content th { background: var(--gb-soft); }
.gb-content pre { background: #0f172a; color: #e2e8f0; padding: 16px; border-radius: 8px; overflow-x: auto; font-size: 14px; }
.gb-content iframe { max-width: 100%; }
.gb-content .gb-takeaways { background: var(--gb-navy-soft); border: 1px solid var(--gb-navy-line); border-left: 4px solid var(--gb-navy); border-radius: 10px; padding: 16px 20px 6px; margin: 0 0 28px; }
.gb-content .gb-takeaways > p:first-child { margin-bottom: 8px; }
.gb-content .gb-takeaways ul { margin-bottom: 10px; }
.gb-content small { color: var(--gb-muted); font-size: 14px; }

.gb-faq { margin: 40px 0 0; }
.gb-faq h2 { font-size: 26px; font-weight: 700; margin-bottom: 14px; }
.gb-faq details { border: 1px solid var(--gb-line); border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; }
.gb-faq summary { font-weight: 700; cursor: pointer; font-size: 17px; }
.gb-faq details div { margin-top: 10px; color: var(--gb-muted); }

.gb-article-footer { margin-top: 36px; display: flex; flex-direction: column; gap: 22px; }
.gb-share { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gb-share span { font-weight: 700; margin-right: 4px; }
.gb-share a, .gb-share button { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--gb-soft); color: var(--gb-navy); border: 0; cursor: pointer; font-size: 17px; }
.gb-share a:hover, .gb-share button:hover { background: var(--gb-navy); color: #fff; }
.gb-share .is-copied { background: #26a69a; color: #fff; }
.gb-author { display: flex; gap: 16px; align-items: flex-start; background: var(--gb-soft); border-radius: var(--gb-radius); padding: 20px; }
.gb-author p { margin: 4px 0 0; color: var(--gb-muted); font-size: 15px; }
.gb-author-avatar { flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--gb-navy); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; }
.gb-cta-band { display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 2px solid var(--gb-red); border-radius: var(--gb-radius); padding: 20px 24px; }
.gb-cta-band p { margin: 2px 0 0; color: var(--gb-muted); }

.gb-adjacent { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 36px 0; }
.gb-adjacent a { border: 1px solid var(--gb-line); border-radius: var(--gb-radius); padding: 16px 18px; display: flex; flex-direction: column; }
.gb-adjacent small { color: var(--gb-muted); }
.gb-adjacent span { font-weight: 700; color: var(--gb-ink); line-height: 1.35; }
.gb-adjacent-next { text-align: right; grid-column: 2; }
.gb-related h2 { font-size: 26px; font-weight: 700; margin: 0 0 18px; }

/* International jobs hub */
.gb-intl { max-width: 1100px; margin: 32px auto 0; }
.gb-intl-lead { font-size: 18px; background: var(--gb-soft); border-left: 4px solid var(--gb-red); border-radius: 10px; padding: 16px 20px; margin: 0 0 12px; }
.gb-intl-region { margin-top: 36px; scroll-margin-top: 110px; }
.gb-intl-region h2, .gb-intl-tips h2 { font-size: 26px; font-weight: 700; margin: 0 0 16px; }
.gb-country-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.gb-country { display: flex; flex-direction: column; border: 1px solid var(--gb-line); border-radius: var(--gb-radius); padding: 20px; background: #fff; transition: box-shadow .2s; }
.gb-country:hover { box-shadow: 0 10px 30px var(--gb-shadow); }
.gb-country-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.gb-country-head h3 { font-size: 20px; font-weight: 700; margin: 0; }
.gb-country-code { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--gb-navy); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; letter-spacing: .03em; }
.gb-country p { color: var(--gb-muted); font-size: 15px; margin: 0 0 12px; }
.gb-country dl { margin: 0 0 16px; font-size: 14px; flex: 1; }
.gb-country dt { font-weight: 700; color: var(--gb-ink); }
.gb-country dd { margin: 0 0 6px; color: var(--gb-muted); }
.gb-country .gb-btn { align-self: flex-start; }
.gb-intl-tips { margin-top: 44px; }
.gb-intl-tips li { margin-bottom: 8px; }

@media (max-width: 991px) {
    .gb-layout { grid-template-columns: 1fr; gap: 32px; }
    .gb-card-featured { grid-template-columns: 1fr; }
    .gb-card-featured .gb-card-media { min-height: 0; aspect-ratio: 1200 / 630; }
}
@media (max-width: 600px) {
    .gb-hero h1 { font-size: 28px; }
    .gb-hero-intro { font-size: 16px; }
    .gb-article-header h1 { font-size: 28px; }
    .gb-lead { font-size: 17px; }
    .gb-content { font-size: 17px; }
    .gb-content h2 { font-size: 23px; }
    .gb-cta-band { flex-direction: column; align-items: flex-start; }
    .gb-adjacent { grid-template-columns: 1fr; }
    .gb-adjacent-next { grid-column: auto; text-align: left; }
}
