/* 고객센터 · 공지사항 */
:root {
  --primary: #FF6B00;
  --primary-hover: #E55C00;
  --primary-light: #FFF4EB;
  --navy-dark: #0F172A;
  --slate-50: #F8FAFC;
  --slate-100: #F1F5F9;
  --slate-200: #E2E8F0;
  --slate-300: #CBD5E1;
  --slate-400: #94A3B8;
  --slate-600: #475569;
  --slate-700: #334155;
  --white: #FFFFFF;
  --radius-lg: 24px;
  --shadow-subtle: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
}

body { background: #F8FAFC; }

.cs-page {
  max-width: 1140px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem;
}

.cs-page .breadcrumb-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--slate-400);
  margin-bottom: 1.5rem;
  font-weight: 600;
  flex-wrap: wrap;
}
.cs-page .breadcrumb-row a { color: var(--slate-600); text-decoration: none; }
.cs-page .breadcrumb-row a:hover { color: var(--primary); }

.cs-hero {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  border-radius: var(--radius-lg);
  padding: 2.8rem 2.5rem;
  color: var(--white);
  margin-bottom: 2.5rem;
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.18);
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}
.cs-hero-text { max-width: 620px; position: relative; z-index: 1; }
.cs-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 107, 0, 0.2);
  border: 1px solid rgba(255, 107, 0, 0.4);
  color: #FF944D;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}
.cs-hero h1 {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.8px;
  line-height: 1.25;
  margin-bottom: 0.6rem;
}
.cs-hero p { font-size: 1.02rem; color: var(--slate-400); line-height: 1.55; }
.cs-hero-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  padding: 1.4rem 1.8rem;
  border-radius: 20px;
  text-align: center;
  flex-shrink: 0;
  min-width: 260px;
  position: relative;
  z-index: 1;
}
.cs-hero-phone-title { font-size: 0.8rem; color: #94A3B8; font-weight: 700; margin-bottom: 4px; }
.cs-hero-phone-num { font-size: 1.85rem; font-weight: 900; color: #FF852D; letter-spacing: -0.5px; margin-bottom: 6px; }
.cs-hero-phone-hours { font-size: 0.78rem; color: #CBD5E1; line-height: 1.4; }

.cs-tabs-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 2px solid var(--slate-200);
  margin-bottom: 2.5rem;
  overflow-x: auto;
  padding-bottom: 2px;
}
.cs-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.9rem 1.5rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--slate-600);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
}
.cs-tab-btn:hover { color: var(--primary); }
.cs-tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.cs-tab-btn .tab-count-badge {
  background: var(--slate-100);
  color: var(--slate-600);
  font-size: 0.75rem;
  padding: 2px 7px;
  border-radius: 12px;
  font-weight: 700;
}
.cs-tab-btn.active .tab-count-badge { background: #FFF4EB; color: var(--primary); }

.cs-page .content-box {
  background: #FFFFFF;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow-subtle);
  margin-bottom: 2.5rem;
}
.panel-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.panel-title {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--navy-dark);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.notice-count-badge {
  margin-left: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  background: #FFF4EB;
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 12px;
}

.notice-search-box {
  display: flex;
  align-items: center;
  background: var(--white);
  border: 1.5px solid var(--slate-200);
  padding: 0.35rem 0.45rem 0.35rem 0.9rem;
  border-radius: 30px;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: all 0.25s ease;
}
.notice-search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(255, 107, 0, 0.15);
}
.notice-search-box select {
  border: none;
  border-right: 1px solid var(--slate-200);
  background: transparent;
  outline: none;
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--navy-dark);
  padding: 0 0.55rem 0 0.35rem;
  margin-right: 0.15rem;
  cursor: pointer;
}
.notice-search-box input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  min-width: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy-dark);
  margin-left: 6px;
}
.notice-search-box > i { color: var(--slate-400); font-size: 0.9rem; flex-shrink: 0; }
.clear-search-btn {
  background: none;
  border: none;
  color: var(--slate-400);
  cursor: pointer;
  font-size: 0.95rem;
  padding: 0 4px;
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.clear-search-btn:hover { color: var(--primary); }
.notice-search-submit-btn {
  background: var(--primary);
  color: #FFFFFF;
  border: none;
  border-radius: 20px;
  padding: 0.42rem 0.95rem;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(255, 107, 0, 0.25);
  margin-left: 6px;
  flex-shrink: 0;
}
.notice-search-submit-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.35);
}

.notice-table-wrap { overflow-x: auto; }
.notice-table { width: 100%; min-width: 720px; border-collapse: collapse; text-align: left; }
.notice-table th {
  background: var(--slate-50);
  color: var(--slate-700);
  font-weight: 800;
  padding: 1rem 1.2rem;
  border-bottom: 1.5px solid var(--slate-200);
  font-size: 0.9rem;
}
.notice-table td {
  padding: 1.1rem 1.2rem;
  border-bottom: 1px solid var(--slate-100);
  font-size: 0.92rem;
  color: var(--slate-700);
}
.notice-table tbody tr[data-href] { cursor: pointer; }
.notice-table tbody tr[data-href]:hover td { background: #FFFBF7; }
.notice-table tr.notice-empty-row:hover td { background: transparent; cursor: default; }
.notice-no { text-align: center; font-weight: 700; }
.notice-center { text-align: center; }
.notice-date { text-align: center; color: var(--slate-400); }
.notice-subject a {
  color: inherit;
  text-decoration: none;
}
.notice-subject strong { color: var(--navy-dark); font-weight: 700; }
.notice-badge-top,
.notice-badge-normal {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  margin-right: 6px;
  display: inline-block;
  vertical-align: 1px;
}
.notice-badge-top { background: #FEE2E2; color: #DC2626; }
.notice-badge-normal { background: #EFF6FF; color: #2563EB; font-weight: 700; }
.notice-empty {
  text-align: center;
  padding: 3.5rem 1rem !important;
  color: var(--slate-400);
}
.notice-empty i { font-size: 2rem; color: var(--slate-300); margin-bottom: 0.8rem; display: block; }
.notice-empty strong { font-size: 1.05rem; color: var(--navy-dark); display: block; margin-bottom: 4px; }
.notice-empty span { font-size: 0.88rem; }

.cs-page .pagination {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  flex-wrap: wrap;
}
.cs-page .pagination li a,
.cs-page .pagination li span {
  min-width: 36px;
  height: 36px;
  padding: 0 0.6rem;
  border-radius: 10px;
  border: 1.5px solid var(--slate-200);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--slate-700);
  font-weight: 800;
  background: #fff;
}
.cs-page .pagination li.active a {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.notice-detail-card {
  background: #FFFFFF;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-subtle);
  margin-bottom: 2.5rem;
}
.notice-detail-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--slate-200);
  margin-bottom: 1.8rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.btn-back-notice,
.btn-action-pill,
.btn-notice-list-return {
  text-decoration: none;
}
.btn-back-notice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.55rem 1.2rem;
  background: var(--slate-100);
  color: var(--slate-700);
  border: 1px solid var(--slate-200);
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-back-notice:hover {
  background: var(--navy-dark);
  color: #FFFFFF;
  border-color: var(--navy-dark);
  transform: translateX(-3px);
}
.btn-action-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.55rem 1.1rem;
  background: #FFFFFF;
  border: 1.5px solid var(--slate-200);
  border-radius: 20px;
  color: var(--slate-600);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-action-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #FFF4EB;
}
.btn-action-pill.is-primary {
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 800;
}
.notice-detail-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1.5px dashed var(--slate-200);
}
.notice-detail-badge-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.8rem;
}
.notice-detail-title {
  font-size: 1.65rem;
  font-weight: 900;
  color: var(--navy-dark);
  letter-spacing: -0.6px;
  line-height: 1.35;
  margin-bottom: 1rem;
}
.notice-detail-meta-row {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 0.86rem;
  color: var(--slate-400);
  font-weight: 600;
  flex-wrap: wrap;
}
.notice-detail-meta-row strong { color: var(--slate-700); font-weight: 800; }
.notice-detail-meta-row .meta-item { display: inline-flex; align-items: center; gap: 6px; }
.notice-detail-meta-divider { color: var(--slate-200); }
.notice-article-body {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--slate-700);
  margin-bottom: 0.4rem;
  word-break: break-word;
}
.notice-article-body p { margin-bottom: 1.2rem; }
.notice-article-body img { max-width: 100%; height: auto; }
.notice-article-body audio { display: block; width: 100%; max-width: 360px; margin-bottom: 1.2rem; }
.notice-inquiry {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 1.2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}
.notice-inquiry strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--navy-dark);
  margin-bottom: 2px;
}
.notice-inquiry p { font-size: 0.84rem; color: var(--slate-600); margin: 0; }
.notice-nav-block {
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
  margin-top: 2.2rem;
  margin-bottom: 2.2rem;
}
.notice-nav-row {
  display: flex;
  align-items: center;
  padding: 0.95rem 1.2rem;
  font-size: 0.92rem;
  transition: background 0.15s ease;
  text-decoration: none;
  color: var(--navy-dark);
}
a.notice-nav-row { cursor: pointer; }
a.notice-nav-row:hover { background: #FFFBF7; }
.notice-nav-row + .notice-nav-row { border-top: 1px solid var(--slate-100); }
.notice-nav-label {
  width: 85px;
  font-weight: 800;
  color: var(--slate-400);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.notice-nav-title {
  font-weight: 700;
  color: var(--navy-dark);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex-grow: 1;
}
a.notice-nav-row:hover .notice-nav-title { color: var(--primary); }
.notice-nav-empty { color: var(--slate-400); font-size: 0.88rem; }
.notice-detail-bottom-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}
.btn-notice-list-return {
  background: var(--navy-dark);
  color: #FFFFFF;
  border: none;
  border-radius: 12px;
  padding: 0.85rem 2.2rem;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
}
.btn-notice-list-return:hover {
  background: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 0, 0.25);
}
.copy-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #0F172A;
  color: #FFFFFF;
  padding: 0.85rem 1.6rem;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.copy-toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

@media (max-width: 992px) {
  .cs-hero { flex-direction: column; align-items: flex-start; padding: 2rem 1.4rem; }
  .cs-hero-card { width: 100%; }
  .cs-hero h1 { font-size: 1.7rem; }
}
@media (max-width: 768px) {
  .cs-page { padding: 1.4rem 1rem 4rem; }
  .cs-page .content-box { padding: 1.3rem 1rem; }
  .cs-tabs-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    overflow: visible;
    border-bottom: 0;
  }
  .cs-tab-btn {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 52px;
    justify-content: center;
    text-align: center;
    white-space: normal;
    border: 1px solid var(--slate-200);
    border-radius: 10px;
    margin-bottom: 0;
  }
  .cs-tab-btn.active { border-color: var(--primary); background: #FFF7ED; }
  .notice-table-wrap { overflow: visible; }
  .mobile-notice-table { display: block; min-width: 0; border-collapse: separate; }
  .mobile-notice-table thead { display: none; }
  .mobile-notice-table tbody { display: grid; gap: 12px; }
  .mobile-notice-table tbody tr {
    display: block;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--slate-200);
    border-radius: 14px;
    background: #fff;
  }
  .mobile-notice-table tbody td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 0.75rem 0.9rem;
    text-align: right;
    overflow-wrap: anywhere;
  }
  .mobile-notice-table tbody td::before {
    content: attr(data-label);
    flex: 0 0 28%;
    color: var(--slate-400);
    font-weight: 700;
    text-align: left;
  }
  .mobile-notice-table .notice-subject { display: block; text-align: left; }
  .mobile-notice-table .notice-subject::before { display: block; margin-bottom: 0.55rem; }
  .mobile-notice-table .notice-subject a { display: block; min-width: 0; text-align: left; }
  .mobile-notice-table .notice-empty { display: block; }
  .mobile-notice-table .notice-empty::before { content: none; }
  .notice-search-box { max-width: none; }
  .cs-tab-btn { padding: 0.8rem 1rem; font-size: 0.92rem; }
  .notice-detail-card { padding: 1.3rem 1rem; }
  .notice-detail-title { font-size: 1.28rem; }
  .notice-nav-row { padding: 0.85rem 0.7rem; }
}
