/* ==========================================================================
   Taekwon Career (태권커리어) Core Style Sheet
   Vanilla CSS Design System & Layouts
   ========================================================================== */

/* @layer reset, base, theme, components, utilities; */

@layer base {
  :root {
    /* Palette Tokens (Tier 1) */
    --color-navy-900: #0a192f;
    --color-navy-800: #0c2540;
    --color-navy-700: #103358;
    --color-navy-600: #1e3a8a;
    --color-blue-600: #2563eb;
    --color-blue-500: #3b82f6;
    --color-blue-100: #dbeafe;
    --color-blue-50:  #eff6ff;
    --color-slate-900: #0f172a;
    --color-slate-800: #1e293b;
    --color-slate-600: #475569;
    --color-slate-400: #94a3b8;
    --color-slate-200: #e2e8f0;
    --color-slate-50:  #f8fafc;
    --color-red-600: #dc2626;
    --color-red-50:  #fef2f2;
    --color-amber-500: #f59e0b;
    --color-amber-50:  #fffbeb;
    --color-gold: #fbbf24;

    /* Semantic Tokens (Tier 2) */
    --brand-primary: var(--color-navy-800);
    --brand-primary-light: var(--color-navy-700);
    --brand-primary-dark: var(--color-navy-900);
    --accent-blue: var(--color-blue-600);
    --accent-blue-hover: var(--color-blue-500);
    --accent-red: var(--color-red-600);
    --accent-amber: var(--color-amber-500);
    
    --bg-main: #f8fafc;
    --bg-surface: #ffffff;
    --bg-input: #ffffff;
    --border-main: var(--color-slate-200);
    
    --text-main: var(--color-slate-800);
    --text-muted: var(--color-slate-600);
    --text-light: var(--color-slate-400);
    --text-white: #ffffff;
    
    /* Layout Tokens */
    --max-width: 1200px;
    --header-height: 80px;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    /* Shadows (Tier 3) */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 12px 20px -3px rgba(15, 23, 42, 0.12), 0 4px 8px -3px rgba(15, 23, 42, 0.06);
    --shadow-indigo: 0 10px 25px -5px rgba(37, 99, 235, 0.2), 0 8px 10px -6px rgba(37, 99, 235, 0.1);

    /* Typography */
    --font-sans: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  }

  /* Reset & Box Model */
  *, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  html {
    scroll-behavior: smooth;
    font-size: 16px;
    height: 100%;
  }

  body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
  }

  img {
    max-width: 100%;
    height: auto;
    display: block;
  }

  a {
    color: inherit;
    text-decoration: none;
  }

  button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    border: none;
    background: none;
  }

  button {
    cursor: pointer;
  }

  /* Utility classes */
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .hidden {
    display: none !important;
  }
}

/* ==========================================================================
   Header Styles
   ========================================================================== */
.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-main);
  height: var(--header-height);
  transition: background-color 0.3s, box-shadow 0.3s;
}

.header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--brand-primary);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
}

.logo-icon {
  flex-shrink: 0;
}

.header-logo-img {
  display: block;
  width: 150px;
  height: auto;
  object-fit: contain;
}

.logo-sub {
  font-size: 0.65rem;
  display: block;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-top: -3px;
}

.logo-sub-red {
  color: #d6222a;
  font-weight: 700;
}

.nav-menu ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  font-weight: 600;
  color: var(--text-main);
  font-size: 1.05rem;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.2s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--accent-blue);
  border-radius: var(--radius-full);
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
  color: var(--accent-blue);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--accent-blue);
}

.auth-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-text {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s;
}

.btn-text:hover {
  background-color: var(--color-slate-200);
}

.btn-filled {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-white);
  background-color: var(--accent-blue);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-filled:hover {
  background-color: var(--accent-blue-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-filled:active {
  transform: translateY(0);
}


/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  overflow: hidden;
  padding-block: 4rem;
}

.hero-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 2rem;
  position: relative;
  z-index: 2;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-badge {
  background-color: var(--color-blue-100);
  color: var(--accent-blue);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: inline-block;
  box-shadow: var(--shadow-sm);
}

.hero-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  color: var(--brand-primary-dark);
  line-height: 1.25;
  margin-bottom: 1rem;
  text-wrap: balance;
}

.highlight-blue {
  color: var(--accent-blue);
  position: relative;
  display: inline-block;
}

.hero-desc {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  width: 100%;
}

.btn-hero-primary, .btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  flex: 1;
  max-width: 240px;
}

.btn-hero-primary {
  background-color: var(--accent-blue);
  color: var(--text-white);
  box-shadow: var(--shadow-indigo);
}

.btn-hero-primary:hover {
  background-color: var(--accent-blue-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-hero-secondary {
  background-color: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-main);
  box-shadow: var(--shadow-sm);
}

.btn-hero-secondary:hover {
  background-color: var(--color-slate-50);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.hero-stats {
  display: flex;
  gap: 2rem;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 1.25rem 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 600px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.stat-item:not(:last-child) {
  border-right: 1px solid var(--color-slate-200);
}

.stat-icon-wrapper {
  background-color: var(--color-blue-50);
  color: var(--accent-blue);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--brand-primary);
}

.hero-image-pane {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-person-img {
  width: 100%;
  max-width: 450px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transform: rotate(1deg);
  transition: transform 0.5s;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

.hero-person-img:hover {
  transform: scale(1.02) rotate(0deg);
}


/* ==========================================================================
   Search Bar Section
   ========================================================================== */
.search-bar-section {
  margin-top: -2.5rem;
  position: relative;
  z-index: 10;
  padding: 0 1.5rem;
}

.search-container {
  max-width: var(--max-width);
  margin: 0 auto;
  background-color: var(--bg-surface);
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-full);
  padding: 0.35rem;
  box-shadow: var(--shadow-lg);
}

.search-fields {
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  gap: 0.35rem;
  align-items: center;
  margin-bottom: 0;
}

.select-wrapper {
  position: relative;
  background-color: transparent;
  border-radius: var(--radius-full);
  border: 0;
  overflow: hidden;
  height: 54px;
}

.select-wrapper + .select-wrapper {
  border-left: 1px solid var(--color-slate-200);
  border-radius: 0;
}

.select-wrapper:focus-within {
  box-shadow: inset 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.select-wrapper select {
  width: 100%;
  height: 100%;
  padding: 0 1.5rem;
  font-weight: 600;
  color: var(--text-main);
  background-color: transparent;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.25rem center;
  background-size: 18px;
}

.btn-search {
  background-color: var(--accent-blue);
  color: var(--text-white);
  height: 54px;
  padding: 0 2rem;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: var(--radius-full);
  transition: background-color 0.2s, transform 0.1s;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}

.btn-search:hover {
  background-color: var(--accent-blue-hover);
}

.btn-search:active {
  transform: scale(0.98);
}

.popular-tags {
  display: none;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.tag-title {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-weight: 600;
}

.tag-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-tag {
  background-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-tag:hover {
  background-color: var(--accent-blue);
  color: var(--text-white);
  transform: translateY(-1px);
}


/* ==========================================================================
   Section Layouts & General Cards
   ========================================================================== */
.section {
  padding: 5rem 1.5rem;
}

.section-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.25rem;
}

.section-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--brand-primary-dark);
  position: relative;
  padding-left: 0.75rem;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  bottom: 15%;
  width: 4px;
  background-color: var(--accent-blue);
  border-radius: var(--radius-full);
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.link-more:hover {
  color: var(--accent-blue);
}

.link-more svg {
  transition: transform 0.2s;
}

.link-more:hover svg {
  transform: translateX(3px);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}


/* ==========================================================================
   Job Cards (실시간 채용공고)
   ========================================================================== */
.job-card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid var(--border-main);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.job-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-blue-100);
}

.job-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.badge-new, .badge-hot {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.badge-new {
  background-color: var(--color-red-50);
  color: var(--accent-red);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge-hot {
  background-color: var(--color-amber-50);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.gym-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
}

.job-card-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--brand-primary-dark);
  margin-bottom: 0.75rem;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-card-details {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}

.job-region, .job-salary {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.job-salary {
  color: var(--accent-blue);
  font-weight: 700;
}

.job-card-footer {
  margin-top: auto;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 1px dashed var(--color-slate-200);
}

.badge-type, .badge-exp {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  background-color: var(--color-slate-50);
  color: var(--text-muted);
}

.badge-type {
  background-color: var(--color-blue-50);
  color: var(--accent-blue);
}


/* ==========================================================================
   Premium Advertisement Bar
   ========================================================================== */
.premium-ad-section {
  padding: 0 1.5rem;
  margin-block: 1rem;
}

.premium-container {
  max-width: var(--max-width);
  margin: 0 auto;
  background: linear-gradient(95deg, var(--brand-primary) 0%, #1e293b 100%);
  border-radius: var(--radius-md);
  padding: 1.5rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
  border-left: 5px solid var(--color-gold);
}

.premium-content {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.crown-icon-wrapper {
  background-color: rgba(251, 191, 36, 0.1);
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
}

.gold-crown {
  filter: drop-shadow(0 2px 4px rgba(251, 191, 36, 0.3));
  animation: pulse-gold 2s infinite alternate;
}

.premium-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.premium-label {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--color-gold);
  letter-spacing: 0.5px;
}

.premium-desc {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-white);
}

.btn-premium-action {
  background-color: var(--bg-surface);
  color: var(--brand-primary);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}

.btn-premium-action:hover {
  background-color: var(--color-gold);
  color: var(--brand-primary-dark);
  transform: scale(1.02);
}


/* ==========================================================================
   Talent Cards (추천 인재정보)
   ========================================================================== */
.my-applications-list {
  display: grid;
  gap: 1rem;
}

.application-job-group,
.application-row-card {
  border: 1px solid var(--border-main);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  overflow: hidden;
}

.application-job-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-main);
  background: #f8fafc;
}

.application-job-title {
  font-size: 1rem;
  font-weight: 850;
  color: var(--text-main);
}

.application-job-meta,
.application-row-meta {
  margin-top: 0.25rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.application-count-badge,
.application-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  white-space: nowrap;
}

.application-count-badge {
  color: #1d4ed8;
  background: #dbeafe;
}

.application-status-badge.pending { color: #92400e; background: #fef3c7; }
.application-status-badge.interview { color: #1d4ed8; background: #dbeafe; }
.application-status-badge.accepted { color: #047857; background: #d1fae5; }
.application-status-badge.rejected { color: #b91c1c; background: #fee2e2; }

.application-applicant-list {
  display: grid;
}

.application-applicant-row,
.application-row-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-main);
}

.application-applicant-row:last-child {
  border-bottom: none;
}

.application-applicant-name {
  font-size: 0.95rem;
  font-weight: 850;
  color: var(--text-main);
}

.application-actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.application-actions button {
  border: 1px solid var(--border-main);
  border-radius: 7px;
  background: #fff;
  color: var(--text-main);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.42rem 0.65rem;
}

.application-actions button:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

@media (max-width: 720px) {
  .application-job-header,
  .application-applicant-row,
  .application-row-card {
    grid-template-columns: 1fr;
    display: grid;
  }

  .application-actions {
    justify-content: flex-start;
  }
}

.talents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.talent-card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-main);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
}

.talent-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-blue-100);
}

.talent-avatar-wrapper {
  position: relative;
  margin-bottom: 1.25rem;
}

.talent-avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 3px fill var(--bg-surface);
  box-shadow: var(--shadow-md);
}

.talent-online-badge {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  background-color: #22c55e;
  border: 2px solid var(--bg-surface);
  border-radius: var(--radius-full);
}

.talent-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--brand-primary-dark);
  margin-bottom: 0.25rem;
}

.talent-role-exp {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.talent-meta {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-block: 0.75rem;
  border-top: 1px solid var(--color-slate-50);
  margin-bottom: 0.75rem;
}

.talent-loc, .talent-sal {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

.talent-sal {
  color: var(--accent-blue);
  font-weight: 700;
}

.talent-badges {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: center;
}

.badge-talent {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background-color: var(--color-blue-50);
  color: var(--accent-blue);
}

.badge-talent.license {
  background-color: var(--color-slate-50);
  color: var(--text-muted);
}


/* ==========================================================================
   Community Section
   ========================================================================== */
.home-community-list {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-main);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.home-post-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: all 0.2s;
  border-bottom: 1px solid var(--border-main);
}

.home-post-row:last-child {
  border-bottom: none;
}

.home-post-row:hover {
  background-color: var(--bg-body);
}

.home-post-main {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.home-post-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-post-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  margin-left: 1rem;
}

.comm-icon-wrapper {
  background-color: var(--color-blue-50);
  color: var(--accent-blue);
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 0.2s, color 0.2s;
}

.community-card:hover .comm-icon-wrapper {
  background-color: var(--accent-blue);
  color: var(--text-white);
}

.comm-info h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--brand-primary-dark);
  margin-bottom: 0.25rem;
}

.comm-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}


/* ==========================================================================
   Trust Pillars/Features Section
   ========================================================================== */
.pillars-section {
  background-color: var(--brand-primary);
  color: var(--text-white);
  padding: 3rem 1.5rem;
}

.pillars-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.pillar-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.pillar-icon {
  background-color: rgba(255, 255, 255, 0.08);
  width: 54px;
  height: 54px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-blue-100);
}

.pillar-text h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.pillar-text p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}


/* ==========================================================================
   Subpages layout (Board structure)
   ========================================================================== */
.page-title-area {
  text-align: center;
  margin-bottom: 3.5rem;
  margin-top: 1rem;
}

.page-title-area h1 {
  font-size: 2.25rem;
  font-weight: 850;
  color: var(--brand-primary-dark);
  margin-bottom: 0.5rem;
}

.page-title-area p {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.board-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}

.board-filters {
  background-color: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  position: relative;
  top: auto;
  z-index: 20;
}

.board-filters h3 {
  display: none;
}

.board-filters form {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 0;
}

.filter-group label {
  display: none;
}

.filter-group select {
  width: auto;
  min-width: 138px;
  height: 50px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-slate-200);
  background-color: var(--bg-input);
  padding: 0 2.4rem 0 1.25rem;
  font-weight: 800;
  font-size: 0.98rem;
  outline-color: var(--accent-blue);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.filter-group select:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.btn-filter-apply {
  background-color: var(--accent-blue);
  color: var(--text-white);
  width: auto;
  height: 50px;
  font-weight: 800;
  border-radius: var(--radius-full);
  padding: 0 1.5rem;
  transition: background-color 0.2s;
  margin-top: 0;
}

.btn-filter-apply:hover {
  background-color: var(--accent-blue-hover);
}

.btn-filter-reset {
  background-color: transparent;
  color: var(--text-muted);
  width: auto;
  height: 50px;
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
  margin-top: 0;
  padding: 0 0.6rem;
  transition: color 0.2s;
}

.btn-filter-reset:hover {
  color: var(--accent-blue);
}

.board-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  background-color: var(--bg-surface);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-main);
  box-shadow: var(--shadow-sm);
}

.results-count {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-primary-dark);
}

.btn-primary-sm {
  background-color: var(--accent-blue);
  color: var(--text-white);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  transition: background-color 0.2s;
}

.btn-primary-sm:hover {
  background-color: var(--accent-blue-hover);
}

.board-content.full-width {
  grid-column: span 2;
}


/* Community Board Styles */
.community-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-main);
  padding-bottom: 0.1px;
}

.comm-tab {
  padding: 0.85rem 1.75rem;
  font-weight: 700;
  color: var(--text-muted);
  border-top-left-radius: var(--radius-sm);
  border-top-right-radius: var(--radius-sm);
  border: 1px solid transparent;
  margin-bottom: -1px;
  transition: all 0.2s;
  font-size: 1.05rem;
}

.comm-tab:hover {
  color: var(--accent-blue);
}

.comm-tab.active {
  color: var(--accent-blue);
  background-color: var(--bg-surface);
  border-color: var(--border-main) var(--border-main) transparent var(--border-main);
}

.community-posts-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.post-row {
  background-color: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-main);
  padding: 1.25rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s, border-color 0.15s;
  cursor: pointer;
}

.post-row:hover {
  transform: translateX(3px);
  border-color: var(--color-blue-100);
}

.post-main-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.post-main-info h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand-primary-dark);
}

.post-meta-line {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  gap: 1rem;
}

.post-date {
  color: var(--text-light);
}

.post-views {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Customer Service subpage custom */
.customer-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
}

.customer-contacts {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-box {
  background-color: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-main);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.contact-subtitle {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--accent-blue);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
  display: block;
}

.contact-box h3 {
  font-size: 1.6rem;
  font-weight: 850;
  color: var(--brand-primary-dark);
  margin-bottom: 0.5rem;
}

.contact-box p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.faq-container h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--brand-primary-dark);
  margin-bottom: 1.5rem;
}

.faq-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  padding: 1.25rem 1.75rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--brand-primary-dark);
  cursor: pointer;
  list-style: none;
  position: relative;
  user-select: none;
}

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 1.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--text-muted);
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-content {
  padding: 0 1.75rem 1.25rem 1.75rem;
  border-top: 1px solid var(--color-slate-50);
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   1:1 Inquiry Form Styles
   ========================================================================== */
.inquiry-section {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-lg);
  padding: 3rem;
  margin-top: 4rem;
  box-shadow: var(--shadow-md);
}

.inquiry-header {
  margin-bottom: 2.5rem;
  text-align: left;
}

.inquiry-header h2 {
  font-size: 1.6rem;
  font-weight: 850;
  color: var(--brand-primary-dark);
  margin-bottom: 0.5rem;
}

.inquiry-header p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.inquiry-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.inquiry-form .form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .inquiry-form .form-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .inquiry-section {
    padding: 2rem 1.5rem;
    margin-top: 2.5rem;
  }
}

.inquiry-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.inquiry-form .form-group.full-width {
  grid-column: span 2;
}

@media (max-width: 768px) {
  .inquiry-form .form-group.full-width {
    grid-column: span 1;
  }
}

.inquiry-form label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--brand-primary-dark);
}

.inquiry-form label .required {
  color: var(--red, #ef4444);
  margin-left: 2px;
}

.inquiry-form input[type="text"],
.inquiry-form input[type="email"],
.inquiry-form input[type="tel"],
.inquiry-form select,
.inquiry-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  border: 1.5px solid var(--border-main);
  border-radius: var(--radius-md);
  background-color: var(--bg-surface);
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.inquiry-form input:focus,
.inquiry-form select:focus,
.inquiry-form textarea:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.inquiry-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%234b5563'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.2rem;
  padding-right: 2.5rem;
}

.inquiry-form textarea {
  resize: vertical;
}

.form-agree-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
  padding: 1rem;
  background-color: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-main);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  user-select: none;
}

.checkbox-label input {
  display: none;
}

.checkbox-custom {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--border-main);
  border-radius: 4px;
  position: relative;
  transition: background-color 0.2s, border-color 0.2s;
  background-color: #fff;
}

.checkbox-label input:checked + .checkbox-custom {
  background-color: var(--accent-blue);
  border-color: var(--accent-blue);
}

.checkbox-label input:checked + .checkbox-custom::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.btn-agree-detail {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.btn-agree-detail:hover {
  color: var(--accent-blue);
}

.form-submit-wrap {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

.btn-inquiry-submit {
  padding: 0.9rem 2.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
  transition: transform 0.2s, background-color 0.2s;
}

.btn-inquiry-submit:hover {
  transform: translateY(-1px);
}

.btn-inquiry-submit:active {
  transform: translateY(1px);
}


/* ==========================================================================
   Footer Styles
   ========================================================================== */
.main-footer {
  background-color: var(--brand-primary-dark);
  color: var(--text-light);
  padding: 4rem 1.5rem 3rem 1.5rem;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer-brand .logo {
  color: var(--text-white);
  margin-bottom: 0.5rem;
}

.footer-logo-img {
  display: block;
  width: 150px;
  height: auto;
  object-fit: contain;
}

.footer-slogan {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text-white);
}

.footer-links a.policy {
  color: var(--color-blue-100);
}

.footer-divider {
  border: 0;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 2rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.company-info {
  font-size: 0.85rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.5);
}

.company-info strong {
  color: var(--text-white);
}

.copyright {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.35);
}

.footer-cs {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.cs-title {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.cs-number {
  font-size: 1.8rem;
  font-weight: 850;
  color: var(--text-white);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.cs-hours {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}


/* ==========================================================================
   Modals & dialogs
   ========================================================================== */
.modal-dialog {
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 500px;
  width: 90%;
  margin: auto;
  outline: none;
  background-color: var(--bg-surface);
  box-sizing: border-box;
  overflow-y: auto;
  max-height: 90vh;
  
  /* Modern starting style for dialog opening */
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: 
    display 0.3s allow-discrete, 
    opacity 0.3s ease-out, 
    transform 0.3s ease-out,
    overlay 0.3s allow-discrete;
}

.modal-dialog[open] {
  display: flex;
  flex-direction: column;
  opacity: 1;
  transform: translateY(0);
}

#dialog-post-resume,
#dialog-post-job {
  max-width: 640px;
}

@starting-style {
  .modal-dialog[open] {
    opacity: 0;
    transform: translateY(20px);
  }
}

.modal-dialog::backdrop {
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s allow-discrete, overlay 0.3s allow-discrete;
}

.modal-dialog[open]::backdrop {
  opacity: 1;
}

@starting-style {
  .modal-dialog[open]::backdrop {
    opacity: 0;
  }
}

.dialog-content {
  padding: 2rem;
  width: 100%;
  box-sizing: border-box;
  overflow: visible;
  flex-shrink: 0;
  min-height: min-content;
}


.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
}

.dialog-header h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--brand-primary-dark);
}

.dialog-tabs {
  display: flex;
  gap: 0.5rem;
}

.tab-btn {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-light);
  padding: 0.25rem 0.5rem;
  transition: color 0.2s;
  border-bottom: 2px solid transparent;
}

.tab-btn.active {
  color: var(--accent-blue);
  border-bottom-color: var(--accent-blue);
}

.btn-close-dialog {
  color: var(--text-light);
  transition: color 0.2s;
}

.btn-close-dialog:hover {
  color: var(--brand-primary);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brand-primary);
}

.form-group input, 
.form-group select, 
.form-group textarea {
  width: 100%;
  height: 46px;
  background-color: var(--bg-main);
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-sm);
  padding: 0 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.2s;
}

.form-group textarea {
  height: auto;
  padding: 0.75rem 1rem;
  resize: vertical;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
  border-color: var(--accent-blue);
  background-color: var(--bg-surface);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.business-input-row {
  display: flex;
  gap: 0.5rem;
}

.business-input-row input {
  flex: 1;
}

.btn-inline-check {
  height: 46px;
  border-radius: var(--radius-sm);
  background-color: var(--brand-primary);
  color: var(--text-white);
  font-weight: 800;
  padding: 0 1rem;
  white-space: nowrap;
  transition: background-color 0.2s, opacity 0.2s;
}

.btn-inline-check:hover {
  background-color: var(--accent-blue);
}

.btn-inline-check:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.btn-business-validate {
  width: 100%;
  background-color: var(--accent-blue);
}

.business-check-result {
  min-height: 1.2rem;
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
}

.business-check-result.success {
  color: #15803d;
}

.business-check-result.error {
  color: #dc2626;
}

.agreement-box {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 0.35rem 0 1rem;
  padding: 0.95rem;
  border: 1.5px solid var(--border-main);
  border-radius: var(--radius-md);
  background: #f8fafc;
}

.agreement-row {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: var(--text-main);
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.45;
  cursor: pointer;
}

.agreement-row input {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-top: 0.1rem;
  accent-color: var(--accent-blue);
}

.agreement-row-all {
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--color-slate-200);
  color: var(--brand-primary-dark);
  font-weight: 800;
}

/* ─── 잡코리아 스타일 약관 동의 UI ─────────────────────────── */

/* 필수/선택 배지 */
.agree-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.1rem 0.42rem;
  border-radius: 3px;
  margin-right: 0.25rem;
  vertical-align: middle;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.agree-badge-required {
  color: #1d4ed8;
  background: #dbeafe;
  border: 1px solid #bfdbfe;
}

.agree-badge-optional {
  color: #64748b;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

/* 동의 항목 컨테이너 */
.agreement-item {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-bottom: 1px solid #e9edf2;
  padding-bottom: 0.6rem;
}

.agreement-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* 헤더 행: 체크박스 + 내용보기 버튼 */
.agreement-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 32px;
}

.agreement-check-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-main);
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.45;
  cursor: pointer;
  flex: 1 1 0;
}

.agreement-check-label input[type="checkbox"] {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  accent-color: var(--accent-blue);
}

/* 내용보기 버튼 */
.agreement-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  flex-shrink: 0;
  color: #6b7280;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.18rem 0.5rem;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
  background: #fff;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  white-space: nowrap;
}

.agreement-view-btn:hover {
  color: var(--accent-blue);
  border-color: var(--accent-blue);
  background: #eff6ff;
}

.agreement-view-btn[aria-expanded="true"] {
  color: var(--accent-blue);
  border-color: var(--accent-blue);
  background: #eff6ff;
}

.agreement-view-arrow {
  display: inline-block;
  transition: transform 0.25s ease;
  line-height: 1;
}

.agreement-view-btn[aria-expanded="true"] .agreement-view-arrow {
  transform: rotate(180deg);
}

/* 약관 내용 패널 (인라인 펼침/접기) */
.agreement-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.25s ease;
  opacity: 0;
  padding: 0;
}

.agreement-panel.open {
  max-height: 480px;
  opacity: 1;
  padding: 0.7rem 0 0.5rem;
  overflow-y: auto;
}

.agreement-panel-inner {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem 1.1rem;
  font-size: 0.78rem;
  color: #374151;
  line-height: 1.7;
  max-height: 240px;
  overflow-y: auto;
  white-space: pre-line;
  word-break: break-word;
}

.agreement-panel-inner p,
.agreement-panel-inner strong {
  display: block;
  margin-bottom: 0.45rem;
}

/* 약관 동의하기 버튼 */
.agreement-panel-agree-btn {
  display: block;
  width: 100%;
  margin-top: 0.65rem;
  padding: 0.55rem 0;
  font-size: 0.84rem;
  font-weight: 800;
  color: #fff;
  background: var(--accent-blue);
  border-radius: 6px;
  transition: background 0.18s;
}

.agreement-panel-agree-btn:hover {
  background: var(--accent-blue-hover);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.radio-group {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.25rem;
}

.radio-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
}

.radio-label input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-blue);
}

.btn-submit-dialog {
  background-color: var(--accent-blue);
  color: var(--text-white);
  font-weight: 700;
  font-size: 1.05rem;
  width: 100%;
  height: 50px;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s;
  margin-top: 1rem;
  box-shadow: var(--shadow-sm);
}

.btn-submit-dialog:hover {
  background-color: var(--accent-blue-hover);
}

.auth-help-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.auth-help-link {
  color: var(--text-muted);
  font-weight: 800;
  transition: color 0.2s;
}

.auth-help-link:hover {
  color: var(--accent-blue);
}

.auth-help-result {
  min-height: 1.35rem;
  margin: 0 0 0.35rem;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--text-muted);
  line-height: 1.5;
}

.auth-help-result.success {
  color: #15803d;
}

.auth-help-result.error {
  color: #dc2626;
}

.btn-auth-back {
  width: 100%;
  height: 44px;
  margin-top: 0.6rem;
  color: var(--text-muted);
  font-weight: 800;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s, color 0.2s;
}

.btn-auth-back:hover {
  background-color: var(--color-slate-50);
  color: var(--accent-blue);
}

.auth-pane {
  display: block;
  width: 100%;
  height: auto;
  min-height: min-content;
  flex-shrink: 0;
}

.auth-pane.hidden {
  display: none !important;
}

.form-group.hidden {
  display: none !important;
}

.region-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem 0.7rem;
  padding: 0.8rem;
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-sm);
  background-color: var(--bg-main);
}

.region-checkbox-grid label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--brand-primary);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.region-checkbox-grid input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent-blue);
}

.region-checkbox-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0.7rem;
  gap: 0.45rem 0.55rem;
}

.region-checkbox-grid.compact label {
  font-size: 0.82rem;
}

.select-wrapper.region-picker-wrapper {
  overflow: visible;
}

.district-picker.dropdown {
  position: relative;
  width: 100%;
  height: 100%;
}

.district-picker.filter {
  width: auto;
  min-width: 142px;
  height: 50px;
}

.district-trigger {
  width: 100%;
  height: 100%;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-full);
  background-color: var(--bg-surface);
  color: var(--brand-primary);
  padding: 0 1rem;
  font-size: 0.95rem;
  font-weight: 800;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s, color 0.2s;
}

.district-picker.home .district-trigger {
  height: 54px;
  border-radius: var(--radius-full);
  border: 0;
  background: transparent;
  justify-content: flex-start;
  gap: 0.55rem;
  padding: 0 1.35rem;
  font-size: 1.02rem;
}

.district-picker.home .district-trigger::before {
  content: "";
  width: 0.62rem;
  height: 0.62rem;
  border-radius: var(--radius-full);
  background-color: var(--accent-blue);
  box-shadow: 0 0 0 4px var(--color-blue-100);
  flex: 0 0 auto;
}

.district-picker.home .district-trigger-icon {
  margin-left: auto;
}

.district-picker.filter .district-trigger {
  height: 50px;
  min-height: 50px;
  min-width: 142px;
  border-radius: var(--radius-full);
  background-color: var(--bg-surface);
  color: var(--text-main);
  padding: 0 1.25rem;
  font-size: 0.98rem;
}

.district-picker.filter.open .district-trigger {
  border-color: var(--brand-primary-dark);
  box-shadow: inset 0 0 0 1px var(--brand-primary-dark);
}

.district-picker.filter .district-trigger-count {
  background-color: transparent;
  color: var(--accent-blue);
  min-width: auto;
  height: auto;
  font-size: 1rem;
  font-weight: 900;
}

.district-trigger-count {
  min-width: 1.15rem;
  height: 1.15rem;
  border-radius: var(--radius-full);
  background-color: var(--accent-blue);
  color: var(--text-white);
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
}

.district-trigger-count:not(:empty) {
  display: inline-flex;
}

.district-trigger-icon {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.district-picker.open .district-trigger {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.18);
}

.district-panel {
  position: absolute;
  top: calc(100% + 0.65rem);
  left: 0;
  z-index: 120;
  width: min(860px, calc(100vw - 48px));
  max-width: calc(100vw - 48px);
  max-height: min(680px, calc(100vh - 180px));
  background-color: var(--bg-surface);
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: none;
  overflow: hidden;
}

.district-picker.open .district-panel {
  display: flex;
  flex-direction: column;
}

.district-picker.home .district-panel {
  width: min(960px, calc(100vw - 48px));
  border-radius: 24px;
  border-color: transparent;
  box-shadow: 0 22px 45px -15px rgba(15, 23, 42, 0.22);
}

.district-picker.filter .district-panel {
  width: min(860px, calc(100vw - 24px));
  border: 2px solid var(--brand-primary-dark);
  border-radius: 12px;
  top: calc(100% + 0.45rem);
}

.district-picker.resume .district-panel,
.district-picker.job .district-panel {
  width: calc(200% + 1rem);
  left: 0;
}

.district-picker.resume .district-panel-body,
.district-picker.job .district-panel-body {
  height: 220px;
  min-height: 220px;
}

.district-panel-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  height: min(560px, calc(100vh - 300px));
  min-height: 320px;
  overflow: hidden;
  flex: 1 1 auto;
}

.district-sido-list,
.district-list {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  overflow-y: auto;
  min-height: 0;
  padding: 0.75rem;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-blue) var(--color-slate-100);
}

.district-sido-list::-webkit-scrollbar,
.district-list::-webkit-scrollbar {
  width: 12px;
}

.district-sido-list::-webkit-scrollbar-track,
.district-list::-webkit-scrollbar-track {
  background-color: #f1f5f9;
  border-radius: var(--radius-full);
}

.district-sido-list::-webkit-scrollbar-thumb,
.district-list::-webkit-scrollbar-thumb {
  background-color: var(--accent-blue);
  border: 3px solid #f1f5f9;
  border-radius: var(--radius-full);
}

.district-sido-list::-webkit-scrollbar-thumb:hover,
.district-list::-webkit-scrollbar-thumb:hover {
  background-color: var(--accent-blue-hover);
}

.district-sido-list {
  border-right: 1px solid var(--color-slate-200);
}

.district-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: start;
  gap: 0.1rem 0.5rem;
}

.district-sido-btn,
.district-item-btn {
  min-height: 48px;
  border-radius: var(--radius-sm);
  padding: 0 1rem;
  text-align: left;
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 800;
}

.district-item-btn {
  font-weight: 700;
}

.district-sido-btn.active {
  background-color: var(--accent-blue);
  color: var(--text-white);
}

.district-sido-btn.active::after {
  content: "›";
  float: right;
  font-size: 1.5rem;
  line-height: 1;
}

.district-item-btn.active {
  color: var(--accent-blue);
}

.district-item-btn.active::after {
  content: "✓";
  margin-left: 0.45rem;
  font-size: 1.05rem;
}

.district-selected-list {
  display: flex;
  flex-wrap: wrap;
  flex: 0 0 auto;
  gap: 0.45rem;
  min-height: 0;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--color-slate-200);
  background-color: var(--color-slate-50);
}

.district-selected-list:empty {
  display: none;
}

.district-selected-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 34px;
  border-radius: 0;
  padding: 0 0.75rem;
  background-color: #f1f5f9;
  color: var(--text-main);
  font-size: 0.84rem;
  font-weight: 800;
}

.district-selected-chip button {
  color: inherit;
  font-size: 1.05rem;
  line-height: 1;
}

.district-panel-footer {
  display: flex;
  flex: 0 0 auto;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-top: 1px solid var(--color-slate-200);
  background-color: var(--bg-surface);
}

.district-reset-btn,
.district-apply-btn {
  height: 46px;
  border-radius: 10px;
  padding: 0 1.35rem;
  font-size: 0.92rem;
  font-weight: 800;
}

.district-reset-btn {
  color: var(--text-muted);
}

.district-apply-btn {
  background-color: var(--accent-blue);
  color: var(--text-white);
}

.district-empty {
  grid-column: 1 / -1;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

/* Detail dialog custom */
.modal-dialog.detail-dialog {
  max-width: 650px;
  overflow: hidden;
  height: 85vh;
  max-height: 85vh;
}

.modal-dialog.detail-dialog .dialog-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

.modal-dialog.detail-dialog .dialog-header {
  padding: 2rem 2.25rem 1rem 2.25rem;
  margin-bottom: 0;
  flex-shrink: 0;
}

.modal-dialog.detail-dialog .detail-body {
  padding: 1rem 2.25rem 2rem 2.25rem;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.modal-dialog.detail-dialog .detail-footer {
  padding: 1.25rem 2.25rem 1.5rem 2.25rem;
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-main);
  flex-shrink: 0;
  z-index: 10;
}

.detail-title-block {
  margin-bottom: 1.75rem;
}

.detail-badge {
  display: inline-block;
  background-color: var(--color-blue-50);
  color: var(--accent-blue);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

.detail-title-block h1 {
  font-size: 1.65rem;
  font-weight: 850;
  color: var(--brand-primary-dark);
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.detail-meta-text {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
}

.detail-specs-table {
  background-color: var(--bg-main);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-main);
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
}

.home-banner-section {
  max-width: var(--max-width);
  margin: 3.5rem auto 4.5rem;
  padding: 0 1.5rem;
}

.home-banner-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 1;
  min-height: 144px;
  max-height: 240px;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--color-slate-200);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  user-select: none;
}

.home-banner-track {
  display: flex;
  width: 100%;
  height: 100%;
  transform: translateX(0);
  transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

.home-banner-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}

.home-banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #fff;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

.home-banner-link {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

.home-banner-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.48);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.home-banner-control.prev {
  left: 12px;
}

.home-banner-control.next {
  right: 12px;
}

.home-banner-dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
}

.home-banner-dot {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.28);
  cursor: pointer;
  padding: 0;
}

.home-banner-dot.active {
  width: 20px;
  border-radius: 999px;
  background: var(--accent-blue);
}

.spec-row:not(:last-child) {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-slate-200);
}

.spec-label {
  color: var(--text-muted);
  font-weight: 600;
}

.spec-value {
  color: var(--brand-primary-dark);
  font-weight: 700;
}

.spec-value.highlight {
  color: var(--accent-blue);
  font-size: 1.05rem;
}

.detail-map-block {
  margin: 1rem 0 1.75rem;
}

.detail-job-map {
  width: 100%;
  height: 220px;
  background: #f1f5f9;
  border: 1.5px solid var(--border-main);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.kakao-map-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  margin-top: 8px;
  padding: 0 12px;
  border: 1.5px solid #fee500;
  border-radius: var(--radius-md);
  background: #fee500;
  color: #191919;
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
}

.kakao-map-link:hover {
  filter: brightness(0.98);
}

.detail-content-block h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--brand-primary-dark);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--brand-primary);
  display: inline-block;
}

.desc-content {
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.75;
  white-space: pre-wrap;
}

.detail-footer {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 2.25rem 2rem 2.25rem;
  border-top: 1px solid var(--border-main);
}

.btn-action-primary {
  flex: 2;
  background-color: var(--accent-blue);
  color: var(--text-white);
  font-weight: 700;
  height: 48px;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s;
}

.btn-action-primary:hover {
  background-color: var(--accent-blue-hover);
}

.btn-action-secondary {
  flex: 1;
  background-color: var(--color-slate-50);
  border: 1px solid var(--border-main);
  color: var(--text-main);
  font-weight: 700;
  height: 48px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.btn-action-secondary:hover {
  background-color: var(--color-slate-200);
}

/* Talent detail custom */
.detail-profile-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.detail-avatar-wrapper .talent-avatar {
  width: 90px;
  height: 90px;
  box-shadow: var(--shadow-indigo);
}

.detail-profile-title {
  display: flex;
  flex-direction: column;
}

.detail-profile-title h1 {
  font-size: 1.5rem;
  font-weight: 850;
  color: var(--brand-primary-dark);
  margin-bottom: 0.25rem;
}


/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes pulse-gold {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 2px 4px rgba(251, 191, 36, 0.3));
  }
  100% {
    transform: scale(1.08) rotate(2deg);
    filter: drop-shadow(0 4px 12px rgba(251, 191, 36, 0.6));
  }
}

/* Mobile bottom nav hidden by default on desktop */
.mobile-bottom-nav {
  display: none;
}


/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-content {
    align-items: center;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-stats {
    margin: 0 auto;
  }
  
  .hero-image-pane {
    order: -1;
  }
  
  .hero-person-img {
    max-width: 320px;
  }
  
  .search-fields {
    grid-template-columns: 1fr;
  }

  .select-wrapper + .select-wrapper {
    border-left: 0;
    border-top: 1px solid var(--color-slate-200);
    border-radius: var(--radius-full);
  }
  
  .search-container {
    margin-top: 0;
  }
  
  .search-bar-section {
    margin-top: 0;
    padding-top: 2rem;
  }

  .home-banner-section {
    margin-top: 2rem;
    margin-bottom: 3.5rem;
  }

  .home-banner-frame {
    aspect-ratio: 4.5 / 1;
    min-height: 90px;
    max-height: 170px;
  }
  
  .board-layout {
    grid-template-columns: 1fr;
  }
  
  .board-filters {
    position: static;
  }

  .board-filters form {
    gap: 0.55rem;
  }

  
  .customer-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .pillars-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  /* Prevent bottom nav overlapping content */
  body {
    padding-bottom: 75px;
  }

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

  .district-panel {
    width: calc(100vw - 32px);
    left: 50%;
    transform: translateX(-50%);
    max-height: calc(100vh - 140px);
  }

  .district-picker.filter .district-panel {
    width: calc(100vw - 16px);
    left: 50%;
    transform: translateX(-50%);
  }

  .district-picker.resume .district-panel,
  .district-picker.job .district-panel {
    width: calc(100vw - 40px);
    left: 50%;
    transform: translateX(-50%);
  }

  .district-picker.resume .district-panel-body,
  .district-picker.job .district-panel-body {
    height: min(320px, calc(100vh - 300px));
    min-height: 200px;
  }

  .district-panel-body {
    grid-template-columns: 130px 1fr;
    height: min(430px, calc(100vh - 270px));
    min-height: 260px;
  }

  .district-list {
    grid-template-columns: 1fr;
  }

  .district-sido-btn,
  .district-item-btn {
    min-height: 38px;
    font-size: 0.86rem;
  }

  .nav-menu {
    display: none !important;
  }

  .auth-buttons {
    display: none !important;
  }

  /* Hero section responsiveness overrides */
  .hero-section {
    padding-block: 2.5rem 3.5rem;
  }

  .hero-container {
    padding: 0 1rem;
    gap: 1.5rem;
  }

  .hero-title {
    font-size: 1.75rem;
    line-height: 1.35;
    margin-bottom: 0.75rem;
    text-align: center;
    word-break: keep-all;
  }

  .hero-desc {
    font-size: 1rem;
    margin-bottom: 1.75rem;
    text-align: center;
    word-break: keep-all;
  }

  .hero-actions {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    margin-bottom: 2rem;
  }

  .btn-hero-primary, .btn-hero-secondary {
    max-width: 100% !important;
    width: 100%;
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    width: 100%;
    margin: 0 auto;
  }

  .stat-item {
    border-right: none !important;
    width: 100%;
    justify-content: flex-start;
    padding-bottom: 0.75rem;
  }

  .stat-item:not(:last-child) {
    border-bottom: 1px solid var(--color-slate-200);
  }

  .hero-person-img {
    max-width: 260px;
    margin: 0 auto;
  }

  /* App-like bottom navigation */
  .mobile-bottom-nav {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-main);
    box-shadow: 0 -4px 12px rgba(15, 23, 42, 0.05);
  }

  .mobile-bottom-nav ul {
    display: flex;
    list-style: none;
    justify-content: space-around;
    align-items: center;
    height: 64px;
    padding: 0;
    margin: 0;
  }

  .mobile-bottom-nav li {
    flex: 1;
    text-align: center;
  }

  .m-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    height: 100%;
    padding-block: 6px;
    transition: color 0.2s, transform 0.15s;
  }

  .m-nav-link svg {
    color: var(--text-light);
    transition: color 0.2s, transform 0.2s;
  }

  .m-nav-link:hover,
  .m-nav-link.active {
    color: var(--accent-blue);
  }

  .m-nav-link:hover svg,
  .m-nav-link.active svg {
    color: var(--accent-blue);
    transform: translateY(-1px);
  }

  /* Horizontal swipeable tags list instead of wrapping */
  .tag-group {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    gap: 0.5rem;
    scrollbar-width: none; /* Firefox */
    -webkit-overflow-scrolling: touch;
  }

  .tag-group::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
  }

  .popular-tags {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .btn-tag {
    white-space: nowrap;
    padding: 0.45rem 1rem; /* Better tap target */
  }

  /* Stacked search form fields and sub-page filters */
  .search-fields {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .search-container {
    padding: 1.25rem;
    border-radius: var(--radius-lg);
  }

  .select-wrapper {
    border: 1px solid var(--color-slate-200);
  }

  /* Bottom sheet styled dialogs on mobile */
  .modal-dialog {
    max-width: 100vw !important;
    width: 100vw !important;
    margin: auto 0 0 0 !important;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
    max-height: 92vh !important;
    overflow-y: auto;
    box-sizing: border-box;
    transform: translateY(100%);
    transition: 
      display 0.35s allow-discrete, 
      opacity 0.35s ease-out, 
      transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
      overlay 0.35s allow-discrete;
  }

  .modal-dialog[open] {
    transform: translateY(0);
  }

  @starting-style {
    .modal-dialog[open] {
      opacity: 1;
      transform: translateY(100%);
    }
  }

  /* Handle drag indicator at top of bottom sheet */
  .dialog-content {
    padding: 1.75rem 1.25rem 2.5rem;
    width: 100%;
    box-sizing: border-box;
  }

  /* Fix input/button overflow inside dialog */
  .form-group input,
  .form-group select,
  .form-group textarea {
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
  }

  .btn-submit-dialog {
    width: 100%;
    box-sizing: border-box;
  }

  .dialog-tabs {
    gap: 1rem;
  }

  .tab-btn {
    font-size: 1.15rem;
  }

  .detail-body {
    padding: 1.25rem 1.25rem 2rem;
    max-height: calc(85vh - 120px);
    box-sizing: border-box;
  }

  .detail-footer {
    padding: 1.25rem;
    box-sizing: border-box;
  }

  /* Stacked form inputs in grids */
  .form-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  /* General elements responsiveness */
  .pillars-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .premium-container {
    flex-direction: column;
    gap: 1.25rem;
    text-align: center;
    padding: 1.5rem;
    border-left: none;
    border-top: 5px solid var(--color-gold);
  }
  
  .premium-content {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .btn-premium-action {
    width: 100%;
  }
  
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .footer-cs {
    align-items: flex-start;
  }
  
  /* Stacking the side-by-side search sidebar and listings content */
  .board-layout {
    grid-template-columns: 1fr;
  }

  .board-filters {
    position: static;
    margin-bottom: 1.5rem;
  }

  .board-filters form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
  }

  .filter-group select,
  .district-picker.filter,
  .district-picker.filter .district-trigger,
  .btn-filter-apply,
  .btn-filter-reset {
    width: 100%;
    min-width: 0;
  }

  .btn-filter-reset {
    grid-column: span 2;
  }
}

/* ==========================================================================
   Desktop Dialog Auto Scroll Layout
   ========================================================================== */
@media (min-width: 769px) {
  .modal-dialog {
    max-height: 90vh;
    display: none;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
  }
  
  .modal-dialog[open] {
    display: flex;
  }

  .dialog-content {
    display: block;
    height: auto;
    overflow: visible;
  }

  .dialog-header {
    flex-shrink: 0;
  }

  .detail-footer {
    flex-shrink: 0;
  }

  .dialog-content form,
  .dialog-content .auth-pane,
  .dialog-content .detail-body {
    overflow-y: visible;
    min-height: 0;
    height: auto;
    padding-right: 0;
  }
}

/* ==========================================================================
   Privacy Policy Styles
   ========================================================================== */
.policy-document-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  max-width: 800px;
  margin: 0 auto;
}

.policy-document-plain {
  max-width: 920px;
  padding: 2rem;
}

.policy-plain-text {
  margin: 0;
  white-space: pre-wrap;
  word-break: keep-all;
  overflow-wrap: anywhere;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--text-main);
}

.policy-section {
  margin-bottom: 2.5rem;
}

.policy-section:last-child {
  margin-bottom: 0;
}

.policy-section h2 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--brand-primary-dark);
  border-left: 4px solid var(--accent-blue);
  padding-left: 0.75rem;
  margin-bottom: 1.25rem;
  margin-top: 0;
}

.policy-subsection {
  margin-bottom: 1.5rem;
}

.policy-subsection h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: 0.75rem;
}

.policy-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .policy-card-grid {
    grid-template-columns: 1fr;
  }
}

.policy-card {
  background-color: var(--bg-main);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.policy-card h4 {
  font-size: 0.95rem;
  font-weight: 750;
  color: var(--brand-primary-dark);
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.policy-card ul {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.policy-card.highlight {
  border-color: rgba(37, 99, 235, 0.3);
  background-color: rgba(37, 99, 235, 0.03);
}

.policy-card.highlight h4 {
  color: var(--accent-blue);
}

.policy-note {
  font-size: 0.85rem;
  color: var(--text-light);
  background: var(--bg-main);
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--color-slate-400);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.policy-list-checked {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem 1.5rem;
}

@media (max-width: 576px) {
  .policy-list-checked {
    grid-template-columns: 1fr;
  }
}

.policy-list-checked li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.policy-list-checked li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-blue);
  font-weight: 800;
}

.policy-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.75rem;
}

.policy-table th,
.policy-table td {
  border: 1px solid var(--color-slate-200);
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
}

.policy-table th {
  background-color: var(--bg-main);
  color: var(--brand-primary-dark);
  font-weight: 750;
  text-align: left;
}

.policy-table td {
  color: var(--text-muted);
}

.policy-contact-card {
  background-color: var(--bg-main);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.contact-line {
  font-size: 0.9rem;
  display: flex;
  gap: 0.5rem;
}

.contact-line strong {
  color: var(--brand-primary-dark);
  width: 80px;
}

.contact-line span {
  color: var(--text-muted);
}

.contact-line a {
  color: var(--accent-blue);
  font-weight: 600;
}

/* ==========================================================================
   Terms of Use Styles
   ========================================================================== */
.policy-badge {
  display: inline-block;
  color: white;
  border-radius: 4px;
  padding: 2px 6.5px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
}

.policy-badge.blue {
  background-color: var(--accent-blue);
}

.policy-badge.orange {
  background-color: #f97316;
}

.policy-badge.red {
  background-color: var(--accent-red);
}

.policy-card.gold-card {
  border-left: 4px solid #eab308;
  background-color: rgba(234, 179, 8, 0.03);
}

.policy-card.gold-card h4 {
  color: #ca8a04;
}

.policy-card.red-border {
  border-top: 3px solid var(--accent-red);
}

.policy-card.red-border h4 {
  color: var(--accent-red);
}

/* ============================================================
   이용약관 페이지 (Terms of Use) 전용 스타일
   ============================================================ */

/* 히어로 헤더 */
.terms-hero {
  background: linear-gradient(135deg, var(--color-navy-900) 0%, var(--color-navy-700) 50%, var(--color-blue-600) 100%);
  padding: 4rem 2rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.terms-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(255,255,255,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.terms-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
}

.terms-hero-inner {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.terms-hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.9);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  margin-bottom: 1.2rem;
  backdrop-filter: blur(4px);
}

.terms-hero-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 0.8rem;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.terms-hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.72);
  margin: 0 0 1.5rem;
  line-height: 1.7;
}

.terms-hero-meta {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.terms-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
}

/* 페이지 레이아웃 */
.terms-page-layout {
  display: flex;
  gap: 0;
  min-height: calc(100vh - 320px);
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  gap: 2rem;
  align-items: flex-start;
}

/* 사이드바 */
.terms-sidebar {
  width: 240px;
  flex-shrink: 0;
  position: sticky;
  top: 80px;
}

.terms-sidebar-card {
  background: #fff;
  border: 1px solid var(--color-slate-200);
  border-radius: 16px;
  padding: 1.5rem 1.25rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.terms-sidebar-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  margin: 0 0 0.85rem;
  padding-left: 0.25rem;
}

.terms-tab-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.terms-tab-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 0.9rem;
  border: none;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: left;
  width: 100%;
  transition: all 0.18s ease;
  position: relative;
}

.terms-tab-item:hover {
  background: var(--color-blue-50);
  color: var(--accent-blue);
}

.terms-tab-item.active {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  color: var(--accent-blue);
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(37,99,235,0.12);
}

.terms-tab-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 3px;
  background: var(--accent-blue);
  border-radius: 0 3px 3px 0;
}

.terms-tab-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.terms-tab-text {
  flex: 1;
  line-height: 1.3;
}

.terms-tab-arrow {
  font-size: 1.1rem;
  color: var(--text-light);
  transition: transform 0.18s;
}

.terms-tab-item.active .terms-tab-arrow,
.terms-tab-item:hover .terms-tab-arrow {
  transform: translateX(2px);
  color: var(--accent-blue);
}

.terms-sidebar-footer {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-slate-200);
}

.terms-sidebar-footer p {
  font-size: 0.78rem;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0 0 0.6rem;
}

.terms-cs-link {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-blue);
  text-decoration: none;
  transition: opacity 0.15s;
}

.terms-cs-link:hover {
  opacity: 0.75;
  text-decoration: underline;
}

/* 메인 콘텐츠 영역 */
.terms-main-content {
  flex: 1;
  min-width: 0;
}

/* 로딩 */
.terms-loading-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  color: var(--text-light);
  font-size: 0.9rem;
  gap: 1rem;
}

.terms-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--color-slate-200);
  border-top-color: var(--accent-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 약관 콘텐츠 영역 */
.terms-content-area {
  background: #fff;
  border: 1px solid var(--color-slate-200);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

/* 약관 상단 헤더 */
.terms-doc-header {
  background: linear-gradient(135deg, var(--color-slate-50), #f1f5f9);
  border-bottom: 1px solid var(--color-slate-200);
  padding: 2rem 2rem 1.5rem;
}

.terms-doc-title {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--brand-primary-dark);
  margin: 0 0 0.4rem;
  letter-spacing: -0.02em;
}

.terms-doc-date {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
  background: white;
  border: 1px solid var(--color-slate-200);
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
}

/* 목차 */
.terms-toc {
  background: var(--color-blue-50);
  border-bottom: 1px solid var(--color-blue-100, #dbeafe);
  padding: 1.5rem 2rem;
}

.terms-toc-title {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin: 0 0 0.85rem;
}

.terms-toc-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.terms-toc-list li a {
  font-size: 0.8rem;
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  background: white;
  border: 1px solid rgba(37,99,235,0.2);
  border-radius: 6px;
  display: inline-block;
  transition: all 0.15s;
}

.terms-toc-list li a:hover {
  background: var(--accent-blue);
  color: white;
  border-color: var(--accent-blue);
}

/* 약관 본문 */
.terms-body {
  padding: 2rem;
}

/* 조(條) 카드 */
.terms-article {
  margin-bottom: 1.5rem;
  border: 1px solid var(--color-slate-200);
  border-radius: 12px;
  overflow: hidden;
  scroll-margin-top: 90px;
  transition: box-shadow 0.2s;
}

.terms-article:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.terms-article-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  background: var(--color-slate-50);
  border-bottom: 1px solid var(--color-slate-200);
}

.terms-article-num {
  flex-shrink: 0;
  background: var(--accent-blue);
  color: white;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.28rem 0.55rem;
  border-radius: 6px;
  letter-spacing: 0.04em;
  margin-top: 1px;
}

.terms-article-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--brand-primary-dark);
  margin: 0;
  line-height: 1.4;
}

.terms-article-body {
  padding: 1.25rem 1.5rem;
  background: white;
}

/* 조항 항목 */
.terms-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  color: var(--text-main);
  line-height: 1.75;
  border-bottom: 1px dashed var(--color-slate-200);
}

.terms-item:last-child {
  border-bottom: none;
}

.terms-item-num {
  flex-shrink: 0;
  font-weight: 700;
  color: var(--accent-blue);
  min-width: 1.6rem;
  font-size: 0.82rem;
}

.terms-item-text {
  flex: 1;
}

/* 서문 (목적 등 설명) */
.terms-intro-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin: 0;
  padding: 0.5rem 0;
}

/* 부칙 카드 */
.terms-addendum {
  margin-top: 2rem;
  background: linear-gradient(135deg, #f8fafc, #eff6ff);
  border: 1px solid var(--color-blue-100, #dbeafe);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}

.terms-addendum p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
  line-height: 1.7;
}

.terms-addendum strong {
  color: var(--accent-blue);
}

#view-privacy-policy .section {
  padding: 2.5rem 1.5rem 4rem;
  background: var(--bg-main);
}

#view-privacy-policy .section-container {
  max-width: 960px;
  padding: 0;
}

#view-privacy-policy .page-title-area {
  display: none;
}

#view-privacy-policy .privacy-content-area {
  margin: 0 auto;
}

#view-privacy-policy .policy-document-plain {
  max-width: 960px;
}

/* 반응형 */
@media (max-width: 900px) {
  .terms-page-layout {
    flex-direction: column;
    padding: 1.5rem 1rem 3rem;
  }

  .terms-sidebar {
    width: 100%;
    position: static;
  }

  .terms-tab-nav {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.5rem;
    padding-bottom: 0.25rem;
    scrollbar-width: none;
  }

  .terms-tab-nav::-webkit-scrollbar { display: none; }

  .terms-tab-item {
    flex-shrink: 0;
    padding: 0.65rem 1rem;
    border-radius: 50px;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .terms-tab-item.active::before { display: none; }

  .terms-sidebar-footer { display: none; }

  .terms-hero {
    padding: 2.5rem 1.25rem 2rem;
  }

  .terms-doc-header,
  .terms-toc,
  .terms-body {
    padding: 1.25rem;
  }

  .terms-article-header {
    padding: 0.9rem 1rem;
  }

  .terms-article-body {
    padding: 1rem;
  }

  #view-privacy-policy .section {
    padding: 1.5rem 1rem 3rem;
  }
}

@media (max-width: 480px) {
  .terms-hero-title { font-size: 1.6rem; }
  .terms-meta-chip { font-size: 0.76rem; }
}

/* ============================================================
   이용안내 페이지 (User Guide) 전용 스타일
   ============================================================ */

/* 히어로 헤더 - 이용안내 (에메랄드 그라데이션) */
.guide-hero {
  background: linear-gradient(135deg, #064e3b 0%, #065f46 50%, #059669 100%);
  padding: 4rem 2rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.guide-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(255,255,255,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.guide-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
}

.guide-hero-inner {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.guide-hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.9);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  margin-bottom: 1.2rem;
  backdrop-filter: blur(4px);
}

.guide-hero-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 0.8rem;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.guide-hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.72);
  margin: 0 0 1.5rem;
  line-height: 1.7;
}

.guide-hero-meta {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.guide-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
}

/* 페이지 레이아웃 */
.guide-page-layout {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  gap: 2rem;
  align-items: flex-start;
}

/* 사이드바 */
.guide-sidebar {
  width: 240px;
  flex-shrink: 0;
  position: sticky;
  top: 80px;
}

.guide-sidebar-card {
  background: #fff;
  border: 1px solid var(--color-slate-200);
  border-radius: 16px;
  padding: 1.5rem 1.25rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.guide-sidebar-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  margin: 0 0 0.85rem;
  padding-left: 0.25rem;
}

.guide-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.guide-nav-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 0.9rem;
  border: none;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: left;
  text-decoration: none;
  width: 100%;
  transition: all 0.18s ease;
  position: relative;
}

.guide-nav-item:hover {
  background: #ecfdf5;
  color: #059669;
}

.guide-nav-item.active {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  color: #059669;
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(5,150,105,0.12);
}

.guide-nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 3px;
  background: #059669;
  border-radius: 0 3px 3px 0;
}

.guide-nav-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.guide-nav-text {
  flex: 1;
  line-height: 1.3;
}

.guide-nav-arrow {
  font-size: 1.1rem;
  color: var(--text-light);
  transition: transform 0.18s;
}

.guide-nav-item.active .guide-nav-arrow,
.guide-nav-item:hover .guide-nav-arrow {
  transform: translateX(2px);
  color: #059669;
}

.guide-sidebar-footer {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-slate-200);
}

.guide-sidebar-footer p {
  font-size: 0.78rem;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0 0 0.6rem;
}

.guide-cs-link {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #059669;
  text-decoration: none;
  transition: opacity 0.15s;
}

.guide-cs-link:hover {
  opacity: 0.75;
  text-decoration: underline;
}

/* 메인 콘텐츠 영역 */
.guide-main-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* 섹션 카드 */
.guide-section-card {
  background: #fff;
  border: 1px solid var(--color-slate-200);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.05);
  scroll-margin-top: 90px;
  transition: box-shadow 0.2s;
}

.guide-section-card:hover {
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.guide-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
  border-bottom: 1px solid #d1fae5;
}

.guide-card-num {
  flex-shrink: 0;
  background: #059669;
  color: white;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.28rem 0.55rem;
  border-radius: 6px;
  letter-spacing: 0.04em;
}

.guide-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--brand-primary-dark);
  margin: 0;
  line-height: 1.4;
}

.guide-card-body {
  padding: 1.5rem;
}

.guide-paragraph {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin: 0 0 1.25rem;
}

/* 서비스 소개 - 특성 그리드 */
.guide-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.guide-feature-item {
  text-align: center;
  padding: 1.25rem 0.75rem;
  background: #f8fafc;
  border: 1px solid var(--color-slate-200);
  border-radius: 12px;
  transition: all 0.2s;
}

.guide-feature-item:hover {
  background: #f0fdf4;
  border-color: #a7f3d0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(5,150,105,0.08);
}

.guide-feature-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.guide-feature-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-primary-dark);
  margin-bottom: 0.25rem;
}

.guide-feature-desc {
  font-size: 0.76rem;
  color: var(--text-light);
  line-height: 1.4;
}

/* 회원 구분 카드 */
.guide-member-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.guide-member-card {
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--color-slate-200);
  transition: box-shadow 0.2s;
}

.guide-member-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.guide-member-card.blue {
  border-top: 3px solid var(--accent-blue);
  background: linear-gradient(180deg, #eff6ff 0%, #fff 30%);
}

.guide-member-card.orange {
  border-top: 3px solid #f97316;
  background: linear-gradient(180deg, #fff7ed 0%, #fff 30%);
}

.guide-member-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.guide-member-badge {
  display: inline-block;
  color: white;
  border-radius: 6px;
  padding: 0.25rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 800;
}

.guide-member-badge.blue { background: var(--accent-blue); }
.guide-member-badge.orange { background: #f97316; }

.guide-member-role {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.guide-member-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.guide-member-list li {
  font-size: 0.88rem;
  color: var(--text-main);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.5;
}

.guide-check {
  flex-shrink: 0;
  font-weight: 800;
  font-size: 0.82rem;
}

.guide-check.blue { color: var(--accent-blue); }
.guide-check.orange { color: #f97316; }

/* 인증 정보 박스 */
.guide-info-box {
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--color-slate-200);
}

.guide-info-box.blue {
  border-left: 4px solid var(--accent-blue);
  background: linear-gradient(135deg, #eff6ff, #f8fafc);
}

.guide-info-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.guide-info-header h3 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--brand-primary-dark);
  margin: 0;
}

.guide-info-icon {
  font-size: 1.3rem;
}

.guide-info-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.guide-tag {
  display: inline-block;
  background: white;
  border: 1px solid var(--color-slate-200);
  color: var(--accent-blue);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.35rem 0.8rem;
  border-radius: 50px;
}

.guide-info-note {
  background: white;
  border: 1px solid var(--color-slate-200);
  border-radius: 8px;
  padding: 1rem 1.25rem;
}

.guide-info-note p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 0 0.5rem;
}

.guide-info-note p:last-child {
  margin-bottom: 0;
}

/* 프리미엄 카드 */
.guide-premium-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: linear-gradient(135deg, #fefce8, #fffbeb);
  border: 1px solid #fde68a;
  border-left: 4px solid #eab308;
  border-radius: 12px;
  padding: 1.5rem;
}

.guide-premium-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.guide-premium-content h3 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #92400e;
  margin: 0 0 0.5rem;
}

.guide-premium-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 0 0.75rem;
}

.guide-premium-benefits {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.guide-premium-tag {
  display: inline-block;
  background: white;
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 50px;
}

/* 플로우 단계 */
.guide-flow-steps {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
}

.guide-flow-step {
  flex: 1;
  background: #f8fafc;
  border: 1px solid var(--color-slate-200);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
  transition: all 0.2s;
}

.guide-flow-step:hover {
  background: #f0fdf4;
  border-color: #a7f3d0;
  transform: translateY(-2px);
}

.guide-flow-num {
  width: 32px;
  height: 32px;
  background: #059669;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 800;
  margin: 0 auto 0.75rem;
}

.guide-flow-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.guide-flow-text strong {
  font-size: 0.88rem;
  color: var(--brand-primary-dark);
}

.guide-flow-text span {
  font-size: 0.78rem;
  color: var(--text-light);
  line-height: 1.4;
}

.guide-flow-arrow {
  display: flex;
  align-items: center;
  font-size: 1.2rem;
  color: #059669;
  font-weight: 700;
  flex-shrink: 0;
}

/* 규칙 리스트 */
.guide-rules-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.guide-rule-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: #f8fafc;
  border: 1px solid var(--color-slate-200);
  border-radius: 12px;
  transition: all 0.2s;
}

.guide-rule-item:hover {
  background: white;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.guide-rule-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.guide-rule-content strong {
  font-size: 0.9rem;
  color: var(--brand-primary-dark);
  display: block;
  margin-bottom: 0.3rem;
}

.guide-rule-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* 신고 제도 */
.guide-report-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.guide-report-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-slate-200);
}

.guide-report-card.danger {
  border-top: 3px solid #ef4444;
}

.guide-report-card.warning {
  border-top: 3px solid #f59e0b;
}

.guide-report-header {
  padding: 0.9rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.guide-report-header.danger {
  background: #fef2f2;
  color: #dc2626;
  border-bottom: 1px solid #fecaca;
}

.guide-report-header.warning {
  background: #fffbeb;
  color: #d97706;
  border-bottom: 1px solid #fde68a;
}

.guide-report-list {
  list-style: none;
  margin: 0;
  padding: 1rem 1.25rem;
}

.guide-report-list li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0.4rem 0;
  padding-left: 1.2rem;
  position: relative;
  line-height: 1.5;
  border-bottom: 1px dashed var(--color-slate-200);
}

.guide-report-list li:last-child {
  border-bottom: none;
}

.guide-report-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #ef4444;
  font-weight: 800;
}

.guide-report-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  padding: 1rem 1.25rem;
  margin: 0;
}

/* 하단 CTA */
.guide-bottom-cta {
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
  border: 1px solid #d1fae5;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
}

.guide-bottom-cta p {
  font-size: 1rem;
  font-weight: 700;
  color: #065f46;
  margin: 0 0 1.25rem;
}

.guide-cta-links {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.guide-cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.2s;
}

.guide-cta-btn.primary {
  background: #059669;
  color: white;
  box-shadow: 0 2px 8px rgba(5,150,105,0.25);
}

.guide-cta-btn.primary:hover {
  background: #047857;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(5,150,105,0.3);
}

.guide-cta-btn.secondary {
  background: white;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.guide-cta-btn.secondary:hover {
  background: #ecfdf5;
  border-color: #059669;
}

/* ======== 이용안내 반응형 ======== */
@media (max-width: 900px) {
  .guide-page-layout {
    flex-direction: column;
    padding: 1.5rem 1rem 3rem;
  }

  .guide-sidebar {
    width: 100%;
    position: static;
  }

  .guide-nav {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.5rem;
    padding-bottom: 0.25rem;
    scrollbar-width: none;
  }

  .guide-nav::-webkit-scrollbar { display: none; }

  .guide-nav-item {
    flex-shrink: 0;
    padding: 0.65rem 1rem;
    border-radius: 50px;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .guide-nav-item.active::before { display: none; }
  .guide-sidebar-footer { display: none; }

  .guide-hero {
    padding: 2.5rem 1.25rem 2rem;
  }

  .guide-feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .guide-member-grid {
    grid-template-columns: 1fr;
  }

  .guide-report-grid {
    grid-template-columns: 1fr;
  }

  .guide-flow-steps {
    flex-direction: column;
  }

  .guide-flow-arrow {
    justify-content: center;
    transform: rotate(90deg);
  }

  .guide-premium-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .guide-card-body {
    padding: 1.25rem;
  }
}

@media (max-width: 480px) {
  .guide-hero-title { font-size: 1.6rem; }
  .guide-meta-chip { font-size: 0.76rem; }

  .guide-feature-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }

  .guide-feature-item {
    padding: 1rem 0.5rem;
  }

  .guide-feature-icon {
    font-size: 1.5rem;
  }
}

/* ============================================================
   커뮤니티 페이지네이션 스타일 (Community Pagination)
   ============================================================ */
.pagination-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  margin-top: 2rem;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted, #64748b);
  background-color: white;
  border: 1.5px solid var(--border-main, #e2e8f0);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.pagination-btn:hover:not(.disabled):not(.active) {
  background-color: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

.pagination-btn.active {
  background-color: var(--accent-blue, #2563eb);
  border-color: var(--accent-blue, #2563eb);
  color: white;
  font-weight: 700;
}

.pagination-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background-color: #f8fafc;
}

/* ============================================================
   맨 위로 이동 버튼 (Back to Top Button)
   ============================================================ */
.back-to-top-btn {
  position: fixed;
  bottom: 85px; /* 모바일 하단바 위에 노출 */
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--accent-blue, #2563eb);
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

.back-to-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top-btn:hover {
  background-color: #1d4ed8;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.back-to-top-btn:active {
  transform: translateY(0);
}

@media (min-width: 901px) {
  .back-to-top-btn {
    bottom: 30px; /* 데스크톱에서는 더 아래에 배치 */
  }
}

/* ==========================================================================
   1:1 Inquiry Tracking Styles
   ========================================================================== */
.my-inquiries-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.inquiry-track-card {
  border: 1px solid var(--border-main);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: all 0.2s ease;
}

.inquiry-track-card:hover {
  box-shadow: 0 4px 6px rgba(0,0,0,0.08);
  border-color: #93c5fd;
}

.inquiry-track-header {
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.inquiry-track-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.inquiry-track-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.inquiry-track-badge {
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}

.inquiry-track-badge.pending {
  background: #fef3c7;
  color: #d97706;
}

.inquiry-track-badge.answered {
  background: #dcfce7;
  color: #15803d;
}

.inquiry-track-type {
  font-weight: 700;
  color: var(--color-navy-700);
}

.inquiry-track-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
}

.inquiry-track-chevron {
  margin-left: 1rem;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.inquiry-track-card.open .inquiry-track-chevron {
  transform: rotate(180deg);
}

.inquiry-track-body {
  display: none;
  padding: 1.5rem;
  border-top: 1px solid var(--border-main);
  background: #f8fafc;
  animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.inquiry-track-card.open .inquiry-track-body {
  display: block;
}

.inquiry-detail-q, .inquiry-detail-a {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.inquiry-detail-q {
  background: #fff;
  border-left: 4px solid #1e3a8a;
  border-top: 1px solid var(--border-main);
  border-right: 1px solid var(--border-main);
  border-bottom: 1px solid var(--border-main);
}

.inquiry-detail-a {
  background: #eff6ff;
  border-left: 4px solid #2563eb;
  border-top: 1px solid #dbeafe;
  border-right: 1px solid #dbeafe;
  border-bottom: 1px solid #dbeafe;
  margin-bottom: 0;
}

.inquiry-detail-label {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.inquiry-detail-text {
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.6;
  white-space: pre-wrap;
}

.inquiry-empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px dashed var(--border-main);
  border-radius: var(--radius-md);
}
