.dhgs-wrap { --g-blue: var(--dht-blue-700, #1d4ed8); --g-navy: var(--dht-blue-900, #0b1f4d); --g-red: var(--dht-red, #ef3340); --g-line: var(--dht-line, #e2e8f0); --g-muted: var(--dht-muted, #64748b); --g-ink: var(--dht-ink, #0f172a); --g-bg: var(--dht-bg, #f8fafc); margin: 0 0 40px; }
.dhgs-wrap *, .dhgs-wrap *::before, .dhgs-wrap *::after { box-sizing: border-box; }

.dht-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--g-ink); margin: 0; }
.dht-field small { font-weight: 400; color: var(--g-muted); }
.dht-field input, .dht-field select, .dht-field textarea { width: 100%; margin: 0; font-size: 15px; font-weight: 400; min-height: 46px; padding: 10px 14px; color: var(--g-ink); }
.dht-field textarea { min-height: 120px; line-height: 1.6; }
.dht-field input[type="file"] { padding: 10px; background: var(--g-bg); }

.dhgs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px 18px; margin-bottom: 16px; }
.dhgs-form fieldset { border: 1px solid var(--g-line); border-radius: 18px; padding: 20px 20px 8px; margin: 0 0 18px; background: #fff; }
.dhgs-form legend { font-weight: 800; font-size: 16px; color: var(--g-navy); padding: 0 8px; margin-left: -8px; }
.dht-field.dhgs-checks { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }
.dhgs-checks > span { flex: 0 0 100%; margin-bottom: 2px; }
.dhgs-check input[type="checkbox"] { min-height: 0 !important; padding: 0 !important; }
.dhgs-form legend { text-transform: none !important; letter-spacing: 0; }
.dhgs-check { display: inline-flex; flex: 0 0 auto; width: auto; align-items: center; gap: 8px; font-weight: 500; margin: 0; padding: 8px 14px; border: 1px solid var(--g-line); border-radius: 999px; cursor: pointer; background: #fff; transition: border-color .15s, background .15s; }
.dhgs-check:has(input:checked) { border-color: var(--g-blue); background: var(--dht-blue-50, #eef3ff); color: var(--g-blue); }
.dhgs-check input { margin: 0; width: 16px; height: 16px; min-height: 0; }
.dhgs-agree { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--g-muted); margin: 4px 0 18px; line-height: 1.6; }
.dhgs-agree input { margin-top: 4px; flex: 0 0 auto; width: 18px; height: 18px; min-height: 0; }
.dhgs-submit { min-width: 220px; min-height: 52px; font-size: 16px; }
.dhgs-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.dhgs-alert { border-radius: 12px; padding: 12px 16px; margin: 0 0 16px; font-size: 15px; }
.dhgs-alert-error { background: #fff1f2; color: #9f1239; border: 1px solid #fecdd3; }
.dhgs-alert ul { margin: 8px 0 0 18px; padding: 0; }
.dhgs-alert li { margin: 2px 0; }
.dhgs-invalid input, .dhgs-invalid select, .dhgs-invalid textarea { border-color: #e11d48 !important; box-shadow: 0 0 0 4px rgba(225,29,72,.12) !important; }
.dhgs-checks.dhgs-invalid, .dhgs-agree.dhgs-invalid { color: #be123c; }
.dhgs-checks.dhgs-invalid .dhgs-check { border-color: #fda4af; }
.dhgs-counter { display: block; font-size: 12.5px; font-weight: 500; color: var(--g-muted); margin-top: 2px; }
.dhgs-counter.is-ok { color: #047857; }
.dhgs-success { text-align: center; background: linear-gradient(180deg, #ecfdf5, #fff); border: 1px solid #a7f3d0; border-radius: 20px; padding: 34px 24px; }
.dhgs-success-title { font-size: 22px; font-weight: 800; color: #065f46; margin: 0 0 8px; }
.dhgs-success p { margin: 0 0 16px; color: #334155; }

.dhgs-benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 0 0 22px; }
.dhgs-benefits div { background: var(--dht-blue-50, #eef3ff); border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.dhgs-benefits strong { color: var(--g-navy); }
.dhgs-benefits span { color: var(--g-muted); font-size: 14px; }

.dhgs-filter { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 12px; align-items: end; background: #fff; border: 1px solid var(--g-line); border-radius: 20px; padding: 16px; box-shadow: 0 12px 30px -22px rgba(11,31,77,.5); margin-bottom: 18px; }
.dhgs-filter .dht-btn { min-height: 46px; }
@media (max-width: 849px) { .dhgs-filter { grid-template-columns: 1fr 1fr; } .dhgs-filter .dht-btn { grid-column: 1 / -1; } }

.dhgs-count { color: var(--g-muted); font-size: 14px; margin: 0 0 12px; }
.dhgs-list { display: grid; gap: 14px; }
.dhgs-tutor { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 18px; align-items: center; background: #fff; border: 1px solid var(--g-line); border-radius: 20px; padding: 16px; transition: box-shadow .2s, transform .2s, border-color .2s; }
.dhgs-tutor:hover { box-shadow: 0 18px 40px -22px rgba(11,31,77,.45); border-color: transparent; transform: translateY(-2px); }
.dhgs-tutor-ava, .dhgs-profile-ava { display: block; width: 96px; height: 96px; border-radius: 18px; overflow: hidden; background: var(--dht-blue-50, #eef3ff); }
.dhgs-ava-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dhgs-ava-ph { display: grid; place-items: center; width: 100%; height: 100%; font-size: 36px; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--g-blue), var(--g-navy)); }
.dhgs-tutor-name { font-size: 18px; margin: 0 0 4px; line-height: 1.3; }
.dhgs-tutor-name a { color: var(--g-ink); text-decoration: none; }
.dhgs-tutor-name a:hover { color: var(--g-blue); }
.dhgs-verified { display: inline-block; font-size: 11.5px; font-weight: 700; color: #047857; background: #ecfdf5; padding: 2px 8px; border-radius: 999px; vertical-align: middle; }
.dhgs-tutor-meta { margin: 0 0 8px; color: var(--g-muted); font-size: 14px; }
.dhgs-tags { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.dhgs-tags li { margin: 0; font-size: 12.5px; font-weight: 600; color: var(--g-blue); background: var(--dht-blue-50, #eef3ff); padding: 4px 10px; border-radius: 999px; }
.dhgs-tags-lg li { font-size: 14px; padding: 6px 14px; }
.dhgs-tutor-loc { margin: 0; color: var(--g-muted); font-size: 13.5px; display: flex; align-items: center; gap: 6px; }
.dhgs-tutor-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; text-align: right; }
.dhgs-fee { margin: 0; line-height: 1.2; }
.dhgs-fee strong { display: block; font-size: 20px; color: var(--g-red); }
.dhgs-fee span { font-size: 12px; color: var(--g-muted); }
.dhgs-link { font-size: 13.5px; color: var(--g-muted); text-decoration: none; }
.dhgs-link:hover { color: var(--g-blue); }
@media (max-width: 640px) {
  .dhgs-tutor { grid-template-columns: 72px minmax(0, 1fr); }
  .dhgs-tutor-ava { width: 72px; height: 72px; }
  .dhgs-tutor-side { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; text-align: left; }
}

.dhgs-empty { text-align: center; border: 1px dashed var(--dht-line-2, #cbd5e1); border-radius: 20px; padding: 28px 20px; color: var(--g-muted); background: #fff; }
.dhgs-empty p { margin: 0 0 6px; }
.dhgs-pages { margin: 20px 0; display: flex; gap: 6px; justify-content: center; }
.dhgs-pages .page-numbers { display: inline-grid; place-items: center; min-width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--g-line); color: var(--g-ink); text-decoration: none; font-weight: 600; }
.dhgs-pages .current, .dhgs-pages a:hover { background: var(--g-navy); color: #fff; border-color: var(--g-navy); }

.dhgs-split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; margin-top: 34px; align-items: start; }
@media (max-width: 849px) { .dhgs-split { grid-template-columns: 1fr; } }
.dhgs-card { background: #fff; border: 1px solid var(--g-line); border-radius: 22px; padding: 24px; box-shadow: 0 18px 40px -28px rgba(11,31,77,.5); }
.dhgs-form-title { font-size: 20px; font-weight: 800; color: var(--g-ink); margin: 0 0 4px; }
.dhgs-form-sub { color: var(--g-muted); font-size: 14px; margin: 0 0 18px; }
.dhgs-request .dhgs-form .dht-field { margin-bottom: 14px; }
.dhgs-join { background: linear-gradient(140deg, var(--g-navy), #1e3a8a); color: #c7d2fe; border-radius: 22px; padding: 26px; }
.dhgs-join-title { color: #fff; font-size: 20px; font-weight: 800; margin: 0 0 8px; }
.dhgs-join p { margin: 0 0 16px; }

.dhgs-profile { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; align-items: start; margin: 0 0 20px; }
.dhgs-profile-ava { width: 180px; height: 180px; border-radius: 24px; }
.dhgs-profile-info { margin: 0; display: grid; gap: 0; border: 1px solid var(--g-line); border-radius: 16px; overflow: hidden; }
.dhgs-profile-info div { display: grid; grid-template-columns: 150px minmax(0, 1fr); border-bottom: 1px solid var(--g-line); }
.dhgs-profile-info div:last-child { border-bottom: 0; }
.dhgs-profile-info dt { background: var(--g-bg); padding: 10px 14px; font-weight: 600; color: var(--g-muted); font-size: 14px; margin: 0; }
.dhgs-profile-info dd { padding: 10px 14px; margin: 0; color: var(--g-ink); }
.dhgs-back { margin-top: 20px; }
@media (max-width: 640px) {
  .dhgs-profile { grid-template-columns: 1fr; }
  .dhgs-profile-ava { width: 120px; height: 120px; }
  .dhgs-profile-info div { grid-template-columns: 1fr; }
  .dhgs-profile-info dt { padding-bottom: 2px; }
  .dhgs-profile-info dd { padding-top: 2px; }
}

.dhgs-sg { position: relative; margin: 40px 0 8px; padding: 26px; border-radius: 24px; background: radial-gradient(120% 140% at 100% 0%, #e7eeff 0%, #f6f8fc 45%, #fff 100%); border: 1px solid #e2e8f0; overflow: hidden; }
.dhgs-sg::after { content: "선생님"; position: absolute; right: -6px; top: -18px; font: 800 92px/1 'Noto Sans KR', sans-serif; color: rgba(37,99,235,.06); pointer-events: none; }
.dhgs-sg-head { position: relative; z-index: 1; max-width: 620px; }
.dhgs-sg-kicker { margin: 0 0 6px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #ef3340; }
.dhgs-sg-title { margin: 0; font-size: 21px; font-weight: 800; line-height: 1.3; color: #0b1f4d; }
.dhgs-sg-lead { margin: 6px 0 0; font-size: 15px; color: #64748b; }
.dhgs-sg-list { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.dhgs-mini { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; column-gap: 14px; background: #fff; border: 1px solid #e2e8f0; border-radius: 18px; padding: 12px 14px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.dhgs-mini:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -22px rgba(11,31,77,.5); border-color: #c7d6fb; }
.dhgs-mini-ava { display: block; width: 56px; height: 56px; border-radius: 16px; overflow: hidden; background: #eef3ff; }
.dhgs-mini-ava .dhgs-ava-ph { display: grid; place-items: center; width: 100%; height: 100%; font-size: 22px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #2563eb, #0b1f4d); }
.dhgs-mini-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dhgs-mini-body { min-width: 0; }
.dhgs-mini-name { margin: 0; font-weight: 800; font-size: 15.5px; line-height: 1.3; }
.dhgs-mini-name a { color: #0f172a; text-decoration: none; }
.dhgs-mini-name a:hover { color: #1d4ed8; }
.dhgs-mini-ok { display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: #10b981; color: #fff; font-size: 10px; vertical-align: 1px; }
.dhgs-mini-meta { margin: 2px 0 0; font-size: 13px; color: #64748b; }
.dhgs-mini-tag { display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 700; color: #1d4ed8; background: #eef3ff; border-radius: 999px; padding: 3px 9px; }
.dhgs-mini-foot { display: inline-block; margin: 6px 0 0 8px; font-size: 13px; color: #64748b; }
.dhgs-mini-foot b { color: #ef3340; font-size: 14.5px; margin-right: 2px; }
.dhgs-mini-cta { display: block; text-align: center; padding: 9px 18px; border-radius: 12px; background: #0b1f4d; color: #fff !important; font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; transition: background .2s; }
.dhgs-mini-cta:hover { background: #ef3340; }
@media (max-width: 520px) { .dhgs-mini { grid-template-columns: 52px minmax(0, 1fr); row-gap: 10px; } .dhgs-mini-ava { width: 52px; height: 52px; } .dhgs-mini-cta { grid-column: 1 / -1; } .dhgs-mini-foot { display: block; margin-left: 0; } }.dhgs-sg-foot { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; margin-top: 18px; }
.dhgs-sg-more { font-weight: 700; color: #1d4ed8; text-decoration: none; }
.dhgs-sg-more:hover { text-decoration: underline; }
.dhgs-sg-help { font-size: 14px; color: #475569; text-decoration: underline; text-underline-offset: 3px; }
.dhgs-sg-points { position: relative; z-index: 1; list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.dhgs-sg-points li { margin: 0; font-size: 14.5px; color: #1e293b; padding-left: 24px; position: relative; }
.dhgs-sg-points li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; background: #dcfce7; color: #15803d; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.dhgs-sg-strip { padding: 20px; margin-top: 0; }
.dhgs-sg-strip .dhgs-sg-title { font-size: 18px; }
.dhgs-sg-plain { margin: 16px 0 0; padding: 0; background: none; border: 0; border-radius: 0; overflow: visible; }
.dhgs-sg-plain::after, .dhgs-sg-plain .dhgs-sg-head { display: none; }
.dhgs-sg-plain .dhgs-sg-list { margin-top: 0; }
.dhgs-sg-plain .dhgs-mini { text-align: left; color: #1e293b; }
.dhgs-sg-plain .dhgs-sg-more, .dhgs-sg-plain .dhgs-sg-help { color: #fff; }
.dhgs-sg-plain .dhgs-sg-points li { color: #fff; }
@media (max-width: 560px) { .dhgs-sg { padding: 20px 16px; border-radius: 20px; } .dhgs-sg-title { font-size: 18px; } .dhgs-sg::after { font-size: 64px; } }