/* ============================
   CSS Variables
   ============================ */
:root {
  --color-primary: #1B2E6B;
  --color-accent:  #8B1A3B;
  --color-point:   #C9A84C;
  --color-bg:      #F7F8FC;
  --color-white:   #FFFFFF;
  --color-text:    #2C2C2C;
  --color-text-light: #666666;
  --color-border:  #E0E0E0;

  --font-main: 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --transition: 0.2s ease;
  --header-bg: #0c5596;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-main);
  background: var(--color-white);
  color: var(--color-text);
  line-height: 1.6;
}

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

/* ============================
   Header
   ============================ */
.site-header {
  background: var(--header-bg);
  color: var(--color-white);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo { display: flex; align-items: center; }
.logo-img { height: 44px; width: auto; display: block; }

/* ============================
   Buttons
   ============================ */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 40px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}
.btn-primary { background: var(--color-point); color: var(--color-primary); }
.btn-primary:hover { background: #d4b55a; transform: translateY(-1px); }
.btn-accent { background: var(--color-accent); color: var(--color-white); }
.btn-accent:hover { background: #a01f46; transform: translateY(-1px); }

/* ============================
   Hero Banner
   ============================ */
.hero { width: 100%; background: #e1f3fb; line-height: 0; overflow: hidden; position: relative; }   /* 상단 이미지 영역 배경색 */
.hero-img { width: 1500px; max-width: 100%; height: auto; display: block; margin: 0 auto; }   /* 가로 1500px(세로 300px) 고정 배너, 가운데 정렬 */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}
.hero-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 0 20px;
}
.hero-title {
  font-size: 3.02rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.3;
}
.hero-info {
  font-size: 1.125rem;
  line-height: 1.9;
  opacity: 0.92;
}

/* ============================
   Tab Navigation
   ============================ */
.tab-nav {
  background: #2D2D2D;
  position: sticky;
  top: 84px;
  z-index: 90;
}
.tab-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
}
.tab-nav-inner::-webkit-scrollbar { display: none; }
.tab-btn {
  flex: 1;
  display: block;
  padding: 10px 24px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  font-size: calc(0.9rem + 3px);
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  text-align: center;
  text-decoration: none;
}
.tab-btn:hover { color: var(--color-white); }
.tab-btn.active {
  color: var(--color-white);
  border-bottom-color: transparent;
}
.tab-btn {
  border-right: 1px solid rgba(255,255,255,0.2);
}
.tab-btn:first-child {
  border-left: 1px solid rgba(255,255,255,0.2);
}

/* ============================
   Tab Content
   ============================ */
.tab-content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  min-height: 400px;
}
.tab-content { display: none; padding: 40px 0; }
.tab-content.active { display: block; }
.content-inner { max-width: 100%; }

.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #2D2D2D;
  margin-bottom: 28px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--header-bg);
  display: inline-block;
}
.sub-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 32px 0 16px;
}
.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.info-card {
  background: #f5f5f5;
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
}
.info-card-icon { display: flex; justify-content: center; margin-bottom: 14px; color: var(--header-bg); }
.info-card-label {
  font-size: 1.27rem;
  font-weight: 700;
  color: var(--header-bg);
  margin-bottom: 10px;
}
.info-card-value { font-size: 0.95rem; line-height: 1.7; }
.program-placeholder, .form-placeholder {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  border: 2px dashed var(--color-border);
  color: var(--color-text-light);
}
.notice-box {
  background: #f5f5f5;
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 28px;
}
.notice-box p { margin-bottom: 16px; line-height: 1.8; }
.confirm-form {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 60px 40px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--color-border);
}
.confirm-form .form-desc { text-align: center; margin-bottom: 32px; font-size: 1rem; }
.confirm-form .form-group { width: 100%; max-width: 500px; }
.confirm-form #confirm-btn { margin-top: 8px; width: 100%; max-width: 500px; border-radius: 4px; }
.confirm-form .confirm-result { text-align: center; }
.form-desc { color: var(--color-text-light); margin-bottom: 24px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; }
.form-group input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  transition: var(--transition);
}
.form-group input:focus { outline: none; border-color: var(--color-accent); }
.confirm-result { margin-top: 16px; font-weight: 600; }
.booth-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.booth-card {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  text-align: center;
  border: 2px solid var(--color-border);
  position: relative;
}
.booth-card.featured { border-color: var(--color-accent); }
.booth-badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
}
.booth-type { font-weight: 700; font-size: 1.1rem; color: var(--color-primary); margin-bottom: 8px; }
.booth-size { color: var(--color-text-light); margin-bottom: 12px; }
.booth-price { font-weight: 700; color: var(--color-accent); }
.notice-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.notice-table th {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 14px 16px;
  text-align: left;
  font-size: 0.9rem;
}
.notice-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9rem;
}
.no-data { text-align: center; color: var(--color-text-light); padding: 40px; }

/* Board toolbar */
.board-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  margin-bottom: 0;
  border-bottom: 1px solid var(--color-border);
}
.board-total { font-size: 0.92rem; color: var(--color-text); font-weight: 400; }
.board-total strong { font-weight: 700; }
.board-search { display: flex; gap: 0; align-items: center; }
.board-search-select {
  padding: 7px 28px 7px 10px;
  border: 1px solid var(--color-border);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  font-size: 0.88rem;
  background: var(--color-white);
  cursor: pointer;
  appearance: auto;
  height: 36px;
}
.board-search-wrap {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: 0 var(--radius) var(--radius) 0;
  overflow: hidden;
  background: var(--color-white);
  height: 36px;
}
.board-search-input {
  padding: 7px 10px;
  border: none;
  outline: none;
  font-size: 0.88rem;
  width: 160px;
  background: transparent;
  color: var(--color-text);
}
.board-search-input::placeholder { color: #aaa; }
.board-search-icon {
  background: none;
  border: none;
  padding: 0 10px;
  cursor: pointer;
  color: var(--color-text-light);
  display: flex;
  align-items: center;
}
.board-search-icon:hover { color: var(--color-primary); }
.notice-table th {
  background: #f2f2f2;
  color: var(--color-text);
  font-size: 0.88rem;
  font-weight: 600;
}
@media (max-width: 768px) {
  .board-toolbar { flex-direction: column; align-items: flex-start; gap: 10px; }
  .board-search-input { width: 110px; }
}

/* ============================
   Advertise Booth Form
   ============================ */
.section-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
}
.section-title-row .section-title { margin-bottom: 0; }
.btn-check-history {
  padding: 10px 24px;
  background: #fff;
  color: var(--header-bg);
  border: 1px solid var(--header-bg);
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-main);
  transition: var(--transition);
}
.btn-check-history:hover { background: var(--header-bg); color: #fff; }
.adv-form { max-width: 100%; }
.adv-section {
  margin-bottom: 40px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.adv-section-title {
  background: #f5f5f5;
  border-bottom: 1px solid var(--color-border);
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary);
}
.adv-privacy {
  width: 100%;
  box-sizing: border-box;
  padding: 16px;
  border: none;
  border-bottom: 1px solid var(--color-border);
  resize: vertical;
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--color-text);
  font-family: var(--font-main);
  background: var(--color-white);
}
.adv-agree-row { padding: 14px 20px; }
.adv-chk-item { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 0.9rem; margin-right: 16px; }
.adv-table {
  width: 100%;
  border-collapse: collapse;
}
.adv-table th {
  background: #fafafa;
  border-bottom: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  padding: 12px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
  width: 200px;
  vertical-align: middle;
}
.adv-table td {
  border-bottom: 1px solid var(--color-border);
  padding: 10px 16px;
  font-size: 0.9rem;
  vertical-align: middle;
}
.adv-table tr:last-child th,
.adv-table tr:last-child td { border-bottom: none; }
.adv-inp {
  padding: 7px 10px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: 0.88rem;
  font-family: var(--font-main);
  width: 220px;
  transition: var(--transition);
}
.adv-inp:focus { outline: none; border-color: var(--color-accent); }
.adv-inp-xs { width: 80px; }
.adv-inp-sm { width: 140px; }
.adv-inp-full { width: 100%; margin-top: 6px; }
.adv-zip-search {
  display: inline-block;
  padding: 6px 12px;
  background: #eee;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: 0.85rem;
  cursor: pointer;
  margin-bottom: 6px;
}
.adv-zip-search:hover { background: #ddd; }
.req { color: #e03; font-size: 0.8rem; }
.adv-note { font-size: 0.82rem; color: var(--color-text-light); margin-top: 4px; display: inline-block; }
.adv-price { background: #f9f9f9; text-align: right; }
.adv-notice-text { padding: 10px 16px; font-size: 0.85rem; color: var(--color-text-light); }
.reg-login-box { text-align: center; padding: 40px; }
.reg-login-box p { margin-bottom: 20px; font-size: 1rem; }
.reg-price { font-size: 1.4rem; color: #e03; }
.adv-btn-area { text-align: center; margin-top: 32px; margin-bottom: 20px; }
.adv-submit { padding: 14px 60px; font-size: 1rem; border-radius: 4px; background: var(--header-bg); color: #fff; }
.adv-submit:hover { background: #1260aa; transform: none; }
@media (max-width: 768px) {
  .adv-table th { width: auto; display: block; border-right: none; text-align: left; }
  .adv-table td { display: block; text-align: left; }
  .adv-inp, .adv-inp-sm { width: 100%; }
  .adv-inp-xs { width: 70px; }
}

/* ============================
   Footer
   ============================ */
.site-footer {
  background: #2D2D2D;
  color: rgba(255,255,255,0.6);
  padding: 28px 40px;
  margin-top: 60px;
  text-align: center;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-copy {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 10px;
}
.footer-biz {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.9;
}

/* ============================
   Responsive (768px)
   ============================ */
@media (max-width: 768px) {
  /* 모바일: 고정 1200px 대신 화면폭에 맞춰 축소(원본 비율 유지) */
  .hero-img { width: 100%; height: auto; }
  .hero-title { font-size: 1.81rem; margin-bottom: 14px; }
  .hero-info { font-size: 0.88rem; }
  .tab-nav { top: 76px; }
  .logo-img { height: 36px; }
  .header-inner { padding: 0 16px; }
  .tab-nav-inner {
    flex-wrap: wrap;
    overflow-x: visible;
  }
  .tab-btn {
    flex: 0 0 33.333%;
    padding: 12px 4px;
    font-size: 0.78rem;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.2);
  }
  .tab-btn:first-child { border-left: 1px solid rgba(255,255,255,0.2); }
  .tab-btn.active { border-bottom-color: rgba(255,255,255,0.2); }
  .tab-content-wrapper { padding: 0 16px; }
  .site-footer { padding: 28px 16px; }
  .confirm-form { padding: 24px; }
  .form-placeholder,
  .program-placeholder { padding: 30px 16px; }
  .info-cards { grid-template-columns: 1fr; }
  .booth-cards { grid-template-columns: 1fr; }
}
