@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600;700&display=swap');

/* ==========================================================
   THANH GIANG HOME V2.8 — STAGING MAIN
   Scoped to body.tg-home-v2-page to avoid affecting other pages.
========================================================== */

body.tg-home-v2-page {
    --tg-blue: var(--tg-v2-primary, #0757c7);
    --tg-blue-2: #0b68e8;
    --tg-red: var(--tg-v2-secondary, #ef233c);
    --tg-yellow: var(--tg-v2-accent, #ffb703);
    --tg-green: var(--tg-v2-success, #10b981);
    --tg-purple: var(--tg-v2-purple, #7c3aed);
    --tg-orange: var(--tg-v2-orange, #f97316);
    --tg-navy: var(--tg-v2-navy, #062b52);
    --tg-text: #14213d;
    --tg-muted: #667085;
    --tg-line: #e4eaf2;
    --tg-soft: var(--tg-v2-soft, #f5f9ff);
    --tg-white: #ffffff;
    --tg-radius: 14px;
    overflow-x: hidden;
    background: #fff;
}

body.tg-home-v2-page *,
body.tg-home-v2-page *::before,
body.tg-home-v2-page *::after {
    box-sizing: border-box;
}

/* Theme layout reset only on the front page. */
body.tg-home-v2-page #content > .container,
body.tg-home-v2-page .tg-v2-page-shell,
body.tg-home-v2-page .tg-v2-page-shell .site-main,
body.tg-home-v2-page .tg-v2-page-shell #main,
body.tg-home-v2-page .tg-v2-page-shell #primary,
body.tg-home-v2-page .tg-v2-page-shell.content-sidebar-wrap {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    float: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.tg-home-v2-page .tg-v2-home {
    width: 100%;
    color: var(--tg-text);
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
}

body.tg-home-v2-page .tg-v2-home a {
    text-decoration: none;
}

body.tg-home-v2-page .tg-v2-container {
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
}

body.tg-home-v2-page .tg-v2-slider-wrap {
    width: 100%;
    background: #fff;
    overflow: hidden;
}

body.tg-home-v2-page .tg-v2-slider-wrap .metaslider,
body.tg-home-v2-page .tg-v2-slider-wrap .ml-slider {
    width: 100% !important;
    max-width: none !important;
    margin: 0 auto !important;
}

/* ==========================================================
   HERO + SEARCH
========================================================== */

body.tg-home-v2-page .tg-v2-hero {
    padding: 34px 0 30px;
    background:
        radial-gradient(circle at 85% 5%, rgba(11, 104, 232, .13), transparent 32%),
        linear-gradient(180deg, #f7faff 0%, #ffffff 100%);
    border-bottom: 1px solid #edf2f8;
}

body.tg-home-v2-page .tg-v2-hero-copy {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 22px;
}

body.tg-home-v2-page .tg-v2-eyebrow,
body.tg-home-v2-page .tg-v2-section-kicker {
    display: inline-block;
    color: var(--tg-blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

body.tg-home-v2-page .tg-v2-hero h1 {
    margin: 8px 0 9px;
    color: var(--tg-navy);
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.12;
    font-weight: 800;
}

body.tg-home-v2-page .tg-v2-hero-copy p {
    margin: 0 auto;
    max-width: 690px;
    color: var(--tg-muted);
    font-size: 16px;
    line-height: 1.65;
}

body.tg-home-v2-page .tg-v2-search-card {
    padding: 18px;
    background: #fff;
    border: 1px solid #dfe7f2;
    border-radius: 18px;
    box-shadow: 0 16px 42px rgba(18, 55, 99, .09);
}

body.tg-home-v2-page .tg-v2-filter-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(155px, 1fr)) auto;
    gap: 10px;
    align-items: end;
}

body.tg-home-v2-page .tg-v2-field {
    display: block;
    min-width: 0;
    margin: 0;
}

body.tg-home-v2-page .tg-v2-field > span,
body.tg-home-v2-page .tg-v2-sort > span {
    display: block;
    margin: 0 0 6px;
    color: #53627a;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 800;
    text-transform: uppercase;
}

body.tg-home-v2-page .tg-v2-field input,
body.tg-home-v2-page .tg-v2-field select,
body.tg-home-v2-page .tg-v2-sort select {
    width: 100%;
    height: 46px;
    margin: 0;
    padding: 0 12px;
    color: #1f2937;
    background: #fff;
    border: 1px solid #d9e2ee;
    border-radius: 10px;
    outline: 0;
    font-size: 13px;
    box-shadow: none;
}

body.tg-home-v2-page .tg-v2-field input:focus,
body.tg-home-v2-page .tg-v2-field select:focus,
body.tg-home-v2-page .tg-v2-sort select:focus {
    border-color: #76a8ea;
    box-shadow: 0 0 0 3px rgba(7, 87, 199, .08);
}

body.tg-home-v2-page .tg-v2-input-wrap {
    position: relative;
}

body.tg-home-v2-page .tg-v2-input-wrap input {
    padding-right: 38px;
}

body.tg-home-v2-page .tg-v2-search-icon {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #6e7d92;
    font-size: 21px;
    pointer-events: none;
}

body.tg-home-v2-page .tg-v2-search-button {
    height: 46px;
    padding: 0 19px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(135deg, var(--tg-blue), var(--tg-blue-2));
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(7, 87, 199, .2);
}

body.tg-home-v2-page .tg-v2-search-button:hover {
    filter: brightness(.97);
}

body.tg-home-v2-page .tg-v2-quick-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #edf1f6;
}

body.tg-home-v2-page .tg-v2-quick-label {
    color: #6b7789;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

body.tg-home-v2-page .tg-v2-quick-chips {
    display: flex;
    flex: 1;
    gap: 7px;
    flex-wrap: wrap;
}

body.tg-home-v2-page .tg-v2-chip,
body.tg-home-v2-page .tg-v2-advanced-toggle,
body.tg-home-v2-page .tg-v2-clear-button {
    border: 1px solid #dce5f0;
    background: #f8fafc;
    color: #41516a;
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 11px;
    line-height: 1.1;
    font-weight: 700;
    cursor: pointer;
}

body.tg-home-v2-page .tg-v2-chip.is-active {
    border-color: #b9d3f5;
    background: #eaf3ff;
    color: var(--tg-blue);
}

body.tg-home-v2-page .tg-v2-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 5px;
    background: #19a66a;
    border-radius: 50%;
    vertical-align: middle;
}

body.tg-home-v2-page .tg-v2-advanced-toggle {
    margin-left: auto;
    background: #fff;
    white-space: nowrap;
}

body.tg-home-v2-page .tg-v2-advanced-filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #edf1f6;
}

body.tg-home-v2-page .tg-v2-advanced-filters[hidden] {
    display: none !important;
}

body.tg-home-v2-page .tg-v2-clear-button {
    align-self: end;
    height: 46px;
    border-radius: 10px;
    background: #fff;
}

body.tg-home-v2-page .tg-v2-search-card.is-loading {
    opacity: .82;
}

/* ==========================================================
   JOB LIST
========================================================== */

body.tg-home-v2-page .tg-v2-jobs-section {
    padding: 44px 0 52px;
    background: #fff;
}

body.tg-home-v2-page .tg-v2-jobs-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 22px;
    align-items: start;
}

body.tg-home-v2-page .tg-v2-results-panel {
    min-width: 0;
}

body.tg-home-v2-page .tg-v2-results-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
}

body.tg-home-v2-page .tg-v2-results-toolbar h2,
body.tg-home-v2-page .tg-v2-section-heading h2,
body.tg-home-v2-page .tg-v2-about-copy h2 {
    margin: 5px 0 6px;
    color: var(--tg-navy);
    font-size: clamp(24px, 2.7vw, 34px);
    line-height: 1.18;
    font-weight: 800;
}

body.tg-home-v2-page .tg-v2-results-toolbar p,
body.tg-home-v2-page .tg-v2-section-heading p {
    margin: 0;
    color: var(--tg-muted);
    font-size: 13px;
    line-height: 1.55;
}

body.tg-home-v2-page .tg-v2-sort {
    width: 145px;
    flex: 0 0 auto;
}

body.tg-home-v2-page .tg-v2-sort select {
    height: 40px;
}

body.tg-home-v2-page .tg-v2-job-head,
body.tg-home-v2-page .tg-v2-job-card {
    display: grid;
    grid-template-columns: minmax(180px, 1.55fr) minmax(145px, 1.15fr) minmax(105px, .8fr) minmax(100px, .78fr) minmax(120px, .92fr) minmax(105px, .75fr);
    gap: 12px;
    align-items: center;
}

body.tg-home-v2-page .tg-v2-job-head {
    padding: 9px 13px;
    color: #66758a;
    background: #f4f7fb;
    border: 1px solid #e5ebf2;
    border-radius: 10px 10px 0 0;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

body.tg-home-v2-page .tg-v2-job-results {
    border-left: 1px solid #e4eaf2;
    border-right: 1px solid #e4eaf2;
}

body.tg-home-v2-page .tg-v2-job-card {
    padding: 13px;
    border-bottom: 1px solid #e7edf4;
    background: #fff;
    transition: background .18s ease, box-shadow .18s ease;
}

body.tg-home-v2-page .tg-v2-job-card:hover {
    position: relative;
    z-index: 2;
    background: #fbfdff;
    box-shadow: 0 8px 24px rgba(31, 66, 109, .08);
}

body.tg-home-v2-page .tg-v2-job-main,
body.tg-home-v2-page .tg-v2-job-cell,
body.tg-home-v2-page .tg-v2-job-actions {
    min-width: 0;
}

body.tg-home-v2-page .tg-v2-job-code-line {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 4px;
}

body.tg-home-v2-page .tg-v2-job-code {
    color: var(--tg-blue);
    font-size: 12px;
    font-weight: 900;
}

body.tg-home-v2-page .tg-v2-new-badge {
    display: inline-flex;
    align-items: center;
    min-height: 17px;
    padding: 2px 5px;
    color: #b42318;
    background: #fff0ee;
    border-radius: 5px;
    font-size: 8px;
    font-weight: 900;
    text-transform: uppercase;
}

body.tg-home-v2-page .tg-v2-job-title {
    margin: 0;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 800;
}

body.tg-home-v2-page .tg-v2-job-title a {
    color: #1c2940;
}

body.tg-home-v2-page .tg-v2-job-exam {
    margin: 4px 0 0;
    color: #7b8798;
    font-size: 10px;
    line-height: 1.35;
}

body.tg-home-v2-page .tg-v2-cell-label {
    display: none;
}

body.tg-home-v2-page .tg-v2-job-cell strong {
    display: block;
    color: #27364d;
    font-size: 11px;
    line-height: 1.35;
    font-weight: 800;
    overflow-wrap: anywhere;
}

body.tg-home-v2-page .tg-v2-job-cell small {
    display: block;
    margin-top: 3px;
    color: #7c8797;
    font-size: 9px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

body.tg-home-v2-page .tg-v2-job-salary strong {
    color: var(--tg-blue);
}

body.tg-home-v2-page .tg-v2-job-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

body.tg-home-v2-page .tg-v2-status {
    display: inline-flex;
    padding: 4px 7px;
    border-radius: 999px;
    font-size: 8px;
    line-height: 1;
    font-weight: 900;
    white-space: nowrap;
    text-transform: uppercase;
}

body.tg-home-v2-page .tg-v2-status.is-open {
    color: #087249;
    background: #e9f8f1;
}

body.tg-home-v2-page .tg-v2-status.is-paused {
    color: #9a6700;
    background: #fff6dc;
}

body.tg-home-v2-page .tg-v2-status.is-closed {
    color: #667085;
    background: #f1f3f5;
}

body.tg-home-v2-page .tg-v2-detail-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 5px 8px;
    border-radius: 6px;
    color: #fff;
    background: var(--tg-blue);
    font-size: 9px;
    font-weight: 800;
    white-space: nowrap;
}

body.tg-home-v2-page .tg-v2-consult-link {
    color: var(--tg-blue);
    font-size: 9px;
    font-weight: 700;
}

body.tg-home-v2-page .tg-v2-load-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    min-height: 44px;
    margin: 14px 0 0;
    border: 1px solid #cbd9e9;
    border-radius: 10px;
    color: var(--tg-blue);
    background: #fff;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

body.tg-home-v2-page .tg-v2-load-more[hidden],
body.tg-home-v2-page .tg-v2-empty-state[hidden] {
    display: none !important;
}

body.tg-home-v2-page .tg-v2-empty-state,
body.tg-home-v2-page .tg-v2-request-error {
    padding: 28px 18px;
    border: 1px solid #e3e9f1;
    border-radius: 10px;
    text-align: center;
    color: #5e6c80;
    background: #fbfcfe;
}

body.tg-home-v2-page .tg-v2-empty-state strong {
    color: #23324a;
    font-size: 16px;
}

body.tg-home-v2-page .tg-v2-empty-state p {
    margin: 6px 0 12px;
}

body.tg-home-v2-page .tg-v2-empty-state button {
    border: 0;
    color: var(--tg-blue);
    background: transparent;
    font-weight: 800;
    cursor: pointer;
}

/* Sticky sidebar: it naturally stops at the bottom of the jobs section. */
body.tg-home-v2-page .tg-v2-sidebar {
    position: sticky;
    top: 92px;
    display: grid;
    gap: 12px;
    align-self: start;
}

body.tg-home-v2-page .tg-v2-side-card {
    padding: 16px;
    border: 1px solid #e0e7f0;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(19, 48, 83, .06);
}

body.tg-home-v2-page .tg-v2-side-card h2 {
    margin: 0 0 10px;
    color: var(--tg-navy);
    font-size: 16px;
    line-height: 1.25;
}

body.tg-home-v2-page .tg-v2-side-links button {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 9px 0;
    color: #40516a;
    background: none;
    border: 0;
    border-bottom: 1px solid #edf1f5;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

body.tg-home-v2-page .tg-v2-side-links button:last-child {
    border-bottom: 0;
}

body.tg-home-v2-page .tg-v2-consult-card {
    color: #fff;
    background: linear-gradient(145deg, #0a3b78, #0757c7);
    border-color: transparent;
}

body.tg-home-v2-page .tg-v2-consult-card > span {
    color: #bcd8ff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

body.tg-home-v2-page .tg-v2-consult-card h2 {
    margin-top: 5px;
    color: #fff;
}

body.tg-home-v2-page .tg-v2-consult-card p {
    margin: 0 0 12px;
    color: #d8e8ff;
    font-size: 11px;
    line-height: 1.55;
}

body.tg-home-v2-page .tg-v2-side-primary,
body.tg-home-v2-page .tg-v2-side-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
}

body.tg-home-v2-page .tg-v2-side-primary {
    color: var(--tg-blue);
    background: #fff;
}

body.tg-home-v2-page .tg-v2-side-phone {
    margin-top: 7px;
    color: #fff;
    border: 1px solid rgba(255,255,255,.28);
}

/* ==========================================================
   ABOUT — combined intro + WHY section
========================================================== */

body.tg-home-v2-page .tg-v2-about-section {
    padding: 66px 0;
    background: var(--tg-soft);
    border-top: 1px solid #eef2f6;
}

body.tg-home-v2-page .tg-v2-about-grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 42px;
    align-items: center;
}

body.tg-home-v2-page .tg-v2-about-visual {
    min-height: 330px;
    border-radius: 18px;
    overflow: hidden;
    background: #dfeaf7;
    box-shadow: 0 18px 44px rgba(19, 53, 92, .13);
}

body.tg-home-v2-page .tg-v2-about-visual img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 330px;
    object-fit: cover;
}

body.tg-home-v2-page .tg-v2-about-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 330px;
    padding: 30px;
    color: #fff;
    background: linear-gradient(145deg, #0b5cc9, #082e60);
    text-align: center;
}

body.tg-home-v2-page .tg-v2-about-placeholder span {
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .12em;
}

body.tg-home-v2-page .tg-v2-about-placeholder strong {
    margin-top: 10px;
    font-size: 28px;
    line-height: 1.2;
}

body.tg-home-v2-page .tg-v2-about-copy h2 {
    font-size: clamp(28px, 3vw, 40px);
}

body.tg-home-v2-page .tg-v2-about-text {
    color: #526178;
    font-size: 14px;
    line-height: 1.72;
}

body.tg-home-v2-page .tg-v2-about-text p {
    margin: 0 0 11px;
}

body.tg-home-v2-page .tg-v2-text-link {
    display: inline-flex;
    gap: 7px;
    margin-top: 4px;
    color: var(--tg-blue);
    font-size: 12px;
    font-weight: 800;
}

body.tg-home-v2-page .tg-v2-benefit-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 34px;
}

body.tg-home-v2-page .tg-v2-benefit {
    position: relative;
    min-height: 150px;
    padding: 18px;
    background: #fff;
    border: 1px solid #e1e8f0;
    border-radius: 13px;
}

body.tg-home-v2-page .tg-v2-benefit > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: var(--tg-blue);
    background: #eaf3ff;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 900;
}

body.tg-home-v2-page .tg-v2-benefit h3 {
    margin: 11px 0 5px;
    color: #19283f;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 800;
}

body.tg-home-v2-page .tg-v2-benefit p {
    margin: 0;
    color: #687589;
    font-size: 11px;
    line-height: 1.55;
}

/* ==========================================================
   ALBUM + VIDEO
========================================================== */

body.tg-home-v2-page .tg-v2-media-section {
    padding: 66px 0;
    background: #fff;
}

body.tg-home-v2-page .tg-v2-section-heading {
    max-width: 720px;
}

body.tg-home-v2-page .tg-v2-section-heading-center {
    margin: 0 auto 30px;
    text-align: center;
}

body.tg-home-v2-page .tg-v2-media-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 1fr);
    gap: 24px;
    align-items: stretch;
}

body.tg-home-v2-page .tg-v2-album-card,
body.tg-home-v2-page .tg-v2-video-card {
    border: 1px solid #e0e7f0;
    border-radius: 18px;
    background: #f9fbfe;
    overflow: hidden;
}

body.tg-home-v2-page .tg-v2-album-card {
    min-height: 430px;
    padding: 20px;
}

body.tg-home-v2-page .tg-v2-book {
    display: flex;
    flex-direction: column;
    height: 100%;
}

body.tg-home-v2-page .tg-v2-book-pages {
    position: relative;
    flex: 1;
    min-height: 350px;
    perspective: 1800px;
    border-radius: 14px;
}

body.tg-home-v2-page .tg-v2-book-page {
    position: absolute;
    inset: 0;
    margin: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #dbe6f3;
    transform-origin: left center;
    transform-style: preserve-3d;
    transition: transform .7s cubic-bezier(.2,.7,.2,1), filter .35s ease;
    box-shadow: 0 12px 30px rgba(13, 48, 86, .14);
    backface-visibility: hidden;
}

body.tg-home-v2-page .tg-v2-book-page::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255,255,255,.7), rgba(236,242,249,.96));
    transform: rotateY(180deg);
    backface-visibility: hidden;
}

body.tg-home-v2-page .tg-v2-book-page.is-flipped {
    transform: rotateY(-178deg);
    filter: brightness(.96);
}

body.tg-home-v2-page .tg-v2-book-page img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.tg-home-v2-page .tg-v2-book-page figcaption {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 8px 10px;
    color: #fff;
    background: rgba(7, 31, 61, .78);
    border-radius: 8px;
    font-size: 10px;
    line-height: 1.35;
}

body.tg-home-v2-page .tg-v2-book-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    padding-top: 15px;
}

body.tg-home-v2-page .tg-v2-book-controls button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid #d2deec;
    border-radius: 50%;
    color: var(--tg-blue);
    background: #fff;
    font-size: 15px;
    cursor: pointer;
}

body.tg-home-v2-page .tg-v2-book-controls button:disabled {
    opacity: .35;
    cursor: default;
}

body.tg-home-v2-page .tg-v2-book-counter {
    color: #627188;
    font-size: 11px;
    font-weight: 700;
}

body.tg-home-v2-page .tg-v2-video-card {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: #081d37;
}

body.tg-home-v2-page .tg-v2-video-label {
    margin-bottom: 12px;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
}

body.tg-home-v2-page .tg-v2-video-shell {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
}

body.tg-home-v2-page .tg-v2-video-shell img,
body.tg-home-v2-page .tg-v2-video-shell iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

body.tg-home-v2-page .tg-v2-video-shell::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,.28));
    pointer-events: none;
}

body.tg-home-v2-page .tg-v2-video-shell.is-playing::after {
    display: none;
}

body.tg-home-v2-page .tg-v2-video-play {
    position: absolute;
    z-index: 3;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    padding: 0;
    color: #fff;
    background: rgba(7, 87, 199, .95);
    border: 3px solid rgba(255,255,255,.85);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(0,0,0,.24);
}

body.tg-home-v2-page .tg-v2-video-play span {
    margin-left: 3px;
    font-size: 21px;
}

body.tg-home-v2-page .tg-v2-video-card > p {
    margin: 13px 0 0;
    color: #aebfd4;
    font-size: 11px;
    line-height: 1.55;
}

body.tg-home-v2-page .tg-v2-video-fallback,
body.tg-home-v2-page .tg-v2-video-empty {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    padding: 20px;
    color: #fff;
    border: 1px dashed rgba(255,255,255,.3);
    border-radius: 12px;
    text-align: center;
}

/* ==========================================================
   PROCESS + CTA
========================================================== */

body.tg-home-v2-page .tg-v2-process-section {
    padding: 64px 0;
    background: var(--tg-soft);
}

body.tg-home-v2-page .tg-v2-process-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

body.tg-home-v2-page .tg-v2-process-list li {
    display: flex;
    gap: 12px;
    min-height: 145px;
    padding: 18px;
    background: #fff;
    border: 1px solid #e1e7ef;
    border-radius: 13px;
}

body.tg-home-v2-page .tg-v2-process-list li > span {
    display: flex;
    flex: 0 0 32px;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #fff;
    background: var(--tg-blue);
    border-radius: 50%;
    font-size: 11px;
    font-weight: 900;
}

body.tg-home-v2-page .tg-v2-process-list h3 {
    margin: 3px 0 6px;
    color: #1b2a42;
    font-size: 13px;
    line-height: 1.35;
}

body.tg-home-v2-page .tg-v2-process-list p {
    margin: 0;
    color: #68758a;
    font-size: 11px;
    line-height: 1.55;
}

body.tg-home-v2-page .tg-v2-bottom-cta {
    padding: 34px 0;
    color: #fff;
    background: linear-gradient(120deg, #082b54, #0757c7 72%, #0a6deb);
}

body.tg-home-v2-page .tg-v2-bottom-cta-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(340px, .7fr);
    gap: 36px;
    align-items: center;
}

body.tg-home-v2-page .tg-v2-bottom-cta-copy > span {
    color: #bcd9ff;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

body.tg-home-v2-page .tg-v2-bottom-cta h2 {
    margin: 6px 0 7px;
    color: #fff;
    font-size: clamp(23px, 2.5vw, 32px);
    line-height: 1.2;
}

body.tg-home-v2-page .tg-v2-bottom-cta p {
    margin: 0;
    color: #d4e5fb;
    font-size: 12px;
    line-height: 1.55;
}

body.tg-home-v2-page .tg-v2-bottom-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

body.tg-home-v2-page .tg-v2-bottom-form input,
body.tg-home-v2-page .tg-v2-bottom-form button,
body.tg-home-v2-page .tg-v2-bottom-form a {
    min-height: 44px;
    border-radius: 9px;
}

body.tg-home-v2-page .tg-v2-bottom-form input {
    width: 100%;
    padding: 0 12px;
    border: 1px solid rgba(255,255,255,.4);
    background: #fff;
    color: #1f2937;
}

body.tg-home-v2-page .tg-v2-bottom-form button {
    padding: 0 16px;
    border: 0;
    color: var(--tg-blue);
    background: #fff;
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
}

body.tg-home-v2-page .tg-v2-bottom-form .is-outline {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border: 1px solid rgba(255,255,255,.35);
    font-size: 11px;
    font-weight: 800;
}

/* ==========================================================
   FOOTER V2
========================================================== */

body.tg-home-v2-page .tg-v2-footer {
    color: #c7d3e2;
    background: var(--tg-navy);
}

body.tg-home-v2-page .tg-v2-footer-container {
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
}

body.tg-home-v2-page .tg-v2-footer-main {
    padding: 46px 0 28px;
}

body.tg-home-v2-page .tg-v2-footer-grid {
    display: grid;
    grid-template-columns: 1.7fr repeat(3, 1fr);
    gap: 36px;
}

body.tg-home-v2-page .tg-v2-footer-logo img {
    display: block;
    width: auto;
    max-width: 150px;
    max-height: 70px;
    margin-bottom: 13px;
}

body.tg-home-v2-page .tg-v2-footer-brand h2 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 14px;
    line-height: 1.3;
}

body.tg-home-v2-page .tg-v2-footer-brand p {
    margin: 0 0 10px;
    max-width: 310px;
    color: #aebdd0;
    font-size: 11px;
    line-height: 1.55;
}

body.tg-home-v2-page .tg-v2-footer-hotline {
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

body.tg-home-v2-page .tg-v2-footer-col h3 {
    margin: 6px 0 12px;
    color: #fff;
    font-size: 12px;
    text-transform: uppercase;
}

body.tg-home-v2-page .tg-v2-footer-col ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

body.tg-home-v2-page .tg-v2-footer-col li {
    margin: 0 0 8px;
}

body.tg-home-v2-page .tg-v2-footer-col a,
body.tg-home-v2-page .tg-v2-footer-social a {
    color: #b5c4d6;
    font-size: 11px;
}

body.tg-home-v2-page .tg-v2-footer-col a:hover,
body.tg-home-v2-page .tg-v2-footer-social a:hover {
    color: #fff;
}

body.tg-home-v2-page .tg-v2-footer-branch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,.1);
}

body.tg-home-v2-page .tg-v2-footer-branch-row strong,
body.tg-home-v2-page .tg-v2-footer-branch-row span {
    display: block;
}

body.tg-home-v2-page .tg-v2-footer-branch-row strong {
    color: #fff;
    font-size: 12px;
}

body.tg-home-v2-page .tg-v2-footer-branch-row span {
    margin-top: 3px;
    color: #91a4bb;
    font-size: 10px;
}

body.tg-home-v2-page .tg-v2-footer-branch-row > a {
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

body.tg-home-v2-page .tg-v2-footer-bottom {
    padding: 14px 0;
    border-top: 1px solid rgba(255,255,255,.08);
}

body.tg-home-v2-page .tg-v2-footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    color: #8296ae;
    font-size: 10px;
}

body.tg-home-v2-page .tg-v2-footer-social {
    display: flex;
    gap: 14px;
}

body.tg-home-v2-page .tg-v2-mobile-contact {
    display: none;
}

/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 1100px) {
    body.tg-home-v2-page .tg-v2-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.tg-home-v2-page .tg-v2-field-keyword {
        grid-column: 1 / -1;
    }

    body.tg-home-v2-page .tg-v2-search-button {
        grid-column: 1 / -1;
    }

    body.tg-home-v2-page .tg-v2-job-head,
    body.tg-home-v2-page .tg-v2-job-card {
        grid-template-columns: minmax(175px, 1.5fr) minmax(125px, 1fr) minmax(100px, .8fr) minmax(105px, .9fr) minmax(100px, .8fr);
    }

    body.tg-home-v2-page .tg-v2-job-head span:nth-child(4),
    body.tg-home-v2-page .tg-v2-job-local {
        display: none;
    }

    body.tg-home-v2-page .tg-v2-media-grid {
        grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
    }
}

@media (max-width: 900px) {
    body.tg-home-v2-page .tg-v2-jobs-layout {
        grid-template-columns: 1fr;
    }

    body.tg-home-v2-page .tg-v2-sidebar {
        position: static;
        grid-template-columns: 1fr 1fr;
    }

    body.tg-home-v2-page .tg-v2-about-grid,
    body.tg-home-v2-page .tg-v2-media-grid,
    body.tg-home-v2-page .tg-v2-bottom-cta-inner {
        grid-template-columns: 1fr;
    }

    body.tg-home-v2-page .tg-v2-process-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.tg-home-v2-page .tg-v2-footer-grid {
        grid-template-columns: 1.4fr 1fr 1fr;
    }

    body.tg-home-v2-page .tg-v2-footer-col:last-child {
        grid-column: 2 / 4;
    }
}

/* ==========================================================
   MOBILE — designed independently, not desktop squeezed down
========================================================== */

@media (max-width: 767px) {
    body.tg-home-v2-page {
        padding-bottom: 64px;
    }

    body.tg-home-v2-page .tg-v2-container,
    body.tg-home-v2-page .tg-v2-footer-container {
        width: min(100% - 22px, 620px);
    }

    body.tg-home-v2-page .tg-v2-slider-wrap .metaslider,
    body.tg-home-v2-page .tg-v2-slider-wrap .ml-slider {
        overflow: hidden;
    }

    body.tg-home-v2-page .tg-v2-hero {
        padding: 24px 0 22px;
    }

    body.tg-home-v2-page .tg-v2-hero-copy {
        margin-bottom: 15px;
        text-align: left;
    }

    body.tg-home-v2-page .tg-v2-eyebrow,
    body.tg-home-v2-page .tg-v2-section-kicker {
        font-size: 10px;
    }

    body.tg-home-v2-page .tg-v2-hero h1 {
        margin: 6px 0 7px;
        font-size: 28px;
        line-height: 1.14;
    }

    body.tg-home-v2-page .tg-v2-hero-copy p {
        font-size: 13px;
        line-height: 1.55;
    }

    body.tg-home-v2-page .tg-v2-search-card {
        padding: 11px;
        border-radius: 13px;
        box-shadow: 0 9px 24px rgba(18, 55, 99, .08);
    }

    body.tg-home-v2-page .tg-v2-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    body.tg-home-v2-page .tg-v2-field-keyword,
    body.tg-home-v2-page .tg-v2-search-button {
        grid-column: 1 / -1;
    }

    body.tg-home-v2-page .tg-v2-field > span {
        margin-bottom: 4px;
        font-size: 9px;
    }

    body.tg-home-v2-page .tg-v2-field input,
    body.tg-home-v2-page .tg-v2-field select {
        height: 40px;
        padding: 0 8px;
        border-radius: 8px;
        font-size: 11px;
    }

    body.tg-home-v2-page .tg-v2-search-button {
        height: 41px;
        border-radius: 8px;
        font-size: 11px;
    }

    body.tg-home-v2-page .tg-v2-quick-row {
        display: block;
        margin-top: 10px;
        padding-top: 10px;
    }

    body.tg-home-v2-page .tg-v2-quick-label {
        display: none;
    }

    body.tg-home-v2-page .tg-v2-quick-chips {
        gap: 5px;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    body.tg-home-v2-page .tg-v2-quick-chips::-webkit-scrollbar {
        display: none;
    }

    body.tg-home-v2-page .tg-v2-chip {
        flex: 0 0 auto;
        padding: 6px 9px;
        font-size: 9px;
    }

    body.tg-home-v2-page .tg-v2-advanced-toggle {
        width: 100%;
        margin: 7px 0 0;
        padding: 8px 10px;
        border-radius: 8px;
        font-size: 10px;
    }

    body.tg-home-v2-page .tg-v2-advanced-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-top: 10px;
        padding-top: 10px;
    }

    body.tg-home-v2-page .tg-v2-clear-button {
        grid-column: 1 / -1;
        height: 38px;
        border-radius: 8px;
        font-size: 10px;
    }

    body.tg-home-v2-page .tg-v2-jobs-section {
        padding: 28px 0 34px;
    }

    body.tg-home-v2-page .tg-v2-results-toolbar {
        align-items: center;
        margin-bottom: 10px;
    }

    body.tg-home-v2-page .tg-v2-results-toolbar h2,
    body.tg-home-v2-page .tg-v2-section-heading h2,
    body.tg-home-v2-page .tg-v2-about-copy h2 {
        font-size: 23px;
    }

    body.tg-home-v2-page .tg-v2-results-toolbar p {
        font-size: 10px;
    }

    body.tg-home-v2-page .tg-v2-sort {
        width: 105px;
    }

    body.tg-home-v2-page .tg-v2-sort > span {
        font-size: 8px;
    }

    body.tg-home-v2-page .tg-v2-sort select {
        height: 34px;
        padding: 0 6px;
        font-size: 9px;
    }

    body.tg-home-v2-page .tg-v2-job-head {
        display: none !important;
    }

    body.tg-home-v2-page .tg-v2-job-results {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        border: 0;
        align-items: stretch;
    }

    body.tg-home-v2-page .tg-v2-job-card {
        display: flex !important;
        flex-direction: column;
        gap: 0;
        width: 100%;
        min-width: 0;
        min-height: 0 !important;
        height: 100%;
        margin: 0;
        padding: 10px;
        border: 1px solid #dfe7f0;
        border-radius: 11px;
        background: #fff;
        box-shadow: 0 4px 13px rgba(16, 49, 86, .055);
    }

    body.tg-home-v2-page .tg-v2-job-card:hover {
        box-shadow: 0 4px 13px rgba(16, 49, 86, .055);
    }

    body.tg-home-v2-page .tg-v2-job-main {
        margin: 0;
        padding: 0;
    }

    body.tg-home-v2-page .tg-v2-job-code-line {
        gap: 4px;
        margin: 0 0 4px;
    }

    body.tg-home-v2-page .tg-v2-job-code {
        font-size: 11px;
        line-height: 1.1;
    }

    body.tg-home-v2-page .tg-v2-new-badge {
        min-height: 14px;
        padding: 2px 4px;
        font-size: 7px;
    }

    body.tg-home-v2-page .tg-v2-job-title {
        display: -webkit-box;
        min-height: 34px;
        max-height: 34px;
        margin: 0;
        overflow: hidden;
        font-size: 12px;
        line-height: 1.4;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    body.tg-home-v2-page .tg-v2-job-exam,
    body.tg-home-v2-page .tg-v2-job-country,
    body.tg-home-v2-page .tg-v2-job-local,
    body.tg-home-v2-page .tg-v2-job-quantity,
    body.tg-home-v2-page .tg-v2-consult-link {
        display: none !important;
    }

    body.tg-home-v2-page .tg-v2-job-salary {
        display: block !important;
        margin: 7px 0 0;
        padding: 7px 0 6px;
        border-top: 1px solid #edf1f5;
    }

    body.tg-home-v2-page .tg-v2-job-salary .tg-v2-cell-label {
        display: block;
        margin-bottom: 2px;
        color: #7b8798;
        font-size: 8px;
        line-height: 1;
        font-weight: 800;
        text-transform: uppercase;
    }

    body.tg-home-v2-page .tg-v2-job-salary strong {
        min-height: 16px;
        font-size: 11px;
        line-height: 1.3;
    }

    body.tg-home-v2-page .tg-v2-job-actions {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 5px;
        margin: 0;
        padding: 6px 0 0;
        border-top: 1px solid #edf1f5;
    }

    body.tg-home-v2-page .tg-v2-status {
        padding: 3px 5px;
        font-size: 7px;
    }

    body.tg-home-v2-page .tg-v2-detail-button {
        min-height: 27px;
        padding: 5px 7px;
        border-radius: 6px;
        font-size: 9px;
    }

    body.tg-home-v2-page .tg-v2-load-more {
        min-height: 40px;
        margin-top: 10px;
        font-size: 10px;
    }

    /* Mobile: redundant quick-search sidebar is hidden; consultation remains below results. */
    body.tg-home-v2-page .tg-v2-sidebar {
        display: block;
        margin-top: 6px;
    }

    body.tg-home-v2-page .tg-v2-side-links {
        display: none;
    }

    body.tg-home-v2-page .tg-v2-consult-card {
        padding: 14px;
    }

    body.tg-home-v2-page .tg-v2-about-section,
    body.tg-home-v2-page .tg-v2-media-section,
    body.tg-home-v2-page .tg-v2-process-section {
        padding: 42px 0;
    }

    body.tg-home-v2-page .tg-v2-about-grid {
        gap: 20px;
    }

    body.tg-home-v2-page .tg-v2-about-visual,
    body.tg-home-v2-page .tg-v2-about-visual img,
    body.tg-home-v2-page .tg-v2-about-placeholder {
        min-height: 220px;
    }

    body.tg-home-v2-page .tg-v2-about-copy h2 {
        margin-top: 5px;
    }

    body.tg-home-v2-page .tg-v2-about-text {
        font-size: 12px;
        line-height: 1.6;
    }

    body.tg-home-v2-page .tg-v2-benefit-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-top: 22px;
    }

    body.tg-home-v2-page .tg-v2-benefit {
        min-height: 0;
        padding: 12px;
        border-radius: 10px;
    }

    body.tg-home-v2-page .tg-v2-benefit > span {
        width: 24px;
        height: 24px;
        font-size: 8px;
    }

    body.tg-home-v2-page .tg-v2-benefit h3 {
        margin: 8px 0 4px;
        font-size: 12px;
    }

    body.tg-home-v2-page .tg-v2-benefit p {
        font-size: 10px;
        line-height: 1.45;
    }

    body.tg-home-v2-page .tg-v2-section-heading-center {
        margin-bottom: 20px;
        text-align: left;
    }

    /* Album becomes native swipe on mobile, avoiding heavy 3D interactions. */
    body.tg-home-v2-page .tg-v2-album-card,
    body.tg-home-v2-page .tg-v2-video-card {
        border-radius: 13px;
    }

    body.tg-home-v2-page .tg-v2-album-card {
        min-height: 0;
        padding: 10px;
    }

    body.tg-home-v2-page .tg-v2-book-pages {
        display: flex;
        gap: 8px;
        min-height: 0;
        overflow-x: auto;
        overflow-y: hidden;
        perspective: none;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    body.tg-home-v2-page .tg-v2-book-pages::-webkit-scrollbar {
        display: none;
    }

    body.tg-home-v2-page .tg-v2-book-page,
    body.tg-home-v2-page .tg-v2-book-page.is-flipped {
        position: relative;
        inset: auto;
        flex: 0 0 88%;
        aspect-ratio: 4 / 3;
        transform: none !important;
        transition: none;
        scroll-snap-align: center;
        box-shadow: none;
    }

    body.tg-home-v2-page .tg-v2-book-page::after {
        display: none;
    }

    body.tg-home-v2-page .tg-v2-book-controls {
        padding-top: 9px;
    }

    body.tg-home-v2-page .tg-v2-book-controls button {
        width: 30px;
        height: 30px;
    }

    body.tg-home-v2-page .tg-v2-video-card {
        padding: 12px;
    }

    body.tg-home-v2-page .tg-v2-video-label {
        margin-bottom: 8px;
        font-size: 13px;
    }

    body.tg-home-v2-page .tg-v2-video-shell {
        aspect-ratio: 16 / 9;
        border-radius: 9px;
    }

    body.tg-home-v2-page .tg-v2-video-play {
        width: 48px;
        height: 48px;
    }

    body.tg-home-v2-page .tg-v2-video-card > p {
        margin-top: 8px;
        font-size: 9px;
    }

    body.tg-home-v2-page .tg-v2-process-list {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-top: 19px;
    }

    body.tg-home-v2-page .tg-v2-process-list li {
        min-height: 0;
        padding: 12px;
    }

    body.tg-home-v2-page .tg-v2-bottom-cta {
        padding: 28px 0;
    }

    body.tg-home-v2-page .tg-v2-bottom-cta-inner {
        gap: 18px;
    }

    body.tg-home-v2-page .tg-v2-bottom-cta h2 {
        font-size: 22px;
    }

    body.tg-home-v2-page .tg-v2-bottom-form {
        grid-template-columns: 1fr;
    }

    body.tg-home-v2-page .tg-v2-bottom-form button,
    body.tg-home-v2-page .tg-v2-bottom-form .is-outline {
        grid-column: 1;
    }

    body.tg-home-v2-page .tg-v2-footer-main {
        padding: 34px 0 20px;
    }

    body.tg-home-v2-page .tg-v2-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 18px;
    }

    body.tg-home-v2-page .tg-v2-footer-brand {
        grid-column: 1 / -1;
    }

    body.tg-home-v2-page .tg-v2-footer-col:last-child {
        grid-column: auto;
    }

    body.tg-home-v2-page .tg-v2-footer-branch-row,
    body.tg-home-v2-page .tg-v2-footer-bottom-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    body.tg-home-v2-page .tg-v2-footer-branch-row {
        gap: 10px;
    }

    body.tg-home-v2-page .tg-v2-mobile-contact {
        position: fixed;
        z-index: 9998;
        left: 0;
        right: 0;
        bottom: 0;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        min-height: 58px;
        padding: 4px 6px 3px;
        background: rgba(255,255,255,.97);
        border-top: 1px solid #dce4ee;
        box-shadow: 0 -5px 20px rgba(15, 45, 80, .12);
        backdrop-filter: blur(8px);
    }

    body.tg-home-v2-page .tg-v2-mobile-contact > a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        color: #48576d;
        font-size: 9px;
        font-weight: 700;
    }

    body.tg-home-v2-page .tg-v2-mobile-contact-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 27px;
        height: 27px;
        border-radius: 50%;
        color: #fff;
        background: var(--tg-blue);
        font-size: 12px;
        font-weight: 900;
    }

    body.tg-home-v2-page .tg-v2-mobile-contact .is-call .tg-v2-mobile-contact-icon {
        width: 36px;
        height: 36px;
        margin-top: -13px;
        background: #e3342f;
        border: 3px solid #fff;
        box-shadow: 0 4px 12px rgba(227, 52, 47, .26);
    }
}

@media (max-width: 370px) {
    body.tg-home-v2-page .tg-v2-filter-grid,
    body.tg-home-v2-page .tg-v2-advanced-filters {
        grid-template-columns: 1fr;
    }

    body.tg-home-v2-page .tg-v2-field-keyword,
    body.tg-home-v2-page .tg-v2-search-button,
    body.tg-home-v2-page .tg-v2-clear-button {
        grid-column: 1;
    }

    body.tg-home-v2-page .tg-v2-job-results {
        grid-template-columns: 1fr;
    }

    body.tg-home-v2-page .tg-v2-benefit-grid,
    body.tg-home-v2-page .tg-v2-footer-grid {
        grid-template-columns: 1fr;
    }

    body.tg-home-v2-page .tg-v2-footer-brand {
        grid-column: 1;
    }
}


/* ==========================================================
   V2.7 TYPOGRAPHY + FILTER CLEANUP
   Keep the theme slider; normalize only V2 content typography.
========================================================== */
body.tg-home-v2-page .tg-v2-home,
body.tg-home-v2-page .tg-v2-home input,
body.tg-home-v2-page .tg-v2-home select,
body.tg-home-v2-page .tg-v2-home button,
body.tg-home-v2-page .tg-v2-home textarea,
body.tg-home-v2-page .tg-v2-home h1,
body.tg-home-v2-page .tg-v2-home h2,
body.tg-home-v2-page .tg-v2-home h3 {
    font-family: 'Roboto', Arial, Helvetica, sans-serif !important;
}

body.tg-home-v2-page .tg-v2-home {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.55;
}

body.tg-home-v2-page .tg-v2-eyebrow,
body.tg-home-v2-page .tg-v2-section-kicker {
    font-size: 13px;
    font-weight: 700;
}

body.tg-home-v2-page .tg-v2-hero h1,
body.tg-home-v2-page .tg-v2-results-toolbar h2,
body.tg-home-v2-page .tg-v2-section-heading h2,
body.tg-home-v2-page .tg-v2-about-copy h2 {
    font-weight: 700;
}

body.tg-home-v2-page .tg-v2-field > span,
body.tg-home-v2-page .tg-v2-sort > span {
    font-size: 12px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
}

body.tg-home-v2-page .tg-v2-field input,
body.tg-home-v2-page .tg-v2-field select,
body.tg-home-v2-page .tg-v2-sort select {
    font-size: 14px;
    font-weight: 400;
}

body.tg-home-v2-page .tg-v2-search-button {
    font-size: 14px;
    font-weight: 700;
}

body.tg-home-v2-page .tg-v2-quick-label,
body.tg-home-v2-page .tg-v2-chip,
body.tg-home-v2-page .tg-v2-advanced-toggle,
body.tg-home-v2-page .tg-v2-clear-button {
    font-size: 13px;
    font-weight: 500;
}

body.tg-home-v2-page .tg-v2-results-toolbar p {
    font-size: 14px;
}

body.tg-home-v2-page .tg-v2-job-head {
    font-size: 11px;
    font-weight: 600;
}

body.tg-home-v2-page .tg-v2-job-code {
    font-size: 14px;
    font-weight: 700;
}

body.tg-home-v2-page .tg-v2-new-badge {
    font-size: 9px;
    font-weight: 700;
}

body.tg-home-v2-page .tg-v2-job-title {
    font-size: 15px;
    font-weight: 600;
}

body.tg-home-v2-page .tg-v2-job-exam {
    font-size: 11px;
}

body.tg-home-v2-page .tg-v2-job-cell strong {
    font-size: 13px;
    font-weight: 600;
}

body.tg-home-v2-page .tg-v2-job-cell small {
    font-size: 10.5px;
    font-weight: 400;
}

body.tg-home-v2-page .tg-v2-status {
    font-size: 9px;
    font-weight: 700;
}

body.tg-home-v2-page .tg-v2-detail-button,
body.tg-home-v2-page .tg-v2-consult-link,
body.tg-home-v2-page .tg-v2-load-more {
    font-size: 11px;
    font-weight: 600;
}

body.tg-home-v2-page .tg-v2-side-card h2 {
    font-size: 18px;
    font-weight: 700;
}

body.tg-home-v2-page .tg-v2-side-links button {
    font-size: 13px;
    font-weight: 500;
}

body.tg-home-v2-page .tg-v2-consult-card > span {
    font-size: 11px;
    font-weight: 600;
}

body.tg-home-v2-page .tg-v2-consult-card p {
    font-size: 13px;
    font-weight: 400;
}

body.tg-home-v2-page .tg-v2-side-primary,
body.tg-home-v2-page .tg-v2-side-phone {
    font-size: 13px;
    font-weight: 600;
}

@media (max-width: 767px) {
    body.tg-home-v2-page .tg-v2-field > span {
        font-size: 10.5px;
        font-weight: 600;
    }

    body.tg-home-v2-page .tg-v2-field input,
    body.tg-home-v2-page .tg-v2-field select {
        font-size: 12px;
    }

    body.tg-home-v2-page .tg-v2-search-button {
        font-size: 12px;
    }

    body.tg-home-v2-page .tg-v2-chip,
    body.tg-home-v2-page .tg-v2-advanced-toggle {
        font-size: 10.5px;
    }

    body.tg-home-v2-page .tg-v2-job-code {
        font-size: 12px;
    }

    body.tg-home-v2-page .tg-v2-job-title {
        font-size: 13px;
        font-weight: 600;
    }

    body.tg-home-v2-page .tg-v2-job-salary .tg-v2-cell-label {
        font-size: 9px;
        font-weight: 600;
    }

    body.tg-home-v2-page .tg-v2-job-salary strong {
        font-size: 12px;
        font-weight: 600;
    }

    body.tg-home-v2-page .tg-v2-status {
        font-size: 8px;
    }

    body.tg-home-v2-page .tg-v2-detail-button {
        font-size: 10.5px;
        font-weight: 600;
    }
}


/* ==========================================================
   V2.8 — ADVANCED LOCATION FILTER + COMPACT MOBILE JOB CARDS
========================================================== */

/* Reset filter: smaller but more visible. */
body.tg-home-v2-page .tg-v2-clear-button {
    width: max-content !important;
    min-width: 0 !important;
    height: 34px !important;
    align-self: end !important;
    justify-self: start !important;
    padding: 0 12px !important;
    border: 1px solid #f4a6a6 !important;
    border-radius: 8px !important;
    color: #b42318 !important;
    background: #fff4f2 !important;
    font-size: 12px !important;
    line-height: 1 !important;
    font-weight: 700 !important;
    box-shadow: 0 3px 10px rgba(180, 35, 24, .08) !important;
}

body.tg-home-v2-page .tg-v2-clear-button:hover {
    color: #fff !important;
    background: #c62828 !important;
    border-color: #c62828 !important;
}

body.tg-home-v2-page #tg-v2-province:disabled {
    color: #98a2b3 !important;
    background: #f6f8fb !important;
    cursor: not-allowed;
}

@media (max-width: 767px) {
    /* Keep two jobs per row on normal phones, including 360–370px screens. */
    body.tg-home-v2-page .tg-v2-job-results {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        align-items: stretch !important;
    }

    body.tg-home-v2-page .tg-v2-job-card {
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        padding: 9px 8px !important;
        gap: 0 !important;
        border-radius: 10px !important;
    }

    body.tg-home-v2-page .tg-v2-job-main {
        display: block !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        text-align: left !important;
    }

    body.tg-home-v2-page .tg-v2-job-code-line {
        justify-content: flex-start !important;
        margin: 0 0 3px !important;
        gap: 4px !important;
    }

    body.tg-home-v2-page .tg-v2-job-code {
        font-size: 12px !important;
        line-height: 1.15 !important;
    }

    body.tg-home-v2-page .tg-v2-new-badge {
        min-height: 14px !important;
        padding: 2px 4px !important;
        font-size: 7px !important;
        line-height: 1 !important;
    }

    body.tg-home-v2-page .tg-v2-job-title {
        display: -webkit-box !important;
        min-height: 32px !important;
        max-height: 32px !important;
        margin: 0 !important;
        overflow: hidden !important;
        font-size: 12.5px !important;
        line-height: 1.28 !important;
        font-weight: 600 !important;
        text-align: left !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 2 !important;
    }

    body.tg-home-v2-page .tg-v2-job-salary {
        display: block !important;
        margin: 6px 0 0 !important;
        padding: 6px 0 5px !important;
        border-top: 1px solid #edf1f5 !important;
        border-bottom: 0 !important;
        text-align: left !important;
    }

    body.tg-home-v2-page .tg-v2-job-salary .tg-v2-cell-label {
        margin: 0 0 2px !important;
        font-size: 8px !important;
        line-height: 1 !important;
        font-weight: 600 !important;
    }

    body.tg-home-v2-page .tg-v2-job-salary strong {
        min-height: 0 !important;
        margin: 0 !important;
        font-size: 12px !important;
        line-height: 1.25 !important;
        font-weight: 600 !important;
    }

    body.tg-home-v2-page .tg-v2-job-actions {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 5px !important;
        margin: 0 !important;
        padding: 5px 0 0 !important;
        border-top: 1px solid #edf1f5 !important;
    }

    body.tg-home-v2-page .tg-v2-status {
        flex: 0 1 auto !important;
        max-width: 50% !important;
        padding: 3px 5px !important;
        font-size: 7px !important;
        line-height: 1 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    body.tg-home-v2-page .tg-v2-detail-button {
        flex: 0 0 auto !important;
        width: auto !important;
        min-height: 27px !important;
        margin: 0 !important;
        padding: 5px 7px !important;
        font-size: 10px !important;
        line-height: 1 !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
    }

    body.tg-home-v2-page .tg-v2-clear-button {
        grid-column: auto !important;
        width: max-content !important;
        height: 32px !important;
        padding: 0 10px !important;
        font-size: 11px !important;
    }
}

/* Only very narrow legacy screens fall back to one card per row. */
@media (max-width: 319px) {
    body.tg-home-v2-page .tg-v2-job-results {
        grid-template-columns: 1fr !important;
    }
}

/* ==========================================================
   V2.8.1 — FINAL TYPOGRAPHY SYSTEM
   Reference direction: readable modern service/recruitment site.
   Goal: remove tiny text, normalize weights, keep mobile compact.
========================================================== */

body.tg-home-v2-page .tg-v2-home,
body.tg-home-v2-page .tg-v2-home h1,
body.tg-home-v2-page .tg-v2-home h2,
body.tg-home-v2-page .tg-v2-home h3,
body.tg-home-v2-page .tg-v2-home h4,
body.tg-home-v2-page .tg-v2-home h5,
body.tg-home-v2-page .tg-v2-home h6,
body.tg-home-v2-page .tg-v2-home p,
body.tg-home-v2-page .tg-v2-home a,
body.tg-home-v2-page .tg-v2-home span,
body.tg-home-v2-page .tg-v2-home strong,
body.tg-home-v2-page .tg-v2-home small,
body.tg-home-v2-page .tg-v2-home label,
body.tg-home-v2-page .tg-v2-home li,
body.tg-home-v2-page .tg-v2-home button,
body.tg-home-v2-page .tg-v2-home input,
body.tg-home-v2-page .tg-v2-home select,
body.tg-home-v2-page .tg-v2-home textarea {
    font-family: 'Roboto', Arial, Helvetica, sans-serif !important;
}

body.tg-home-v2-page .tg-v2-home {
    font-size: 16px !important;
    line-height: 1.6 !important;
    font-weight: 400 !important;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Section hierarchy */
body.tg-home-v2-page .tg-v2-eyebrow,
body.tg-home-v2-page .tg-v2-section-kicker {
    font-size: 14px !important;
    line-height: 1.35 !important;
    font-weight: 600 !important;
    letter-spacing: .055em !important;
}

body.tg-home-v2-page .tg-v2-hero h1 {
    font-size: clamp(36px, 4vw, 50px) !important;
    line-height: 1.12 !important;
    font-weight: 700 !important;
}

body.tg-home-v2-page .tg-v2-hero-copy p {
    font-size: 17px !important;
    line-height: 1.65 !important;
    font-weight: 400 !important;
}

body.tg-home-v2-page .tg-v2-results-toolbar h2,
body.tg-home-v2-page .tg-v2-section-heading h2,
body.tg-home-v2-page .tg-v2-about-copy h2 {
    font-size: clamp(30px, 2.7vw, 38px) !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
}

body.tg-home-v2-page .tg-v2-results-toolbar p,
body.tg-home-v2-page .tg-v2-section-heading p {
    font-size: 16px !important;
    line-height: 1.6 !important;
    font-weight: 400 !important;
}

/* Search + filters */
body.tg-home-v2-page .tg-v2-field > span,
body.tg-home-v2-page .tg-v2-sort > span {
    font-size: 13px !important;
    line-height: 1.3 !important;
    font-weight: 600 !important;
    text-transform: none !important;
}

body.tg-home-v2-page .tg-v2-field input,
body.tg-home-v2-page .tg-v2-field select,
body.tg-home-v2-page .tg-v2-sort select {
    font-size: 15px !important;
    line-height: 1.4 !important;
    font-weight: 400 !important;
}

body.tg-home-v2-page .tg-v2-search-button {
    font-size: 15px !important;
    font-weight: 600 !important;
}

body.tg-home-v2-page .tg-v2-quick-label,
body.tg-home-v2-page .tg-v2-chip,
body.tg-home-v2-page .tg-v2-advanced-toggle {
    font-size: 14px !important;
    line-height: 1.25 !important;
    font-weight: 500 !important;
}

body.tg-home-v2-page .tg-v2-clear-button {
    font-size: 13px !important;
    font-weight: 600 !important;
}

/* Job list desktop */
body.tg-home-v2-page .tg-v2-job-head {
    font-size: 12px !important;
    line-height: 1.3 !important;
    font-weight: 600 !important;
}

body.tg-home-v2-page .tg-v2-job-code {
    font-size: 15px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
}

body.tg-home-v2-page .tg-v2-new-badge {
    font-size: 10px !important;
    line-height: 1 !important;
    font-weight: 700 !important;
}

body.tg-home-v2-page .tg-v2-job-title {
    font-size: 16px !important;
    line-height: 1.42 !important;
    font-weight: 600 !important;
}

body.tg-home-v2-page .tg-v2-job-exam {
    font-size: 12.5px !important;
    line-height: 1.45 !important;
    font-weight: 400 !important;
}

body.tg-home-v2-page .tg-v2-job-cell strong {
    font-size: 14px !important;
    line-height: 1.45 !important;
    font-weight: 600 !important;
}

body.tg-home-v2-page .tg-v2-job-cell small {
    font-size: 12px !important;
    line-height: 1.45 !important;
    font-weight: 400 !important;
}

body.tg-home-v2-page .tg-v2-status {
    font-size: 10px !important;
    font-weight: 700 !important;
}

body.tg-home-v2-page .tg-v2-detail-button,
body.tg-home-v2-page .tg-v2-consult-link {
    font-size: 13px !important;
    line-height: 1.2 !important;
    font-weight: 600 !important;
}

body.tg-home-v2-page .tg-v2-load-more {
    font-size: 14px !important;
    font-weight: 600 !important;
}

/* Sticky sidebar */
body.tg-home-v2-page .tg-v2-side-card h2 {
    font-size: 20px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
}

body.tg-home-v2-page .tg-v2-side-links button {
    font-size: 14px !important;
    line-height: 1.45 !important;
    font-weight: 500 !important;
}

body.tg-home-v2-page .tg-v2-consult-card > span {
    font-size: 12px !important;
    font-weight: 600 !important;
}

body.tg-home-v2-page .tg-v2-consult-card p {
    font-size: 14px !important;
    line-height: 1.6 !important;
    font-weight: 400 !important;
}

body.tg-home-v2-page .tg-v2-side-primary,
body.tg-home-v2-page .tg-v2-side-phone {
    font-size: 14px !important;
    font-weight: 600 !important;
}

/* About / Why Thanh Giang */
body.tg-home-v2-page .tg-v2-about-text {
    font-size: 16px !important;
    line-height: 1.72 !important;
    font-weight: 400 !important;
}

body.tg-home-v2-page .tg-v2-text-link {
    font-size: 14px !important;
    font-weight: 600 !important;
}

body.tg-home-v2-page .tg-v2-benefit > span {
    width: 32px !important;
    height: 32px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
}

body.tg-home-v2-page .tg-v2-benefit h3 {
    font-size: 17px !important;
    line-height: 1.4 !important;
    font-weight: 600 !important;
}

body.tg-home-v2-page .tg-v2-benefit p {
    font-size: 15px !important;
    line-height: 1.6 !important;
    font-weight: 400 !important;
}

/* Album + video */
body.tg-home-v2-page .tg-v2-book-page figcaption {
    font-size: 13px !important;
    line-height: 1.45 !important;
    font-weight: 400 !important;
}

body.tg-home-v2-page .tg-v2-book-counter {
    font-size: 13px !important;
    font-weight: 500 !important;
}

body.tg-home-v2-page .tg-v2-video-label {
    font-size: 17px !important;
    font-weight: 600 !important;
}

body.tg-home-v2-page .tg-v2-video-card > p {
    font-size: 14px !important;
    line-height: 1.6 !important;
    font-weight: 400 !important;
}

/* Process */
body.tg-home-v2-page .tg-v2-process-list li > span {
    font-size: 12px !important;
    font-weight: 700 !important;
}

body.tg-home-v2-page .tg-v2-process-list h3 {
    font-size: 17px !important;
    line-height: 1.4 !important;
    font-weight: 600 !important;
}

body.tg-home-v2-page .tg-v2-process-list p {
    font-size: 14.5px !important;
    line-height: 1.6 !important;
    font-weight: 400 !important;
}

/* Bottom CTA */
body.tg-home-v2-page .tg-v2-bottom-cta-copy > span {
    font-size: 13px !important;
    font-weight: 600 !important;
}

body.tg-home-v2-page .tg-v2-bottom-cta h2 {
    font-size: clamp(28px, 2.5vw, 36px) !important;
    line-height: 1.22 !important;
    font-weight: 700 !important;
}

body.tg-home-v2-page .tg-v2-bottom-cta p {
    font-size: 16px !important;
    line-height: 1.6 !important;
    font-weight: 400 !important;
}

body.tg-home-v2-page .tg-v2-bottom-form input,
body.tg-home-v2-page .tg-v2-bottom-form button,
body.tg-home-v2-page .tg-v2-bottom-form a {
    font-size: 14px !important;
    font-weight: 500 !important;
}

/* Footer */
body.tg-home-v2-page .tg-v2-footer-brand h2 {
    font-size: 19px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
}

body.tg-home-v2-page .tg-v2-footer-brand p {
    font-size: 14px !important;
    line-height: 1.65 !important;
    font-weight: 400 !important;
}

body.tg-home-v2-page .tg-v2-footer-hotline {
    font-size: 15px !important;
    font-weight: 600 !important;
}

body.tg-home-v2-page .tg-v2-footer-col h3 {
    font-size: 15px !important;
    line-height: 1.35 !important;
    font-weight: 600 !important;
}

body.tg-home-v2-page .tg-v2-footer-col a,
body.tg-home-v2-page .tg-v2-footer-social a {
    font-size: 14px !important;
    line-height: 1.5 !important;
    font-weight: 400 !important;
}

body.tg-home-v2-page .tg-v2-footer-branch-row strong {
    font-size: 14px !important;
    font-weight: 600 !important;
}

body.tg-home-v2-page .tg-v2-footer-branch-row span {
    font-size: 13px !important;
    line-height: 1.5 !important;
}

body.tg-home-v2-page .tg-v2-footer-branch-row > a {
    font-size: 14px !important;
    font-weight: 600 !important;
}

body.tg-home-v2-page .tg-v2-footer-bottom-inner {
    font-size: 13px !important;
    line-height: 1.5 !important;
}

/* Mobile: readable, but still compact enough for two job cards per row. */
@media (max-width: 767px) {
    body.tg-home-v2-page .tg-v2-home {
        font-size: 15px !important;
        line-height: 1.58 !important;
    }

    body.tg-home-v2-page .tg-v2-container,
    body.tg-home-v2-page .tg-v2-footer-container {
        width: min(100% - 24px, 1240px) !important;
    }

    body.tg-home-v2-page .tg-v2-eyebrow,
    body.tg-home-v2-page .tg-v2-section-kicker {
        font-size: 12.5px !important;
    }

    body.tg-home-v2-page .tg-v2-hero h1 {
        font-size: 30px !important;
        line-height: 1.18 !important;
    }

    body.tg-home-v2-page .tg-v2-hero-copy p,
    body.tg-home-v2-page .tg-v2-results-toolbar p,
    body.tg-home-v2-page .tg-v2-section-heading p,
    body.tg-home-v2-page .tg-v2-about-text,
    body.tg-home-v2-page .tg-v2-bottom-cta p {
        font-size: 15px !important;
    }

    body.tg-home-v2-page .tg-v2-results-toolbar h2,
    body.tg-home-v2-page .tg-v2-section-heading h2,
    body.tg-home-v2-page .tg-v2-about-copy h2 {
        font-size: 27px !important;
        line-height: 1.22 !important;
    }

    body.tg-home-v2-page .tg-v2-field > span,
    body.tg-home-v2-page .tg-v2-sort > span {
        font-size: 12px !important;
    }

    body.tg-home-v2-page .tg-v2-field input,
    body.tg-home-v2-page .tg-v2-field select,
    body.tg-home-v2-page .tg-v2-sort select,
    body.tg-home-v2-page .tg-v2-search-button {
        font-size: 14px !important;
    }

    body.tg-home-v2-page .tg-v2-quick-label,
    body.tg-home-v2-page .tg-v2-chip,
    body.tg-home-v2-page .tg-v2-advanced-toggle,
    body.tg-home-v2-page .tg-v2-clear-button {
        font-size: 12px !important;
    }

    /* Two-card mobile jobs */
    body.tg-home-v2-page .tg-v2-job-code {
        font-size: 13px !important;
        line-height: 1.2 !important;
    }

    body.tg-home-v2-page .tg-v2-new-badge {
        font-size: 8px !important;
    }

    body.tg-home-v2-page .tg-v2-job-title {
        min-height: 36px !important;
        max-height: 36px !important;
        font-size: 13.5px !important;
        line-height: 1.32 !important;
        font-weight: 600 !important;
    }

    body.tg-home-v2-page .tg-v2-job-salary .tg-v2-cell-label {
        font-size: 9px !important;
        font-weight: 500 !important;
    }

    body.tg-home-v2-page .tg-v2-job-salary strong {
        font-size: 13px !important;
        line-height: 1.3 !important;
    }

    body.tg-home-v2-page .tg-v2-status {
        font-size: 8px !important;
    }

    body.tg-home-v2-page .tg-v2-detail-button {
        min-height: 29px !important;
        font-size: 11px !important;
        font-weight: 600 !important;
    }

    body.tg-home-v2-page .tg-v2-benefit h3,
    body.tg-home-v2-page .tg-v2-process-list h3 {
        font-size: 16px !important;
    }

    body.tg-home-v2-page .tg-v2-benefit p,
    body.tg-home-v2-page .tg-v2-process-list p,
    body.tg-home-v2-page .tg-v2-video-card > p {
        font-size: 14px !important;
    }

    body.tg-home-v2-page .tg-v2-video-label {
        font-size: 16px !important;
    }

    body.tg-home-v2-page .tg-v2-bottom-cta h2 {
        font-size: 27px !important;
    }

    body.tg-home-v2-page .tg-v2-footer-brand h2 {
        font-size: 18px !important;
    }

    body.tg-home-v2-page .tg-v2-footer-brand p,
    body.tg-home-v2-page .tg-v2-footer-col a,
    body.tg-home-v2-page .tg-v2-footer-social a {
        font-size: 14px !important;
    }

    body.tg-home-v2-page .tg-v2-footer-col h3 {
        font-size: 15px !important;
    }

    body.tg-home-v2-page .tg-v2-footer-bottom-inner {
        font-size: 12.5px !important;
    }
}


/* ==========================================================
   V2.9 COLORFUL STAGING
   More vivid without turning the page into a rainbow.
   Palette comes from Appearance -> Trang chủ V2.
========================================================== */

body.tg-home-v2-page {
    background:
        linear-gradient(180deg, #ffffff 0%, var(--tg-soft) 38%, #ffffff 100%);
}

/* HERO */
body.tg-home-v2-page .tg-v2-hero {
    position: relative;
    overflow: hidden;
    padding-top: 38px;
    background:
        radial-gradient(circle at 8% 25%, color-mix(in srgb, var(--tg-yellow) 24%, transparent), transparent 24%),
        radial-gradient(circle at 92% 18%, color-mix(in srgb, var(--tg-purple) 18%, transparent), transparent 26%),
        linear-gradient(135deg, #ffffff 0%, color-mix(in srgb, var(--tg-blue) 8%, #ffffff) 50%, color-mix(in srgb, var(--tg-red) 6%, #ffffff) 100%) !important;
    border-bottom: 0 !important;
}

body.tg-home-v2-page .tg-v2-hero::before,
body.tg-home-v2-page .tg-v2-hero::after {
    content: "";
    position: absolute;
    pointer-events: none;
    border-radius: 999px;
    opacity: .8;
}
body.tg-home-v2-page .tg-v2-hero::before {
    width: 180px;
    height: 12px;
    left: -38px;
    bottom: 20px;
    background: linear-gradient(90deg, var(--tg-red), var(--tg-yellow));
    transform: rotate(-7deg);
}
body.tg-home-v2-page .tg-v2-hero::after {
    width: 120px;
    height: 12px;
    right: -20px;
    top: 24px;
    background: linear-gradient(90deg, var(--tg-purple), var(--tg-blue));
    transform: rotate(8deg);
}

body.tg-home-v2-page .tg-v2-eyebrow,
body.tg-home-v2-page .tg-v2-section-kicker {
    color: var(--tg-blue) !important;
}

body.tg-home-v2-page .tg-v2-search-card {
    position: relative;
    border: 1px solid color-mix(in srgb, var(--tg-blue) 18%, #dfe7f2) !important;
    border-top: 4px solid transparent !important;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(90deg, var(--tg-blue), var(--tg-purple), var(--tg-red), var(--tg-yellow)) border-box !important;
    box-shadow: 0 18px 48px rgba(18,55,99,.13) !important;
}

/* Search button */
body.tg-home-v2-page .tg-v2-search-button {
    background: linear-gradient(135deg, var(--tg-red), color-mix(in srgb, var(--tg-red) 70%, var(--tg-orange))) !important;
    box-shadow: 0 10px 24px color-mix(in srgb, var(--tg-red) 28%, transparent) !important;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
body.tg-home-v2-page .tg-v2-search-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 13px 28px color-mix(in srgb, var(--tg-red) 34%, transparent) !important;
}

/* Quick filters: colorful but consistent */
body.tg-home-v2-page .tg-v2-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fff !important;
    border-width: 1px !important;
    box-shadow: 0 2px 8px rgba(15,45,78,.04);
}
body.tg-home-v2-page .tg-v2-chip:nth-child(1) {
    color: var(--tg-red) !important;
    border-color: color-mix(in srgb, var(--tg-red) 34%, #fff) !important;
}
body.tg-home-v2-page .tg-v2-chip:nth-child(2) {
    color: #087f5b !important;
    border-color: color-mix(in srgb, var(--tg-green) 40%, #fff) !important;
}
body.tg-home-v2-page .tg-v2-chip:nth-child(3) {
    color: #d81b36 !important;
    border-color: #ffd0d8 !important;
}
body.tg-home-v2-page .tg-v2-chip:nth-child(4) {
    color: #d89a00 !important;
    border-color: #ffe3a0 !important;
}
body.tg-home-v2-page .tg-v2-chip:nth-child(5) {
    color: var(--tg-blue) !important;
    border-color: #bfd9ff !important;
}
body.tg-home-v2-page .tg-v2-chip:nth-child(6) {
    color: var(--tg-purple) !important;
    border-color: #ddd0ff !important;
}
body.tg-home-v2-page .tg-v2-chip:nth-child(7) {
    color: var(--tg-orange) !important;
    border-color: #ffd5bd !important;
}
body.tg-home-v2-page .tg-v2-chip:nth-child(8) {
    color: #0f8f91 !important;
    border-color: #bce8e9 !important;
}

body.tg-home-v2-page .tg-v2-chip:hover,
body.tg-home-v2-page .tg-v2-chip.is-active {
    color: #fff !important;
    border-color: transparent !important;
    transform: translateY(-1px);
}
body.tg-home-v2-page .tg-v2-chip:nth-child(1):hover,
body.tg-home-v2-page .tg-v2-chip:nth-child(1).is-active { background: var(--tg-red) !important; }
body.tg-home-v2-page .tg-v2-chip:nth-child(2):hover,
body.tg-home-v2-page .tg-v2-chip:nth-child(2).is-active { background: var(--tg-green) !important; }
body.tg-home-v2-page .tg-v2-chip:nth-child(3):hover,
body.tg-home-v2-page .tg-v2-chip:nth-child(3).is-active { background: #e4364f !important; }
body.tg-home-v2-page .tg-v2-chip:nth-child(4):hover,
body.tg-home-v2-page .tg-v2-chip:nth-child(4).is-active { background: #e0a000 !important; }
body.tg-home-v2-page .tg-v2-chip:nth-child(5):hover,
body.tg-home-v2-page .tg-v2-chip:nth-child(5).is-active { background: var(--tg-blue) !important; }
body.tg-home-v2-page .tg-v2-chip:nth-child(6):hover,
body.tg-home-v2-page .tg-v2-chip:nth-child(6).is-active { background: var(--tg-purple) !important; }
body.tg-home-v2-page .tg-v2-chip:nth-child(7):hover,
body.tg-home-v2-page .tg-v2-chip:nth-child(7).is-active { background: var(--tg-orange) !important; }
body.tg-home-v2-page .tg-v2-chip:nth-child(8):hover,
body.tg-home-v2-page .tg-v2-chip:nth-child(8).is-active { background: #0f8f91 !important; }

body.tg-home-v2-page .tg-v2-chip-flag {
    font-size: 16px;
    line-height: 1;
}

/* No font-glyph arrow: pure CSS */
body.tg-home-v2-page .tg-v2-advanced-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: var(--tg-blue) !important;
    background: color-mix(in srgb, var(--tg-blue) 5%, #fff) !important;
    border-color: color-mix(in srgb, var(--tg-blue) 24%, #fff) !important;
    font-weight: 600 !important;
}
body.tg-home-v2-page .tg-v2-advanced-toggle::after {
    content: "";
    width: 8px;
    height: 8px;
    margin-top: -4px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform .2s ease, margin .2s ease;
}
body.tg-home-v2-page .tg-v2-advanced-toggle[aria-expanded="true"]::after {
    margin-top: 4px;
    transform: rotate(225deg);
}

/* Advanced filter: full panel, every real taxonomy filter visible when expanded */
body.tg-home-v2-page .tg-v2-advanced-filters {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 14px !important;
    margin: 16px -4px -4px !important;
    padding: 18px !important;
    border: 1px solid color-mix(in srgb, var(--tg-blue) 14%, #e8edf5) !important;
    border-radius: 14px;
    background:
        linear-gradient(135deg,
            color-mix(in srgb, var(--tg-blue) 4%, #fff),
            color-mix(in srgb, var(--tg-purple) 4%, #fff),
            color-mix(in srgb, var(--tg-yellow) 5%, #fff)) !important;
}

body.tg-home-v2-page .tg-v2-clear-button {
    width: max-content !important;
    min-width: 112px;
    justify-self: start;
    height: 40px !important;
    padding: 0 15px !important;
    color: #5a4100 !important;
    background: linear-gradient(135deg, #ffd84a, var(--tg-yellow)) !important;
    border-color: color-mix(in srgb, var(--tg-yellow) 65%, #d9a600) !important;
    box-shadow: 0 7px 16px color-mix(in srgb, var(--tg-yellow) 22%, transparent);
}

/* JOB AREA */
body.tg-home-v2-page .tg-v2-jobs-section {
    background:
        linear-gradient(180deg, #ffffff 0%, color-mix(in srgb, var(--tg-blue) 3%, #ffffff) 100%) !important;
}

body.tg-home-v2-page .tg-v2-job-head {
    color: #fff !important;
    background: linear-gradient(90deg, var(--tg-blue), color-mix(in srgb, var(--tg-blue) 76%, var(--tg-purple))) !important;
    border-color: transparent !important;
}

body.tg-home-v2-page .tg-v2-job-card {
    background: #fff;
    border-left: 3px solid transparent !important;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
body.tg-home-v2-page .tg-v2-job-card:nth-child(4n+1) { border-left-color: var(--tg-blue) !important; }
body.tg-home-v2-page .tg-v2-job-card:nth-child(4n+2) { border-left-color: var(--tg-red) !important; }
body.tg-home-v2-page .tg-v2-job-card:nth-child(4n+3) { border-left-color: var(--tg-green) !important; }
body.tg-home-v2-page .tg-v2-job-card:nth-child(4n+4) { border-left-color: var(--tg-purple) !important; }

body.tg-home-v2-page .tg-v2-new-badge {
    color: #fff !important;
    background: var(--tg-red) !important;
}
body.tg-home-v2-page .tg-v2-status.is-open {
    color: #06734e !important;
    background: color-mix(in srgb, var(--tg-green) 14%, #fff) !important;
    border-color: color-mix(in srgb, var(--tg-green) 28%, #fff) !important;
}
body.tg-home-v2-page .tg-v2-detail-button {
    background: linear-gradient(135deg, var(--tg-blue), #0c77ec) !important;
}
body.tg-home-v2-page .tg-v2-consult-link {
    color: var(--tg-red) !important;
}
body.tg-home-v2-page .tg-v2-load-more {
    color: #fff !important;
    background: linear-gradient(135deg, var(--tg-purple), color-mix(in srgb, var(--tg-purple) 74%, var(--tg-blue))) !important;
    border-color: transparent !important;
    box-shadow: 0 10px 24px color-mix(in srgb, var(--tg-purple) 24%, transparent);
}

/* SIDEBAR */
body.tg-home-v2-page .tg-v2-side-links {
    border-top: 4px solid var(--tg-yellow) !important;
}
body.tg-home-v2-page .tg-v2-side-links button:nth-of-type(1) { color: var(--tg-blue) !important; }
body.tg-home-v2-page .tg-v2-side-links button:nth-of-type(2) { color: #087f5b !important; }
body.tg-home-v2-page .tg-v2-side-links button:nth-of-type(3) { color: var(--tg-red) !important; }
body.tg-home-v2-page .tg-v2-side-links button:nth-of-type(4) { color: var(--tg-purple) !important; }
body.tg-home-v2-page .tg-v2-side-links button:nth-of-type(5) { color: var(--tg-orange) !important; }

body.tg-home-v2-page .tg-v2-consult-card {
    background:
        radial-gradient(circle at 88% 12%, rgba(255,255,255,.15), transparent 26%),
        linear-gradient(145deg, var(--tg-blue), var(--tg-purple)) !important;
    box-shadow: 0 16px 34px color-mix(in srgb, var(--tg-blue) 20%, transparent) !important;
}
body.tg-home-v2-page .tg-v2-side-primary {
    color: #fff !important;
    background: var(--tg-red) !important;
    border-color: var(--tg-red) !important;
}

/* ABOUT / WHY */
body.tg-home-v2-page .tg-v2-about-section {
    background:
        radial-gradient(circle at 12% 15%, color-mix(in srgb, var(--tg-yellow) 15%, transparent), transparent 22%),
        linear-gradient(180deg, var(--tg-soft), #fff) !important;
}

body.tg-home-v2-page .tg-v2-benefit {
    position: relative;
    overflow: hidden;
    background: #fff !important;
    border: 1px solid #e3eaf3 !important;
    box-shadow: 0 8px 22px rgba(15,45,78,.05);
}
body.tg-home-v2-page .tg-v2-benefit::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--card-accent, var(--tg-blue));
}
body.tg-home-v2-page .tg-v2-benefit:nth-child(1) { --card-accent: var(--tg-blue); }
body.tg-home-v2-page .tg-v2-benefit:nth-child(2) { --card-accent: var(--tg-red); }
body.tg-home-v2-page .tg-v2-benefit:nth-child(3) { --card-accent: var(--tg-green); }
body.tg-home-v2-page .tg-v2-benefit:nth-child(4) { --card-accent: var(--tg-purple); }
body.tg-home-v2-page .tg-v2-benefit:nth-child(5) { --card-accent: var(--tg-orange); }
body.tg-home-v2-page .tg-v2-benefit:nth-child(6) { --card-accent: #0f9ea8; }
body.tg-home-v2-page .tg-v2-benefit > span {
    color: #fff !important;
    background: var(--card-accent, var(--tg-blue)) !important;
}

/* MEDIA */
body.tg-home-v2-page .tg-v2-media-section {
    background:
        radial-gradient(circle at 96% 14%, color-mix(in srgb, var(--tg-red) 9%, transparent), transparent 28%),
        #fff !important;
}
body.tg-home-v2-page .tg-v2-album-card {
    border-top: 4px solid var(--tg-purple) !important;
    box-shadow: 0 16px 34px color-mix(in srgb, var(--tg-purple) 10%, rgba(15,45,78,.05)) !important;
}
body.tg-home-v2-page .tg-v2-book-prev,
body.tg-home-v2-page .tg-v2-book-next {
    color: #fff !important;
    background: var(--tg-purple) !important;
    border-color: var(--tg-purple) !important;
}
body.tg-home-v2-page .tg-v2-video-card {
    background:
        radial-gradient(circle at 90% 8%, rgba(255,255,255,.12), transparent 28%),
        linear-gradient(145deg, var(--tg-navy), color-mix(in srgb, var(--tg-navy) 68%, var(--tg-purple))) !important;
}
body.tg-home-v2-page .tg-v2-video-play {
    background: var(--tg-red) !important;
}
body.tg-home-v2-page .tg-v2-album-empty {
    min-height: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 30px;
    text-align: center;
    color: var(--tg-muted);
    background: linear-gradient(135deg, color-mix(in srgb, var(--tg-purple) 7%, #fff), color-mix(in srgb, var(--tg-blue) 5%, #fff));
    border: 2px dashed color-mix(in srgb, var(--tg-purple) 28%, #dce5ef);
    border-radius: 14px;
}
body.tg-home-v2-page .tg-v2-album-empty strong {
    color: var(--tg-navy);
    font-size: 18px;
}

/* PROCESS */
body.tg-home-v2-page .tg-v2-process-section {
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--tg-blue) 5%, #fff), color-mix(in srgb, var(--tg-yellow) 5%, #fff)) !important;
}
body.tg-home-v2-page .tg-v2-process-list li {
    --step-color: var(--tg-blue);
    border-top: 3px solid var(--step-color) !important;
    background: #fff !important;
}
body.tg-home-v2-page .tg-v2-process-list li:nth-child(1) { --step-color: var(--tg-blue); }
body.tg-home-v2-page .tg-v2-process-list li:nth-child(2) { --step-color: var(--tg-green); }
body.tg-home-v2-page .tg-v2-process-list li:nth-child(3) { --step-color: var(--tg-orange); }
body.tg-home-v2-page .tg-v2-process-list li:nth-child(4) { --step-color: var(--tg-purple); }
body.tg-home-v2-page .tg-v2-process-list li > span {
    color: #fff !important;
    background: var(--step-color) !important;
}

/* CTA + FOOTER */
body.tg-home-v2-page .tg-v2-bottom-cta {
    background:
        radial-gradient(circle at 10% 20%, rgba(255,255,255,.13), transparent 26%),
        radial-gradient(circle at 92% 70%, color-mix(in srgb, var(--tg-yellow) 40%, transparent), transparent 22%),
        linear-gradient(120deg, var(--tg-blue), var(--tg-purple) 58%, var(--tg-red)) !important;
}
body.tg-home-v2-page .tg-v2-bottom-form button {
    background: var(--tg-yellow) !important;
    color: #3b2a00 !important;
}
body.tg-home-v2-page .tg-v2-bottom-form .is-outline {
    border-color: rgba(255,255,255,.75) !important;
}

body.tg-home-v2-page .tg-v2-footer-main {
    background:
        radial-gradient(circle at 85% 8%, color-mix(in srgb, var(--tg-purple) 22%, transparent), transparent 25%),
        linear-gradient(145deg, var(--tg-navy), #04182f) !important;
    border-top: 5px solid transparent;
    border-image: linear-gradient(90deg, var(--tg-blue), var(--tg-green), var(--tg-yellow), var(--tg-red), var(--tg-purple)) 1;
}
body.tg-home-v2-page .tg-v2-footer-col:nth-child(2) h3 { color: #61a8ff !important; }
body.tg-home-v2-page .tg-v2-footer-col:nth-child(3) h3 { color: #5ee0af !important; }
body.tg-home-v2-page .tg-v2-footer-col:nth-child(4) h3 { color: #ffd45c !important; }
body.tg-home-v2-page .tg-v2-footer-hotline {
    display: inline-flex;
    color: #fff !important;
    background: var(--tg-red) !important;
    border-color: var(--tg-red) !important;
    border-radius: 9px;
    padding: 8px 12px;
}

/* Mobile keeps the same vivid palette without increasing visual density */
@media (max-width: 991px) {
    body.tg-home-v2-page .tg-v2-advanced-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 767px) {
    body.tg-home-v2-page .tg-v2-hero {
        padding-top: 26px;
    }
    body.tg-home-v2-page .tg-v2-search-card {
        border-top-width: 3px !important;
    }
    body.tg-home-v2-page .tg-v2-advanced-filters {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 12px !important;
        gap: 9px !important;
    }
    body.tg-home-v2-page .tg-v2-clear-button {
        grid-column: 1 / -1 !important;
        width: auto !important;
        min-width: 104px;
        justify-self: start;
    }
    body.tg-home-v2-page .tg-v2-job-card {
        border-left-width: 2px !important;
    }
}

@media (max-width: 370px) {
    body.tg-home-v2-page .tg-v2-advanced-filters {
        grid-template-columns: 1fr !important;
    }
}


/* Mobile action bar: each action has its own accent. */
@media (max-width: 850px) {
    body.tg-home-v2-page .tg-v2-mobile-contact > a:nth-child(1) .tg-v2-mobile-contact-icon { background: var(--tg-blue) !important; }
    body.tg-home-v2-page .tg-v2-mobile-contact > a:nth-child(2) .tg-v2-mobile-contact-icon { background: var(--tg-green) !important; }
    body.tg-home-v2-page .tg-v2-mobile-contact > a:nth-child(3) .tg-v2-mobile-contact-icon { background: var(--tg-red) !important; }
    body.tg-home-v2-page .tg-v2-mobile-contact > a:nth-child(4) .tg-v2-mobile-contact-icon { background: var(--tg-purple) !important; }
}

/* ==========================================================
   V2.9.1 — CONSULT FORMS + POPUP + SALARY ACTION BUTTON
========================================================== */

body.tg-home-v2-page .tg-v2-consult-link {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    padding: 0;
    margin: 0;
    background: transparent;
    color: var(--tg-secondary, #ef233c) !important;
    font: inherit;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    cursor: pointer;
}

body.tg-home-v2-page .tg-v2-consult-link:hover,
body.tg-home-v2-page .tg-v2-consult-link:focus-visible {
    color: #c9142c !important;
    text-decoration: underline;
}

/* Reuse the real Contact Form 7 form but show only Name + Phone in quick areas. */
body.tg-home-v2-page .tg-v2-cf7-quick .tg-v2-quick-hide,
body.tg-home-v2-page .tg-v2-cf7-quick .tg-v2-quick-hide-control,
body.tg-home-v2-page .tg-v2-cf7-quick .email-face,
body.tg-home-v2-page .tg-v2-cf7-quick .wpcf7-form img {
    display: none !important;
}

body.tg-home-v2-page .tg-v2-cf7-wrap .wpcf7,
body.tg-home-v2-page .tg-v2-cf7-wrap form.wpcf7-form,
body.tg-home-v2-page .tg-v2-cf7-wrap form.wpcf7-form p {
    margin: 0 !important;
}

body.tg-home-v2-page .tg-v2-cf7-quick form.wpcf7-form {
    display: grid;
    gap: 8px;
}

body.tg-home-v2-page .tg-v2-cf7-quick .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
    margin: 0 !important;
}

body.tg-home-v2-page .tg-v2-cf7-quick input[type="text"],
body.tg-home-v2-page .tg-v2-cf7-quick input[type="tel"] {
    width: 100% !important;
    height: 42px !important;
    margin: 0 !important;
    padding: 0 12px !important;
    border: 1px solid rgba(255,255,255,.34) !important;
    border-radius: 8px !important;
    outline: 0 !important;
    background: #fff !important;
    color: #12233d !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    box-sizing: border-box !important;
}

body.tg-home-v2-page .tg-v2-cf7-quick input[type="text"]::placeholder,
body.tg-home-v2-page .tg-v2-cf7-quick input[type="tel"]::placeholder {
    color: #7c8ba0 !important;
    opacity: 1;
}

body.tg-home-v2-page .tg-v2-cf7-quick .wpcf7-submit,
body.tg-home-v2-page .tg-v2-cf7-quick .tg-v2-quick-submit {
    width: 100% !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 8px 14px !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: var(--tg-secondary, #ef233c) !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-transform: none !important;
    cursor: pointer !important;
}

body.tg-home-v2-page .tg-v2-cf7-quick .wpcf7-spinner {
    position: absolute;
    margin: 9px 0 0 -34px !important;
}

body.tg-home-v2-page .tg-v2-cf7-quick .wpcf7-not-valid-tip {
    margin: 4px 0 0 !important;
    color: #ffe0e4 !important;
    font-size: 11px !important;
    line-height: 1.35 !important;
}

body.tg-home-v2-page .tg-v2-cf7-quick .wpcf7-response-output {
    margin: 7px 0 0 !important;
    padding: 7px 9px !important;
    border-radius: 7px !important;
    border-color: rgba(255,255,255,.45) !important;
    color: #fff !important;
    font-size: 11px !important;
    line-height: 1.4 !important;
}

/* Sticky consultation card: actual inline form. */
body.tg-home-v2-page .tg-v2-consult-card .tg-v2-cf7-quick {
    margin-top: 12px;
}

body.tg-home-v2-page .tg-v2-consult-card .tg-v2-side-phone {
    margin-top: 8px;
}

/* Bottom CTA now uses real Contact Form 7 AJAX instead of GET redirect. */
body.tg-home-v2-page .tg-v2-bottom-cf7 {
    display: grid !important;
    gap: 9px !important;
}

body.tg-home-v2-page .tg-v2-bottom-cf7 .tg-v2-cf7-quick form.wpcf7-form {
    grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr) auto;
    align-items: start;
    gap: 8px;
}

body.tg-home-v2-page .tg-v2-bottom-cf7 .tg-v2-cf7-quick .wpcf7-submit {
    min-width: 150px !important;
}

body.tg-home-v2-page .tg-v2-bottom-cf7 .tg-v2-cf7-quick .wpcf7-response-output {
    grid-column: 1 / -1;
}

body.tg-home-v2-page .tg-v2-bottom-cf7 .is-outline {
    width: 100%;
}

/* Modal consultation form from every job row. */
html.tg-v2-modal-open,
html.tg-v2-modal-open body {
    overflow: hidden !important;
}

body.tg-home-v2-page .tg-v2-consult-modal[hidden] {
    display: none !important;
}

body.tg-home-v2-page .tg-v2-consult-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

body.tg-home-v2-page .tg-v2-consult-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 20, 43, .68);
    backdrop-filter: blur(4px);
}

body.tg-home-v2-page .tg-v2-consult-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(560px, 100%);
    max-height: calc(100vh - 36px);
    overflow: auto;
    padding: 26px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0, 32, 76, .28);
}

body.tg-home-v2-page .tg-v2-consult-modal-close {
    position: absolute;
    top: 11px;
    right: 11px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #eef5ff;
    color: var(--tg-navy, #062b52);
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

body.tg-home-v2-page .tg-v2-consult-modal-kicker {
    display: inline-block;
    margin-bottom: 5px;
    color: var(--tg-primary, #0757c7);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

body.tg-home-v2-page .tg-v2-consult-modal-dialog h2 {
    margin: 0 40px 8px 0;
    color: var(--tg-navy, #062b52);
    font-size: 26px;
    line-height: 1.25;
    font-weight: 700;
}

body.tg-home-v2-page .tg-v2-consult-job-label {
    margin: 0 0 16px;
    padding: 9px 11px;
    border-radius: 9px;
    background: #eef6ff;
    color: #28527d;
    font-size: 13px;
    font-weight: 600;
}

body.tg-home-v2-page .tg-v2-cf7-popup input:not([type="submit"]):not([type="hidden"]),
body.tg-home-v2-page .tg-v2-cf7-popup textarea,
body.tg-home-v2-page .tg-v2-cf7-popup select {
    width: 100% !important;
    box-sizing: border-box !important;
}

body.tg-home-v2-page .tg-v2-cf7-popup .wpcf7-submit {
    min-height: 44px;
    padding: 9px 18px;
    border: 0;
    border-radius: 9px;
    background: var(--tg-secondary, #ef233c);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

body.tg-home-v2-page .tg-v2-form-fallback {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.5;
}

@media (max-width: 767px) {
    body.tg-home-v2-page .tg-v2-bottom-cf7 .tg-v2-cf7-quick form.wpcf7-form {
        grid-template-columns: 1fr;
    }

    body.tg-home-v2-page .tg-v2-consult-modal {
        align-items: flex-end;
        padding: 10px;
    }

    body.tg-home-v2-page .tg-v2-consult-modal-dialog {
        width: 100%;
        max-height: 88vh;
        padding: 22px 16px 18px;
        border-radius: 18px 18px 12px 12px;
    }

    body.tg-home-v2-page .tg-v2-consult-modal-dialog h2 {
        font-size: 21px;
    }
}

/* ==========================================================
   THANH GIANG HOME V4.0 — FINAL COMPLETE OVERRIDES
   Baseline geometry stays identical to the approved V2.9.
========================================================== */

/* HERO: keep the existing height, only let the subtitle use available width. */
body.tg-home-v2-page .tg-v2-hero-copy {
    max-width: 1040px !important;
}
body.tg-home-v2-page .tg-v4-hero-text {
    width: 100% !important;
    max-width: 980px !important;
    white-space: normal;
}
@media (min-width: 1100px) {
    body.tg-home-v2-page .tg-v4-hero-text { white-space: nowrap; }
}

/* QUICK FILTER: many chips, Việt Nam before Nhật Bản is handled in PHP. */
body.tg-home-v2-page .tg-v2-quick-chips {
    gap: 8px !important;
    flex-wrap: wrap !important;
}
body.tg-home-v2-page .tg-v2-chip {
    gap: 7px !important;
}
body.tg-home-v2-page .tg-v2-chip-flag {
    font-size: 20px !important;
    line-height: 1 !important;
    transform: translateY(-1px);
}
body.tg-home-v2-page .tg-v4-hot-chip {
    color: #fff !important;
    border-color: transparent !important;
    background: linear-gradient(135deg, #ff8a00, #ff275b) !important;
}
body.tg-home-v2-page .tg-v4-hot-chip:hover,
body.tg-home-v2-page .tg-v4-hot-chip.is-active {
    color: #fff !important;
    background: linear-gradient(135deg, #ff6a00, #e90046) !important;
    box-shadow: 0 8px 20px rgba(233,0,70,.22) !important;
}

/* Advanced filters: everything visible but still compact. */
body.tg-home-v2-page .tg-v2-advanced-filters {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 12px !important;
}
body.tg-home-v2-page .tg-v2-advanced-filters .tg-v2-field,
body.tg-home-v2-page .tg-v2-advanced-filters .tg-v2-field select {
    min-width: 0 !important;
}
body.tg-home-v2-page .tg-v2-clear-button {
    align-self: end !important;
}

/* RESULTS TABLE: keep old V2.9 compact density, only add visa info + full-row color. */
body.tg-home-v2-page .tg-v2-job-head,
body.tg-home-v2-page .tg-v2-job-card {
    grid-template-columns: minmax(180px,1.5fr) minmax(145px,1.12fr) minmax(105px,.78fr) minmax(130px,.92fr) minmax(120px,.92fr) minmax(105px,.75fr) !important;
    gap: 11px !important;
}
body.tg-home-v2-page .tg-v2-job-card.tg-v4-visa-row {
    background: var(--tg-v4-visa-bg, #fff) !important;
    border-left: 0 !important;
    box-shadow: none !important;
    padding: 13px !important;
}
body.tg-home-v2-page .tg-v2-job-card.tg-v4-visa-row:hover {
    background: var(--tg-v4-visa-bg, #fff) !important;
    box-shadow: inset 0 0 0 999px rgba(255,255,255,.10), 0 7px 20px rgba(31,66,109,.07) !important;
}
body.tg-home-v2-page .tg-v2-job-card.tg-v4-visa-row .tg-v2-job-salary strong {
    color: var(--tg-v4-visa-color, var(--tg-blue)) !important;
}
body.tg-home-v2-page .tg-v4-visa-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    margin-top: 5px;
    padding: 3px 7px;
    border: 1px solid color-mix(in srgb, var(--tg-v4-visa-color) 28%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--tg-v4-visa-color) 12%, #fff);
    color: var(--tg-v4-visa-color);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.25;
    white-space: normal;
}
body.tg-home-v2-page .tg-v2-job-country > strong {
    letter-spacing: .015em;
}
/* HOT = one flame-shaped badge with HOT inside. */
body.tg-home-v2-page .tg-v4-hot-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 28px;
    margin-left: 1px;
    color: #fff;
    background: linear-gradient(180deg,#ffb000 0%,#ff5a00 48%,#f0003c 100%);
    clip-path: polygon(50% 0%,64% 24%,79% 11%,79% 39%,96% 49%,82% 78%,65% 100%,35% 100%,17% 79%,5% 52%,22% 38%,23% 15%,39% 28%);
    filter: drop-shadow(0 2px 3px rgba(229,46,0,.24));
    font-size: 8px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: .02em;
}
body.tg-home-v2-page .tg-v4-hot-badge strong { transform: translateY(3px); color:#fff; }
body.tg-home-v2-page .tg-v2-job-card:nth-child(4n+1),
body.tg-home-v2-page .tg-v2-job-card:nth-child(4n+2),
body.tg-home-v2-page .tg-v2-job-card:nth-child(4n+3),
body.tg-home-v2-page .tg-v2-job-card:nth-child(4n+4) {
    border-left-color: transparent !important;
}

/* Consultation quick forms: Name + Phone + a SMALL message box. */
body.tg-home-v2-page .tg-v2-cf7-quick form.wpcf7-form {
    display: grid !important;
    gap: 8px !important;
}
body.tg-home-v2-page .tg-v2-cf7-quick textarea {
    width: 100% !important;
    height: 60px !important;
    min-height: 60px !important;
    max-height: 78px !important;
    margin: 0 !important;
    padding: 9px 12px !important;
    border: 1px solid rgba(255,255,255,.34) !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #12233d !important;
    font: inherit !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
    resize: vertical !important;
    box-sizing: border-box !important;
}
body.tg-home-v2-page .tg-v2-consult-card .tg-v2-cf7-quick textarea {
    height: 58px !important;
    min-height: 58px !important;
}
/* Bottom CTA: compact, not a giant contact section. */
body.tg-home-v2-page .tg-v2-bottom-cta {
    padding-top: 24px !important;
    padding-bottom: 24px !important;
}
body.tg-home-v2-page .tg-v2-bottom-cta-inner {
    align-items: center !important;
}
body.tg-home-v2-page .tg-v2-bottom-cta-copy h2 {
    margin-bottom: 4px !important;
}
body.tg-home-v2-page .tg-v2-bottom-cf7 {
    gap: 7px !important;
}
body.tg-home-v2-page .tg-v2-bottom-cf7 .tg-v2-cf7-quick form.wpcf7-form {
    display: grid !important;
    grid-template-columns: minmax(150px,1fr) minmax(150px,1fr) minmax(130px,.72fr) !important;
    gap: 7px !important;
    align-items: start !important;
}
body.tg-home-v2-page .tg-v2-bottom-cf7 .tg-v2-quick-name { grid-column: 1; grid-row: 1; }
body.tg-home-v2-page .tg-v2-bottom-cf7 .tg-v2-quick-phone { grid-column: 2; grid-row: 1; }
body.tg-home-v2-page .tg-v2-bottom-cf7 .tg-v2-quick-message { grid-column: 1 / 3; grid-row: 2; }
body.tg-home-v2-page .tg-v2-bottom-cf7 .tg-v2-quick-submit,
body.tg-home-v2-page .tg-v2-bottom-cf7 .wpcf7-submit { grid-column: 3; grid-row: 1 / span 2; height: 100% !important; min-height: 88px !important; }
body.tg-home-v2-page .tg-v2-bottom-cf7 textarea { height: 46px !important; min-height: 46px !important; max-height: 58px !important; }
body.tg-home-v2-page .tg-v2-bottom-cf7 .is-outline {
    min-height: 34px !important;
    padding: 6px 12px !important;
    font-size: 12px !important;
}

/* WHY cards: whole-card pastel color + large SVG icon. */
body.tg-home-v2-page .tg-v4-benefit-grid {
    grid-template-columns: repeat(6, minmax(0,1fr)) !important;
    gap: 12px !important;
}
body.tg-home-v2-page .tg-v4-benefit {
    --card-color: #0757c7;
    min-height: 184px !important;
    padding: 18px 14px !important;
    text-align: center;
    border: 1px solid color-mix(in srgb, var(--card-color) 26%, #e7eef7) !important;
    border-radius: 14px !important;
    box-shadow: 0 8px 22px rgba(15,45,78,.06) !important;
}
body.tg-home-v2-page .tg-v4-benefit::before { display:none !important; }
body.tg-home-v2-page .tg-v4-benefit-1 { --card-color:#1877d2; background:linear-gradient(180deg,#e8f4ff,#f8fbff) !important; }
body.tg-home-v2-page .tg-v4-benefit-2 { --card-color:#14a968; background:linear-gradient(180deg,#e8faef,#f9fffb) !important; }
body.tg-home-v2-page .tg-v4-benefit-3 { --card-color:#f47b20; background:linear-gradient(180deg,#fff0e4,#fffaf6) !important; }
body.tg-home-v2-page .tg-v4-benefit-4 { --card-color:#7c43d6; background:linear-gradient(180deg,#f0e9ff,#fbf9ff) !important; }
body.tg-home-v2-page .tg-v4-benefit-5 { --card-color:#ec337b; background:linear-gradient(180deg,#ffe7f0,#fff9fb) !important; }
body.tg-home-v2-page .tg-v4-benefit-6 { --card-color:#0e9eaa; background:linear-gradient(180deg,#e3f9fa,#f9ffff) !important; }
body.tg-home-v2-page .tg-v4-benefit-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 11px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:var(--card-color);
}
body.tg-home-v2-page .tg-v4-benefit-icon svg {
    width:58px;
    height:58px;
    fill:none;
    stroke:currentColor;
    stroke-width:4;
    stroke-linecap:round;
    stroke-linejoin:round;
}
body.tg-home-v2-page .tg-v4-benefit h3 {
    margin: 0 0 8px !important;
    color: var(--card-color) !important;
    font-size: 15px !important;
    line-height:1.3 !important;
    font-weight:800 !important;
}
body.tg-home-v2-page .tg-v4-benefit p {
    margin:0 !important;
    color:#4b5d72 !important;
    font-size:12.5px !important;
    line-height:1.55 !important;
}

/* BRANCH HUB: interactive map + compact chips + detail panel. */
.tg-v4-branch-hub {
    padding: 46px 0;
    background: linear-gradient(180deg,#f7fbff 0%,#eef6ff 100%);
    border-top: 1px solid #e2ebf6;
}
.tg-v4-branch-head {
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:24px;
    margin-bottom:22px;
}
.tg-v4-branch-kicker {
    display:block;
    margin-bottom:5px;
    color:#0757c7;
    font-size:11px;
    font-weight:900;
    letter-spacing:.11em;
    text-transform:uppercase;
}
.tg-v4-branch-head h2 { margin:0 0 6px; color:#062b52; font-size:30px; line-height:1.18; font-weight:800; }
.tg-v4-branch-head p { margin:0; color:#607089; font-size:14px; }
.tg-v4-branch-tabs { display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
.tg-v4-branch-tabs button {
    min-height:38px;
    padding:8px 15px;
    border:1px solid #d9e5f3;
    border-radius:999px;
    background:#fff;
    color:#38516f;
    font-size:12px;
    font-weight:700;
    cursor:pointer;
}
.tg-v4-branch-tabs button.is-active { background:#0757c7; border-color:#0757c7; color:#fff; box-shadow:0 7px 16px rgba(7,87,199,.18); }
.tg-v4-branch-layout {
    display:grid;
    grid-template-columns: minmax(260px,.72fr) minmax(0,1.65fr);
    gap:22px;
    align-items:stretch;
}
.tg-v4-branch-map {
    position:relative;
    min-height:390px;
    overflow:hidden;
    border-radius:20px;
    background:radial-gradient(circle at 50% 40%,#fff 0%,#e8f4ff 78%);
    border:1px solid #dbe8f6;
    box-shadow:0 14px 34px rgba(16,67,117,.08);
}
.tg-v4-vietnam-map {
    position:absolute;
    inset:22px 24%;
    width:52%;
    height:calc(100% - 44px);
    overflow:visible;
}
.tg-v4-vietnam-map path { fill:#cfe7ff; stroke:#1474d4; stroke-width:3; filter:drop-shadow(0 5px 12px rgba(20,116,212,.15)); }
.tg-v4-branch-point {
    position:absolute;
    width:18px;
    height:18px;
    margin:-9px 0 0 -9px;
    padding:0;
    border:3px solid #fff;
    border-radius:50%;
    background:#ef233c;
    box-shadow:0 0 0 4px rgba(239,35,60,.16),0 5px 12px rgba(9,65,120,.16);
    cursor:pointer;
    transform:scale(1);
    transition:.18s ease;
}
.tg-v4-branch-point span { position:absolute; inset:50% auto auto 50%; width:8px; height:8px; border-radius:50%; transform:translate(-50%,-50%); background:#fff; }
.tg-v4-branch-point.is-active,.tg-v4-branch-point.is-hovered { transform:scale(1.28); background:#ff9f0a; box-shadow:0 0 0 7px rgba(255,159,10,.20),0 8px 18px rgba(9,65,120,.20); }
.tg-v4-branch-directory { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(280px,.9fr); gap:16px; }
.tg-v4-branch-chips {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:9px;
    align-content:start;
}
.tg-v4-branch-chip {
    min-height:44px;
    padding:9px 11px;
    border:1px solid #dce7f3;
    border-radius:11px;
    background:#fff;
    color:#213956;
    font-size:12px;
    font-weight:700;
    text-align:left;
    cursor:pointer;
    transition:.18s ease;
}
.tg-v4-branch-chip:hover,.tg-v4-branch-chip.is-active { border-color:#3b8ff0; background:#edf6ff; color:#0757c7; transform:translateY(-1px); box-shadow:0 7px 16px rgba(7,87,199,.09); }
.tg-v4-branch-detail {
    position:relative;
    min-height:210px;
    padding:22px;
    border-radius:18px;
    background:linear-gradient(145deg,#073c82,#0a6ccf);
    color:#fff;
    box-shadow:0 16px 36px rgba(6,43,82,.20);
}
.tg-v4-branch-detail-close { display:none; }
.tg-v4-branch-detail-label { display:block; margin-bottom:6px; color:#a9d2ff; font-size:10px; font-weight:800; text-transform:uppercase; letter-spacing:.08em; }
.tg-v4-branch-detail h3 { margin:0 0 12px; color:#fff; font-size:22px; line-height:1.2; }
.tg-v4-branch-detail p { margin:0 0 10px; color:#e9f5ff; font-size:13px; line-height:1.55; }
.tg-v4-branch-phone { font-weight:800; color:#fff !important; }
.tg-v4-branch-actions { display:flex; gap:8px; margin-top:16px; }
.tg-v4-branch-actions a { flex:1; display:inline-flex; align-items:center; justify-content:center; min-height:40px; padding:8px 12px; border-radius:9px; font-size:12px; font-weight:800; text-decoration:none; }
.tg-v4-branch-actions a:first-child { background:#fff; color:#0757c7; }
.tg-v4-branch-actions a:last-child { background:#ef233c; color:#fff; }

@media (max-width:1199px) {
    body.tg-home-v2-page .tg-v4-benefit-grid { grid-template-columns:repeat(3,minmax(0,1fr)) !important; }
    .tg-v4-branch-layout { grid-template-columns:240px minmax(0,1fr); }
    .tg-v4-branch-directory { grid-template-columns:1fr; }
    .tg-v4-branch-chips { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width:991px) {
    body.tg-home-v2-page .tg-v2-advanced-filters { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
    .tg-v4-branch-head { align-items:flex-start; flex-direction:column; }
    .tg-v4-branch-tabs { justify-content:flex-start; }
    .tg-v4-branch-layout { grid-template-columns:220px minmax(0,1fr); }
    .tg-v4-branch-chips { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:767px) {
    body.tg-home-v2-page .tg-v2-advanced-filters { grid-template-columns:1fr !important; }
    body.tg-home-v2-page .tg-v2-quick-chips { flex-wrap:nowrap !important; overflow-x:auto; padding-bottom:4px; scrollbar-width:none; }
    body.tg-home-v2-page .tg-v2-quick-chips::-webkit-scrollbar { display:none; }
    body.tg-home-v2-page .tg-v2-chip { flex:0 0 auto; }
    body.tg-home-v2-page .tg-v2-job-card.tg-v4-visa-row { background:var(--tg-v4-visa-bg,#fff) !important; }
    body.tg-home-v2-page .tg-v2-bottom-cta { padding-top:20px !important; padding-bottom:20px !important; }
    body.tg-home-v2-page .tg-v2-bottom-cf7 .tg-v2-cf7-quick form.wpcf7-form { grid-template-columns:1fr 1fr !important; }
    body.tg-home-v2-page .tg-v2-bottom-cf7 .tg-v2-quick-name { grid-column:1;grid-row:1; }
    body.tg-home-v2-page .tg-v2-bottom-cf7 .tg-v2-quick-phone { grid-column:2;grid-row:1; }
    body.tg-home-v2-page .tg-v2-bottom-cf7 .tg-v2-quick-message { grid-column:1 / -1;grid-row:2; }
    body.tg-home-v2-page .tg-v2-bottom-cf7 .tg-v2-quick-submit,
    body.tg-home-v2-page .tg-v2-bottom-cf7 .wpcf7-submit { grid-column:1 / -1;grid-row:3;height:42px !important;min-height:42px !important; }
    body.tg-home-v2-page .tg-v4-benefit-grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:9px !important; }
    body.tg-home-v2-page .tg-v4-benefit { min-height:168px !important; padding:15px 11px !important; }
    body.tg-home-v2-page .tg-v4-benefit-icon,body.tg-home-v2-page .tg-v4-benefit-icon svg { width:48px;height:48px; }
    .tg-v4-branch-hub { padding:32px 0; }
    .tg-v4-branch-head h2 { font-size:25px; }
    .tg-v4-branch-map { display:none; }
    .tg-v4-branch-layout { display:block; }
    .tg-v4-branch-directory { display:block; }
    .tg-v4-branch-chips { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
    .tg-v4-branch-detail {
        position:fixed;
        left:10px;
        right:10px;
        bottom:10px;
        z-index:99998;
        min-height:0;
        max-height:72vh;
        padding:22px 18px 18px;
        border-radius:20px;
        transform:translateY(calc(100% + 30px));
        opacity:0;
        pointer-events:none;
        transition:transform .22s ease,opacity .22s ease;
    }
    .tg-v4-branch-detail.is-open { transform:translateY(0);opacity:1;pointer-events:auto; }
    .tg-v4-branch-detail-close { display:flex;position:absolute;right:10px;top:10px;width:34px;height:34px;align-items:center;justify-content:center;border:0;border-radius:50%;background:rgba(255,255,255,.14);color:#fff;font-size:22px;cursor:pointer; }
}

/* CF7 grid items are <p>; JS mirrors the semantic classes onto those <p> nodes. */
body.tg-home-v2-page .tg-v2-bottom-cf7 .tg-v2-quick-submit-wrap { grid-column:3; grid-row:1 / span 2; margin:0 !important; }
body.tg-home-v2-page .tg-v2-bottom-cf7 .tg-v2-quick-submit-wrap .wpcf7-submit { width:100% !important; height:100% !important; min-height:88px !important; }
@media (max-width:767px) {
    body.tg-home-v2-page .tg-v2-bottom-cf7 .tg-v2-quick-submit-wrap { grid-column:1 / -1;grid-row:3; }
    body.tg-home-v2-page .tg-v2-bottom-cf7 .tg-v2-quick-submit-wrap .wpcf7-submit { min-height:42px !important;height:42px !important; }
}

/* Popup uses the same 3 logical fields, but with more breathing room than quick forms. */
body.tg-home-v2-page .tg-v2-cf7-popup .tg-v2-quick-hide,
body.tg-home-v2-page .tg-v2-cf7-popup .tg-v2-quick-hide-control { display:none !important; }
body.tg-home-v2-page .tg-v2-cf7-popup form.wpcf7-form { display:grid; gap:11px; }
body.tg-home-v2-page .tg-v2-cf7-popup input[type="text"],
body.tg-home-v2-page .tg-v2-cf7-popup input[type="tel"],
body.tg-home-v2-page .tg-v2-cf7-popup textarea {
    width:100% !important;
    box-sizing:border-box !important;
    border:1px solid #d7e1ed !important;
    border-radius:9px !important;
    background:#fff !important;
    color:#12233d !important;
    font:inherit !important;
}
body.tg-home-v2-page .tg-v2-cf7-popup input[type="text"],
body.tg-home-v2-page .tg-v2-cf7-popup input[type="tel"] { height:44px !important;padding:0 13px !important; }
body.tg-home-v2-page .tg-v2-cf7-popup textarea { height:116px !important;min-height:116px !important;padding:11px 13px !important;resize:vertical !important; }
@media (max-width:850px) {
    .tg-v4-branch-detail { bottom:78px; }
}
body.tg-home-v2-page .tg-v2-cf7-quick form.wpcf7-form > p { font-size:0 !important; line-height:1 !important; }
body.tg-home-v2-page .tg-v2-cf7-quick .wpcf7-form-control-wrap { font-size:14px !important; line-height:1.3 !important; }
body.tg-home-v2-page .tg-v4-benefit-icon {
    border-radius:16px;
    background:color-mix(in srgb, var(--card-color) 12%, #fff);
    box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--card-color) 18%, transparent);
}
body.tg-home-v2-page .tg-v4-benefit-icon svg { width:38px;height:38px; }
@media (max-width:767px) {
    body.tg-home-v2-page .tg-v4-benefit-icon svg { width:32px;height:32px; }
}

/* ==========================================================
 * V4.1 — STABILITY + BRANCH/FORM REWORK
 * ========================================================== */
/* Results keep V2.9 compact density. Default sorting is newest; visa sort remains optional. */
body.tg-home-v2-page .tg-v2-job-card.tg-v4-visa-row {
    padding: 10px 13px !important;
    min-height: 0 !important;
}
body.tg-home-v2-page .tg-v2-job-card.tg-v4-visa-row .tg-v2-job-main,
body.tg-home-v2-page .tg-v2-job-card.tg-v4-visa-row .tg-v2-job-cell,
body.tg-home-v2-page .tg-v2-job-card.tg-v4-visa-row .tg-v2-job-actions {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
body.tg-home-v2-page .tg-v2-job-card.tg-v4-visa-row .tg-v2-job-exam {
    margin-top: 4px !important;
    margin-bottom: 0 !important;
}
body.tg-home-v2-page .tg-v4-visa-badge {
    margin-top: 4px !important;
    padding: 3px 7px !important;
}

/* Compact quick forms everywhere except the popup. */
body.tg-home-v2-page .tg-v2-cf7-quick form.wpcf7-form {
    gap: 7px !important;
}
body.tg-home-v2-page .tg-v2-cf7-quick input:not([type="submit"]),
body.tg-home-v2-page .tg-v2-cf7-quick select {
    min-height: 42px !important;
    height: 42px !important;
    padding: 8px 11px !important;
    font-size: 14px !important;
}
body.tg-home-v2-page .tg-v2-cf7-quick textarea {
    height: 58px !important;
    min-height: 58px !important;
    max-height: 70px !important;
    padding: 8px 11px !important;
    font-size: 14px !important;
}
body.tg-home-v2-page .tg-v2-cf7-quick input[type="submit"],
body.tg-home-v2-page .tg-v2-cf7-quick button[type="submit"] {
    min-height: 42px !important;
    height: 42px !important;
}

/* Remove the abandoned map hub completely. */
.tg-v4-branch-hub,
.tg-v4-branch-map,
.tg-v4-vietnam-map,
.tg-v4-branch-point,
.tg-v4-branch-tabs,
.tg-v4-branch-detail {
    display: none !important;
}

/* Branch directory + consultation form on one row. */
.tg-v4-branch-contact {
    padding: 34px 0;
    background: #f4f8fd;
    font-family: inherit;
}
.tg-v4-branch-contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(320px, .85fr);
    gap: 22px;
    align-items: stretch;
}
.tg-v4-branch-directory-card,
.tg-v4-branch-consult-card {
    border: 1px solid #dbe5f1;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(24, 52, 92, .07);
}
.tg-v4-branch-directory-card {
    padding: 20px 22px;
}
.tg-v4-branch-simple-head > span,
.tg-v4-branch-consult-kicker {
    display: block;
    margin-bottom: 5px;
    color: #0757c7;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.tg-v4-branch-simple-head h2,
.tg-v4-branch-consult-card h2 {
    margin: 0 0 6px;
    color: #082458;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 800;
}
.tg-v4-branch-simple-head p,
.tg-v4-branch-consult-card > p {
    margin: 0;
    color: #65758b;
    font-size: 14px;
    line-height: 1.55;
}
.tg-v4-branch-original-list {
    margin-top: 16px;
    max-height: 310px;
    overflow-y: auto;
    padding: 4px 12px 4px 2px;
    scrollbar-width: thin;
    scrollbar-color: #b6c6dc transparent;
}
.tg-v4-branch-original-list::-webkit-scrollbar { width: 6px; }
.tg-v4-branch-original-list::-webkit-scrollbar-thumb { background: #b6c6dc; border-radius: 10px; }
.tg-v4-branch-original-list .widget,
.tg-v4-branch-original-list .textwidget,
.tg-v4-branch-original-list ul,
.tg-v4-branch-original-list p {
    font-family: inherit !important;
}
.tg-v4-branch-original-list .widget { margin: 0 !important; }
.tg-v4-branch-original-list h2,
.tg-v4-branch-original-list h3,
.tg-v4-branch-original-list h4,
.tg-v4-branch-original-list strong {
    color: #082458 !important;
    font-family: inherit !important;
}
.tg-v4-branch-original-list h2,
.tg-v4-branch-original-list h3,
.tg-v4-branch-original-list h4 {
    margin: 12px 0 5px !important;
    font-size: 16px !important;
    line-height: 1.35 !important;
    font-weight: 800 !important;
}
.tg-v4-branch-original-list p,
.tg-v4-branch-original-list li,
.tg-v4-branch-original-list a {
    color: #4b5f78 !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
}
.tg-v4-branch-original-list p { margin: 0 0 5px !important; }
.tg-v4-branch-original-list ul { margin: 0 !important; padding-left: 18px !important; }
.tg-v4-branch-fallback-item {
    padding: 12px 0;
    border-bottom: 1px solid #e6edf5;
}
.tg-v4-branch-fallback-item:last-child { border-bottom: 0; }
.tg-v4-branch-fallback-item h3 { margin: 0 0 5px; font-size: 16px; }
.tg-v4-branch-fallback-item p { margin: 0 0 5px; color: #5c6d82; font-size: 14px; }
.tg-v4-branch-fallback-item a { color: #0757c7; font-weight: 700; }

.tg-v4-branch-consult-card {
    padding: 20px;
    background: linear-gradient(155deg, #0757c7 0%, #173f9e 100%);
    color: #fff;
}
.tg-v4-branch-consult-card .tg-v4-branch-consult-kicker,
.tg-v4-branch-consult-card h2,
.tg-v4-branch-consult-card > p { color: #fff; }
.tg-v4-branch-consult-card > p { opacity: .88; margin-bottom: 14px; }
.tg-v4-branch-consult-card .tg-v2-cf7-quick input:not([type="submit"]),
.tg-v4-branch-consult-card .tg-v2-cf7-quick textarea {
    border: 1px solid rgba(255,255,255,.24) !important;
    background: #fff !important;
    color: #17233a !important;
}
.tg-v4-branch-consult-card .tg-v2-cf7-quick input[type="submit"],
.tg-v4-branch-consult-card .tg-v2-cf7-quick button[type="submit"] {
    width: 100% !important;
    border: 0 !important;
    border-radius: 9px !important;
    background: #ff334f !important;
    color: #fff !important;
    font-weight: 800 !important;
}
.tg-v4-branch-consult-phone {
    display: block;
    margin-top: 9px;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 9px;
    color: #fff !important;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
}

@media (max-width: 991px) {
    .tg-v4-branch-contact-grid {
        grid-template-columns: 1fr;
    }
    .tg-v4-branch-original-list {
        max-height: 280px;
    }
}
@media (max-width: 767px) {
    .tg-v4-branch-contact { padding: 24px 0; }
    .tg-v4-branch-directory-card,
    .tg-v4-branch-consult-card { padding: 16px; border-radius: 14px; }
    .tg-v4-branch-simple-head h2,
    .tg-v4-branch-consult-card h2 { font-size: 21px; }
    .tg-v4-branch-original-list { max-height: 250px; }
}

/* ==========================================================
 * V4.2 — quick countries, compact quantity, latest news
 * ========================================================== */
@media (min-width: 992px) {
    body.tg-home-v2-page .tg-v2-quick-row {
        align-items: center !important;
    }
    body.tg-home-v2-page .tg-v2-quick-chips {
        flex: 1 1 auto;
        flex-wrap: nowrap !important;
        overflow: hidden;
        gap: 8px !important;
    }
    body.tg-home-v2-page .tg-v2-chip {
        flex: 0 0 auto;
        white-space: nowrap;
        padding-left: 13px !important;
        padding-right: 13px !important;
    }
}

body.tg-home-v2-page .tg-v4-news-section {
    padding: 56px 0 62px;
    background: linear-gradient(180deg, #fff 0%, #f7faff 100%);
    border-top: 1px solid #e8eef8;
}
body.tg-home-v2-page .tg-v4-news-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}
body.tg-home-v2-page .tg-v4-news-heading h2 {
    margin: 5px 0 0;
    color: #062b52;
    font-size: 31px;
    line-height: 1.18;
    font-weight: 800;
}
body.tg-home-v2-page .tg-v4-news-heading > a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0757c7;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}
body.tg-home-v2-page .tg-v4-news-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}
body.tg-home-v2-page .tg-v4-news-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #dce6f3;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(8, 36, 88, .07);
    transition: transform .2s ease, box-shadow .2s ease;
}
body.tg-home-v2-page .tg-v4-news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(8, 36, 88, .11);
}
body.tg-home-v2-page .tg-v4-news-thumb {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #eaf2ff;
}
body.tg-home-v2-page .tg-v4-news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}
body.tg-home-v2-page .tg-v4-news-card:hover .tg-v4-news-thumb img {
    transform: scale(1.035);
}
body.tg-home-v2-page .tg-v4-news-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #0757c7;
    font-weight: 800;
}
body.tg-home-v2-page .tg-v4-news-content {
    padding: 16px 17px 18px;
}
body.tg-home-v2-page .tg-v4-news-content time {
    display: block;
    margin-bottom: 7px;
    color: #7b8aa3;
    font-size: 12px;
}
body.tg-home-v2-page .tg-v4-news-content h3 {
    margin: 0 0 12px;
    font-size: 17px;
    line-height: 1.42;
    font-weight: 700;
}
body.tg-home-v2-page .tg-v4-news-content h3 a {
    color: #0a2548;
    text-decoration: none;
}
body.tg-home-v2-page .tg-v4-news-more {
    color: #0757c7;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}
body.tg-home-v2-page .tg-v4-news-empty {
    grid-column: 1 / -1;
    padding: 24px;
    border: 1px dashed #cbd8ea;
    border-radius: 14px;
    color: #607089;
    text-align: center;
    background: #fff;
}

/* Employee visa gets its own clear teal palette instead of sharing the Tokutei green. */
body.tg-home-v2-page .tg-v2-job-card[style*="--tg-v4-visa-color:#0f766e"] .tg-v4-visa-badge {
    border-color: rgba(15,118,110,.26);
    background: #ecfdf5;
}

@media (max-width: 1100px) {
    body.tg-home-v2-page .tg-v4-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 767px) {
    body.tg-home-v2-page .tg-v4-news-section {
        padding: 38px 0 44px;
    }
    body.tg-home-v2-page .tg-v4-news-heading {
        align-items: flex-start;
        margin-bottom: 18px;
    }
    body.tg-home-v2-page .tg-v4-news-heading h2 {
        font-size: 25px;
    }
    body.tg-home-v2-page .tg-v4-news-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    body.tg-home-v2-page .tg-v4-news-content {
        padding: 12px;
    }
    body.tg-home-v2-page .tg-v4-news-content h3 {
        font-size: 14px;
        line-height: 1.35;
        margin-bottom: 8px;
    }
    body.tg-home-v2-page .tg-v4-news-content time,
    body.tg-home-v2-page .tg-v4-news-more {
        font-size: 11px;
    }
}



body.tg-home-v2-page .tg-v2-job-card.tg-v4-visa-row {
    background:
        linear-gradient(
            90deg,
            var(--tg-v4-visa-bg) 0%,
            #ffffff 120%
        ) !important;

    border-left: 5px solid var(--tg-v4-visa-color) !important;

    box-shadow:0 4px 15px rgba(0,0,0,.05)!important;
}