/* ===== 공통 ===== */
:root {
  --color-primary: #003876;
  --color-primary-light: #1a5aa0;
  --color-accent: #00a3e0;
  --color-dark: #1a1a1a;
  --color-text: #333;
  --color-text-light: #666;
  --color-bg: #f8f9fa;
  --color-white: #fff;
  --font-kr: 'Noto Sans KR', sans-serif;
  --header-height: 110px;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-kr);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin: 0 0 48px;
  color: var(--color-dark);
}

/* ===== 헤더 (호버 효과) ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  padding: 32px 0;
  overflow: visible;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.header.scrolled {
  border-bottom-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 32px 28px 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 40px;
  box-sizing: border-box;
}

.logo_test {
  display: flex;
  align-items: center;
  height: 150px;
  padding: 32px 12px;
  padding-left: 0;
  margin-right: auto;
  box-sizing: border-box;
}

.header .logo_test img {
  height: 150px !important;
  width: auto;
  max-height: none;
  transition: opacity var(--transition);
}

.logo_test img {
  height: 100%;
  width: auto;
  transition: opacity var(--transition);
}

.logo_test:hover img {
  opacity: 0.85;
}

.gnb {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}

.gnb a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  position: relative;
  padding: 8px 0;
  transition: color var(--transition);
}

.gnb a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition);
}

.gnb a:hover {
  color: var(--color-primary);
}

.gnb a:hover::after {
  width: 100%;
}

.btn-apply-nav {
  padding: 10px 20px !important;
  background: var(--color-primary);
  color: var(--color-white) !important;
  border-radius: 8px;
}

.btn-apply-nav::after {
  display: none !important;
}

.btn-apply-nav:hover {
  background: var(--color-primary-light) !important;
  color: var(--color-white) !important;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-dark);
  transition: var(--transition);
}

/* ===== 히어로 (화면 꽉 차게, drone) ===== */
.hero {
  position: relative;
  margin-top: var(--header-height);
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg-slides {
  position: absolute;
  inset: 0;
}

.hero-bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.hero-bg-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 56, 118, 0.5) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--color-white);
  padding: 0 24px;
  margin-top: 1.5em;
}

.hero-label {
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  margin: 0 0 12px;
  opacity: 0.95;
  -webkit-text-stroke: 2px #000;
  paint-order: stroke fill;
}

.hero-title {
  font-size: clamp(2.85rem, 7vw, 4.5rem);
  font-weight: 700;
  margin: 0 0 16px;
  line-height: 1.2;
  -webkit-text-stroke: 2.5px #000;
  paint-order: stroke fill;
}

.hero-desc {
  font-size: 1.55rem;
  font-weight: 400;
  margin: 0 0 48px;
  opacity: 0.9;
  -webkit-text-stroke: 2px #000;
  paint-order: stroke fill;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 1.2rem;
  letter-spacing: 0.15em;
  text-transform: lowercase;
  -webkit-text-stroke: 1.5px #000;
  paint-order: stroke fill;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: opacity var(--transition), color var(--transition);
  -webkit-text-stroke: 1px #000;
  paint-order: stroke fill;
}

.hero-scroll:hover {
  opacity: 1;
  color: var(--color-white);
}

.hero-scroll-text {
  display: block;
  -webkit-text-stroke: inherit;
}

.hero-scroll-arrow-wrap {
  display: block;
  animation: hero-scroll-bounce 1.5s ease-in-out infinite;
}

.hero-scroll-arrow {
  display: block;
  width: 12px;
  height: 12px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

@keyframes hero-scroll-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* ===== Tailwind-style 스크롤/진입 애니메이션 ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(80px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-80px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 스크롤 등장: 초기 상태 */
.animate-on-scroll .section-title,
.animate-on-scroll .overview-title,
.animate-on-scroll .overview-content .lead,
.animate-on-scroll .business-card,
.animate-on-scroll .benefit-item,
.animate-on-scroll .youtube-wrap,
.animate-on-scroll .ai-card,
.animate-on-scroll .how-item,
.animate-on-scroll .cta-desc,
.animate-on-scroll .cta .btn-primary,
.animate-on-scroll .contact-item {
  opacity: 0;
  transform: translateY(20px);
  transition: none;
}

.animate-on-scroll.in-view .section-title {
  animation: fadeInUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.animate-on-scroll.in-view .overview-title,
.animate-on-scroll.in-view .overview-content .lead {
  animation: fadeInUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.animate-on-scroll.in-view .overview-title { animation-delay: 0.1s; }
.animate-on-scroll.in-view .overview-content .lead { animation-delay: 0.2s; }

.animate-on-scroll.in-view .business-card:nth-child(1) { animation: fadeInUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards; }
.animate-on-scroll.in-view .business-card:nth-child(2) { animation: fadeInUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards; }
.animate-on-scroll.in-view .business-card:nth-child(3) { animation: fadeInUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards; }

.animate-on-scroll.in-view .benefit-item:nth-child(1) { animation: fadeInUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards; }
.animate-on-scroll.in-view .benefit-item:nth-child(2) { animation: fadeInUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards; }
.animate-on-scroll.in-view .benefit-item:nth-child(3) { animation: fadeInUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards; }
.animate-on-scroll.in-view .benefit-item:nth-child(4) { animation: fadeInUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards; }

.animate-on-scroll.in-view .youtube-wrap {
  animation: fadeInUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

/* AI 소개 카드: 1·3 우→좌, 2 좌→우 */
.animate-on-scroll .ai-card:nth-child(1),
.animate-on-scroll .ai-card:nth-child(3) {
  transform: translateX(80px);
}
.animate-on-scroll .ai-card:nth-child(2) {
  transform: translateX(-80px);
}
.animate-on-scroll.in-view .ai-card:nth-child(1) { animation: slideInFromRight 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards; }
.animate-on-scroll.in-view .ai-card:nth-child(2) { animation: slideInFromLeft 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards; }
.animate-on-scroll.in-view .ai-card:nth-child(3) { animation: slideInFromRight 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.7s forwards; }

.animate-on-scroll.in-view .how-item:nth-child(1) { animation: fadeInUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards; }
.animate-on-scroll.in-view .how-item:nth-child(2) { animation: fadeInUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards; }
.animate-on-scroll.in-view .how-item:nth-child(3) { animation: fadeInUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards; }

.animate-on-scroll.in-view .cta-desc { animation: fadeInUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards; }
.animate-on-scroll.in-view .cta .btn-primary { animation: fadeInUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards; }

.animate-on-scroll.in-view .contact-item:nth-child(1) { animation: fadeInUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards; }
.animate-on-scroll.in-view .contact-item:nth-child(2) { animation: fadeInUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards; }
.animate-on-scroll.in-view .contact-item:nth-child(3) { animation: fadeInUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards; }

/* 히어로 진입 애니메이션 */
.animate-hero .hero-label {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}
.animate-hero .hero-title {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards;
}
.animate-hero .hero-desc {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
}
.animate-hero .hero-scroll {
  opacity: 0;
  animation: fadeIn 0.8s ease 0.8s forwards;
}

/* ===== 개요 ===== */
#overview {
  scroll-margin-top: var(--header-height);
}

.overview {
  background: var(--color-bg);
}

.overview-content {
  max-width: 720px;
  margin: 0 auto;
}

.overview-content .overview-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--color-text);
}

.overview-content .lead {
  font-size: 1.3rem;
  margin-bottom: 24px;
}

.overview-content p {
  margin: 0 0 16px;
  color: var(--color-text-light);
}

.overview-content .overview-highlight {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1.35rem;
}

/* ===== 사업개요 ===== */
.business-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.business-card {
  background: var(--color-white);
  padding: 32px 24px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform var(--transition), box-shadow var(--transition);
}

.business-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.business-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--color-primary);
}

.business-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-light);
}

/* 참여혜택: 4개 틀 (지원방법과 바리에이션 – 상단 강조선, 원형 배지) */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.benefit-item {
  text-align: center;
  padding: 28px 20px;
  background: var(--color-white);
  border: 1px solid rgba(0, 56, 118, 0.1);
  border-radius: 12px;
  border-top: 4px solid var(--color-accent);
  box-shadow: 0 4px 20px rgba(0, 56, 118, 0.06);
  transition: box-shadow var(--transition), border-top-color var(--transition), transform var(--transition);
}

.benefit-item:hover {
  box-shadow: 0 10px 28px rgba(0, 163, 224, 0.12);
  border-top-color: var(--color-primary);
  transform: translateY(-2px);
}

.benefit-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-white);
  background: var(--color-accent);
  border-radius: 50%;
  margin-bottom: 16px;
}

.benefit-item h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--color-dark);
}

.benefit-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.6;
  text-align: left;
}

/* ===== 서울시설공단 + AI 소개 ===== */
.intro {
  background: var(--color-bg);
}

.youtube-wrap {
  margin-bottom: 56px;
}

.youtube-inner {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.youtube-inner iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.ai-cards {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.ai-card {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 40px;
  align-items: center;
  background: var(--color-white);
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  transition: box-shadow var(--transition);
}

.ai-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

/* 텍스트 왼쪽, 사진 오른쪽 (드론 카드) */
.ai-card--reverse {
  grid-template-columns: 1fr 360px;
}

.ai-card-img {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--color-bg);
}

.ai-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ai-card-body h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--color-primary);
}

.ai-card-body .ai-card-lead {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 14px;
  line-height: 1.5;
}

.ai-card-body ul {
  list-style: none;
  padding-left: 0;
  margin: 0 0 12px;
}

.ai-card-body ul li {
  padding-left: 1em;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--color-text-light);
}

.ai-card-body p {
  margin: 0 0 12px;
  font-size: 1.05rem;
  color: var(--color-text-light);
}

.ai-card-body p:last-child {
  margin-bottom: 0;
}

/* ===== 지원방법 ===== */
.section.how-to-apply {
  padding: 28px 0;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

.how-item {
  text-align: center;
  padding: 32px 24px;
  background: var(--color-white);
  border: 1px solid rgba(0, 56, 118, 0.12);
  border-left: 4px solid var(--color-primary);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 56, 118, 0.06);
  transition: box-shadow var(--transition), border-color var(--transition);
}

.how-item:hover {
  box-shadow: 0 8px 28px rgba(0, 56, 118, 0.1);
  border-left-color: var(--color-primary-light);
}

.how-num {
  display: inline-block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.how-item h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--color-dark);
}

.how-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.6;
  text-align: left;
}

.how-cta {
  text-align: center;
}

.btn-primary {
  display: inline-block;
  padding: 14px 32px;
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 8px;
  transition: background var(--transition), transform var(--transition);
}

.btn-primary:hover {
  background: var(--color-primary-light);
  transform: translateY(-2px);
}

.btn-large {
  padding: 18px 40px;
  font-size: 1.1rem;
}

/* ===== CTA ===== */
.cta {
  padding: 96px 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: var(--color-white);
  text-align: center;
}

.cta .section-title {
  color: var(--color-white);
}

.cta-desc {
  margin: 0 0 32px;
  font-size: 1.1rem;
  opacity: 0.95;
}

.cta .btn-primary {
  background: var(--color-white);
  color: var(--color-primary);
}

.cta .btn-primary:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-primary);
}

/* ===== 문의처 ===== */
.contact-section {
  background: var(--color-bg);
}

.contact-table-wrap {
  max-width: 900px;
  margin: 0 auto;
  background: var(--color-white);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 56, 118, 0.08);
  overflow: hidden;
}

.contact-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.contact-table th,
.contact-table td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(0, 56, 118, 0.08);
  text-align: left;
  vertical-align: top;
}

.contact-table tr:last-child th,
.contact-table tr:last-child td {
  border-bottom: none;
}

.contact-table th {
  font-weight: 600;
  color: var(--color-primary);
  background: rgba(0, 56, 118, 0.04);
  width: 120px;
  min-width: 120px;
  white-space: nowrap;
}

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

.contact-table a {
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition);
}

.contact-table a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.contact-note {
  max-width: 900px;
  margin: 20px auto 0;
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

.contact-note a {
  color: var(--color-primary);
  text-decoration: none;
}

.contact-note a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .contact-table th,
  .contact-table td {
    padding: 12px 14px;
    font-size: 0.9rem;
  }

  .contact-table th {
    width: 100px;
    min-width: 100px;
  }
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.contact-grid-horizontal {
  grid-template-columns: 1fr 1fr;
  max-width: 720px;
}

.contact-item {
  background: var(--color-white);
  padding: 28px 24px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 56, 118, 0.08);
}

.contact-icon {
  display: block;
  font-size: 2rem;
  margin-bottom: 12px;
}

.contact-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
  margin: 0 0 10px;
}

.contact-value {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.5;
}

.contact-value a {
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition);
}

.contact-value a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .contact-grid,
  .contact-grid-horizontal {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contact-item {
    padding: 22px 20px;
  }
}

/* ===== 플로팅 상단 이동 버튼 ===== */
.floating-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0, 56, 118, 0.35);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition), opacity 0.3s ease;
  text-decoration: none;
}

.floating-top:hover {
  background: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 56, 118, 0.4);
}

.floating-top-arrow {
  display: block;
  width: 14px;
  height: 14px;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: 6px;
}

.floating-top.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

/* ===== 푸터 (항상 화면 하단 고정) ===== */
.footer {
  margin-top: auto;
  flex-shrink: 0;
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 24px 0 16px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.footer-logo_test {
  height: 48px;
  margin-bottom: 8px;
  opacity: 0.95;
}

.footer-brand p {
  margin: 0;
  font-size: 0.85rem;
}

.footer-info p {
  margin: 0 0 6px;
  font-size: 0.85rem;
}

.footer-address {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.8rem;
  line-height: 1.5;
}

.footer-info a {
  color: var(--color-accent);
}

.footer-info a:hover {
  text-decoration: underline;
}

.footer-copy {
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  opacity: 0.7;
}

/* ===== 지원 페이지 (application 스타일) ===== */
.page-apply {
  padding-top: calc(var(--header-height) + 40px);
  background: var(--color-bg);
}

.application-container {
  max-width: 900px;
  width: 100%;
  margin: 0 auto 50px;
  padding: 0 24px;
  box-sizing: border-box;
}

.application-header {
  text-align: center;
  margin-bottom: 48px;
}

.application-header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--color-primary);
}

.application-header p {
  margin: 0;
  color: var(--color-text-light);
  font-size: 1.05rem;
}

.application-email-note {
  margin: 0 auto;
  max-width: 780px;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.12) 0%, rgba(248, 113, 113, 0.12) 100%);
  border: 1px solid rgba(37, 99, 235, 0.25);
  color: #0f3d78;
  font-size: 0.98rem;
  padding: 10px 14px;
  border-radius: 12px;
  box-sizing: border-box;
  margin-top: 12px;
}

.application-email-note strong {
  color: #1e40af;
}

.page-apply .form-section {
  background: var(--color-white);
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  margin-bottom: 24px;
}

.page-apply .form-section h2 {
  font-size: 1.25rem;
  color: var(--color-primary);
  margin: 0 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-primary);
  font-weight: 600;
}

.page-apply .info-box {
  background: #e7f3ff;
  border-left: 4px solid var(--color-primary);
  padding: 14px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-apply .info-box p {
  margin: 0;
  color: #004085;
  font-size: 0.95rem;
}

.page-apply .required-docs-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  font-size: 0.95rem;
  color: var(--color-text);
}

.page-apply .required-docs-list li {
  padding: 6px 0;
  padding-left: 0;
}

.page-apply .form-hint-block {
  margin: 0 0 20px;
  padding: 12px 14px;
  background: #f8f9fa;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

.page-apply .form-hint-file-desc {
  margin-bottom: 12px;
}

.page-apply .form-hint-files {
  margin-top: 12px;
  margin-bottom: 0;
}

.page-apply .form-group label.required::after {
  content: ' *';
  color: #e74c3c;
}

.page-apply .form-section .form-group {
  margin-bottom: 20px;
}

.page-apply .form-section .form-group:last-child {
  margin-bottom: 0;
}

.page-apply .form-section .form-row .form-group {
  margin-bottom: 0;
}

.page-apply .business-number-wrap {
  display: flex;
  gap: 10px;
  align-items: center;
}

.page-apply .business-number-wrap input {
  flex: 1;
  min-width: 0;
}

.page-apply .btn-verify-business {
  flex-shrink: 0;
  padding: 12px 18px;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), transform 0.2s;
}

.page-apply .btn-verify-business:hover:not(:disabled) {
  background: var(--color-primary-light);
  transform: translateY(-1px);
}

.page-apply .btn-verify-business:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.page-apply .business-verify-msg {
  margin-top: 6px;
  font-size: 0.875rem;
  min-height: 1.25em;
}

.page-apply .business-verify-msg.success {
  color: #0d8050;
}

.page-apply .business-verify-msg.error {
  color: #c00;
}

.page-apply .form-section input[type="text"],
.page-apply .form-section input[type="email"],
.page-apply .form-section input[type="tel"],
.page-apply .form-section input[type="url"],
.page-apply .form-section textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: var(--font-kr);
  transition: border-color var(--transition);
}

.page-apply .form-section input:focus,
.page-apply .form-section textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.page-apply .form-section textarea {
  min-height: 120px;
  resize: vertical;
}

.page-apply .checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  margin-top: 8px;
}

.page-apply .proof-period-wrap {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 8px 48px;
  border-radius: 12px;
  padding: 10px 14px;
  border: 2px solid #e0e0e0;
  background: #fafafa;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  width: 100%;
  box-sizing: border-box;
}

.page-apply .proof-period-wrap:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 120, 180, 0.1);
}

.page-apply .proof-period-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.page-apply .proof-period-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #555;
  white-space: nowrap;
}

.page-apply .form-group .proof-period-wrap input[type="month"] {
  width: 140px;
  min-width: 120px;
  max-width: 160px;
  padding: 8px 10px;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: var(--font-kr);
  background: #fff;
  color: #222;
  box-sizing: border-box;
}

.page-apply .form-group .proof-period-wrap input[type="month"]:focus {
  outline: none;
  border-color: var(--color-primary);
}

/* 시작월/종료월 빈 칸 미리보기(----월, --월) 숨김 */
.page-apply .form-group .proof-period-wrap input[type="month"]:invalid::-webkit-datetime-edit {
  color: transparent;
}
.page-apply .form-group .proof-period-wrap input[type="month"]:focus::-webkit-datetime-edit,
.page-apply .form-group .proof-period-wrap input[type="month"]:not(:invalid)::-webkit-datetime-edit {
  color: #222;
}

.page-apply .proof-period-sep {
  font-size: 1rem;
  font-weight: 600;
  color: #999;
  flex-shrink: 0;
}

.page-apply .checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-apply .checkbox-group-break {
  flex-basis: 100%;
  width: 100%;
  height: 0;
  margin: 0;
  padding: 0;
}

.page-apply .checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--color-primary);
}

.page-apply .checkbox-item label {
  font-weight: 400;
  margin: 0;
  cursor: pointer;
  font-size: 0.95rem;
}

.page-apply .proof-place-other-input {
  width: 56px;
  min-width: 56px;
  max-width: 100px;
  height: 20px;
  padding: 0 5px;
  line-height: 18px;
  font-size: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
}

.page-apply .proof-period-other-input {
  width: 42px;
  min-width: 42px;
  max-width: 60px;
  height: 20px;
  padding: 0 4px;
  line-height: 18px;
  font-size: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
}

.page-apply .proof-period-other-suffix {
  font-size: 0.95rem;
}

.page-apply .form-group-period .checkbox-group {
  max-width: 50%;

}

.page-apply .tech-maturity-slider-wrap {
  margin-top: 8px;
  width: 100%;
}

.page-apply .tech-maturity-slider-wrap input[type="range"] {
  display: block;
  width: 100%;
  height: 12px;
  margin: 0 0 10px;
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(to right, #2563eb 0%, #3b82f6 25%, #60a5fa 50%, #f87171 75%, #dc2626 100%);
  border-radius: 6px;
  outline: none;
  box-sizing: border-box;
}

.page-apply .tech-maturity-slider-wrap input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  border: 2px solid #1e40af;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.page-apply .tech-maturity-slider-wrap input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  border: 2px solid #1e40af;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.page-apply .tech-maturity-labels {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #374151;
}

.page-apply .tech-maturity-label {
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  flex-shrink: 0;
}

.page-apply .tech-maturity-label:hover {
  color: #1d4ed8;
}

.page-apply .tech-maturity-current {
  margin: 0;
  padding: 10px 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1e3a5f;
  background: #f0f9ff;
  border-radius: 8px;
  border-left: 4px solid #2563eb;
}

.page-apply .file-upload {
  position: relative;
  display: block;
  width: 100%;
}

.page-apply .file-upload input[type="file"] {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  padding: 0;
  margin: 0;
}

.page-apply .file-upload-label {
  display: block;
  padding: 16px;
  background: var(--color-bg);
  border: 2px dashed #ccc;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.95rem;
}

.page-apply .file-upload-label:hover {
  border-color: var(--color-primary);
  background: #e7f3ff;
}

.page-apply .file-list {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.page-apply .file-list-with-remove {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.page-apply .file-list-with-remove .file-list-name {
  flex: 0 1 auto;
}

.page-apply .file-list-remove {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  color: #666;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.page-apply .file-list-remove:hover {
  background: #e74c3c;
  color: #fff;
  border-color: #e74c3c;
}

.page-apply .submit-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 32px;
}

.page-apply .submit-buttons .btn {
  min-width: 140px;
  padding: 14px 32px;
  box-sizing: border-box;
}

.page-apply .btn {
  padding: 14px 32px;
  border: none;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-kr);
  transition: all 0.2s;
}

.page-apply .btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
}

.page-apply .btn-primary:hover {
  background: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 56, 118, 0.25);
}

.page-apply .btn-secondary {
  background: #6c757d;
  color: var(--color-white);
}

.page-apply .btn-secondary:hover {
  background: #5a6268;
}

.page-apply .btn-danger {
  background: #c0392b;
  color: var(--color-white);
}

.page-apply .btn-danger:hover {
  background: #a93226;
}

/* ===== 마이페이지 ===== (apply와 동일한 레이아웃·스타일 적용) */
.page-mypage .mypage-container {
  padding-bottom: 60px;
}

.page-mypage .application-header.mypage-header {
  margin-bottom: 16px;
}

.mypage-login-required {
  text-align: center;
  padding: 24px 24px 32px;
  background: var(--color-bg);
  border-radius: 12px;
  margin-top: 0;
}

.mypage-login-desc {
  margin: 0 0 8px;
  color: var(--color-text);
}

.mypage-forgot-wrap {
  margin: 0 0 16px;
}

.mypage-forgot-pw-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.9rem;
  color: var(--color-primary);
  text-decoration: underline;
  cursor: pointer;
  font-family: var(--font-kr);
}

.mypage-forgot-pw-btn:hover {
  color: var(--color-primary-light);
}

.mypage-login-required p {
  margin: 0 0 16px;
  color: var(--color-text);
}

.mypage-credential-form {
  max-width: 360px;
  margin: 0 auto;
  text-align: left;
}

.mypage-credential-form .auth-form-group {
  margin-bottom: 14px;
}

.mypage-credential-form .auth-msg {
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.mypage-credential-form .btn {
  width: 100%;
  margin-top: 8px;
}

.mypage-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

/* 마이페이지 목록 영역 고정 높이 (삭제 후에도 구간 유지) */
#mypageListWrap {
  min-height: 320px;
}

.mypage-table-wrap {
  overflow-x: auto;
  margin-bottom: 24px;
  min-height: 200px;
}

.mypage-table {
  table-layout: fixed;
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.mypage-table th:nth-child(1),
.mypage-table td:nth-child(1) { width: 14%; min-width: 100px; }   /* 접수번호 - 전부 표시 */
.mypage-table th:nth-child(2),
.mypage-table td:nth-child(2) { width: 18%; }   /* 회사명 */
.mypage-table th:nth-child(3),
.mypage-table td:nth-child(3) { width: 26%; }   /* 실증과제명 */
.mypage-table th:nth-child(4),
.mypage-table td:nth-child(4) { width: 16%; }   /* 제출일 */
.mypage-table th:nth-child(5),
.mypage-table td:nth-child(5) { width: 30%; }   /* 관리 */

.mypage-table th,
.mypage-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid #eee;
  box-sizing: border-box;
}

/* 접수번호(1열)는 전부 보이도록 ellipsis 미적용 */
.mypage-table td:nth-child(1) {
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}
.mypage-table td:nth-child(2),
.mypage-table td:nth-child(3),
.mypage-table td:nth-child(4) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mypage-table th {
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 600;
  font-size: 0.9rem;
  height: 52px;
}

.mypage-table tbody tr:hover {
  background: #f8f9fa;
}

.mypage-table-empty-cell {
  text-align: center;
  color: var(--color-text-light);
  padding: 20px;
}

.mypage-table .mypage-btn-view,
.mypage-table .mypage-btn-edit,
.mypage-table .mypage-btn-delete {
  padding: 6px 12px;
  margin-right: 6px;
  font-size: 0.85rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--font-kr);
  background: var(--color-bg);
  color: var(--color-text);
  border: 1px solid #ddd;
}

.mypage-table .mypage-btn-view:hover,
.mypage-table .mypage-btn-edit:hover {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.mypage-table .mypage-btn-delete:hover {
  background: #c0392b;
  color: var(--color-white);
  border-color: #c0392b;
}

.mypage-empty {
  text-align: center;
  color: var(--color-text-light);
  padding: 32px;
}

.mypage-detail-wrap {
  margin-top: 24px;
  width: 100%;
  box-sizing: border-box;
}

.mypage-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.mypage-detail-actions .btn {
  margin-left: 8px;
}

.mypage-detail-content {
  width: 100%;
}

/* 마이페이지 상세는 .page-apply .form-section 등 apply 스타일 그대로 적용 (별도 오버라이드 없음) */
.page-mypage .mypage-detail-content .proof-period-value {
  display: inline-block;
  min-width: 120px;
  font-size: 0.95rem;
}

.mypage-value {
  margin: 0;
  padding: 10px 0;
  font-size: 1rem;
  color: var(--color-text);
}

.mypage-value-block {
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.6;
}

.mypage-file-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.mypage-file-actions .mypage-file-name {
  margin-right: 8px;
  font-size: 0.95rem;
}

.mypage-file-actions .file-upload {
  width: 100%;
}

.mypage-file-actions .file-list {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-top: 6px;
}

.page-mypage .mypage-detail-content .file-list.file-list-with-remove {
  margin-top: 10px;
}

.page-mypage .mypage-existing-file-row {
  margin-top: 10px;
}

.mypage-file-link {
  color: var(--color-primary);
  text-decoration: underline;
  cursor: pointer;
}

.mypage-file-link:hover {
  color: var(--color-primary-light);
}

.mypage-detail-edit-actions,
#mypageDetailEditActions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* ===== 공지사항 페이지 ===== */
.page-notice {
  padding-top: calc(var(--header-height) + 40px);
  background: var(--color-bg);
}

.notice-section {
  padding: 48px 0 80px;
}

.notice-page-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-dark);
  margin: 0 0 32px;
  padding-bottom: 16px;
  border-bottom: 3px solid var(--color-primary);
}

.notice-table-wrap {
  background: var(--color-white);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  border: 1px solid rgba(0, 56, 118, 0.08);
}

.notice-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.notice-table thead {
  background: linear-gradient(180deg, #f0f6fc 0%, #e8f0f8 100%);
  border-bottom: 2px solid var(--color-primary);
}

.notice-table th {
  padding: 16px 20px;
  text-align: left;
  font-weight: 600;
  color: var(--color-dark);
}

.notice-table .col-no {
  width: 80px;
  text-align: center;
}

.notice-table .col-date {
  width: 120px;
  text-align: center;
}

.notice-table tbody tr {
  border-bottom: 1px solid #eee;
  transition: background var(--transition);
}

.notice-table tbody tr:hover {
  background: #f8fbff;
}

.notice-table tbody tr:last-child {
  border-bottom: none;
}

.notice-table td {
  padding: 16px 20px;
  color: var(--color-text);
  vertical-align: middle;
}

.notice-table .col-no,
.notice-table .col-date {
  text-align: center;
  color: var(--color-text-light);
  font-size: 0.9rem;
}

.notice-title-link {
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition);
}

.notice-title-link:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

/* 공지 상세 (클릭 시 표시) */
.notice-detail {
  display: none;
  margin-top: 24px;
  background: var(--color-white);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 56, 118, 0.08);
  overflow: hidden;
}

.notice-detail.is-open {
  display: block;
}

.notice-detail-inner {
  padding: 28px 32px 24px;
}

.notice-detail-head {
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--color-bg);
}

.notice-detail-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-dark);
  margin: 0 0 12px;
  line-height: 1.4;
}

.notice-detail-meta {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.notice-detail-meta span + span {
  margin-left: 16px;
}

.notice-detail-body {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text);
}

.notice-detail-body .notice-detail-line {
  margin-bottom: 0.3em;
  line-height: 1.65;
}

.notice-detail-body .notice-detail-line:last-child {
  margin-bottom: 0;
}

.notice-detail-body .notice-line-indent {
  padding-left: 1.2em;
}

.notice-detail-body p {
  margin: 0 0 12px;
}

.notice-detail-body p:last-child {
  margin-bottom: 0;
}

.notice-detail-footer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.notice-detail-footer .btn {
  padding: 10px 24px;
  font-size: 0.95rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-kr);
  font-weight: 500;
  transition: background var(--transition), transform var(--transition);
}

.notice-detail-footer .btn-secondary {
  background: #6c757d;
  color: var(--color-white);
}

.notice-detail-footer .btn-secondary:hover {
  background: #5a6268;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .notice-table th,
  .notice-table td {
    padding: 12px 14px;
    font-size: 0.9rem;
  }

  .notice-table .col-no {
    width: 56px;
  }

  .notice-table .col-date {
    width: 96px;
  }

  .notice-detail-inner {
    padding: 20px 20px 20px;
  }
}

/* ===== FAQ 페이지 ===== */
.page-faq {
  padding-top: calc(var(--header-height) + 40px);
  background: var(--color-bg);
}

.faq-section {
  padding: 48px 0 80px;
}

.faq-page-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-dark);
  margin: 0 0 12px;
  padding-bottom: 16px;
  border-bottom: 3px solid var(--color-primary);
}

.faq-page-desc {
  margin: 0 0 36px;
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--color-white);
  border-radius: 12px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 56, 118, 0.08);
  overflow: hidden;
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-q {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 20px 24px;
  text-align: left;
  font-family: var(--font-kr);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-dark);
  background: none;
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.faq-q:hover {
  background: #f8fbff;
  color: var(--color-primary);
}

.faq-q-num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 0.9rem;
  border-radius: 8px;
}

.faq-q-text {
  flex: 1;
  line-height: 1.4;
}

.faq-q-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
  color: var(--color-accent);
  transition: transform var(--transition);
}

.faq-q-icon::before,
.faq-q-icon::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  background: currentColor;
  margin-left: -6px;
  margin-top: -1px;
}

.faq-q-icon::after {
  width: 2px;
  height: 12px;
  margin-left: -1px;
  margin-top: -6px;
}

.faq-item.is-open .faq-q-icon::after {
  height: 0;
  margin-top: 0;
}

.faq-item.is-open .faq-q-icon {
  transform: rotate(180deg);
}

.faq-a {
  display: none;
  border-top: 1px solid rgba(0, 56, 118, 0.08);
  background: #f8fbff;
}

.faq-item.is-open .faq-a {
  display: block;
}

.faq-a-inner {
  padding: 20px 24px 24px;
  padding-left: calc(36px + 14px + 24px);
}

.faq-a-inner p {
  margin: 0 0 6px;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--color-text);
}

.faq-a-inner p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .faq-q {
    padding: 16px 18px;
    font-size: 0.95rem;
  }

  .faq-q-num {
    min-width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }

  .faq-a-inner {
    padding: 16px 18px 20px;
    padding-left: 18px;
  }
}

/* 성공 팝업 모달 */
.success-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2002;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.success-modal.show {
  display: flex;
}

.success-modal-content {
  background: var(--color-white);
  padding: 40px;
  border-radius: 16px;
  text-align: center;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.success-icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
}

.success-modal-content h3 {
  font-size: 1.5rem;
  color: var(--color-primary);
  margin: 0 0 12px;
  font-weight: 700;
}

.success-modal-content p {
  font-size: 1rem;
  color: var(--color-text-light);
  margin: 0 0 24px;
  line-height: 1.6;
}

.success-modal-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.success-modal-button.btn-secondary {
  background: #6c757d;
  color: var(--color-white);
}

.success-modal-button.btn-secondary:hover {
  background: #5a6268;
}

.success-modal-button {
  padding: 12px 28px;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-kr);
  transition: background var(--transition), transform var(--transition);
}

.success-modal-button:hover {
  background: var(--color-primary-light);
  transform: translateY(-2px);
}

/* 지원서 제출(회원가입) 팝업: 취소·확인 버튼 크기 통일 */
#applySubmitCredentialModal .btn.btn-secondary,
#applySubmitCredentialModal .success-modal-button {
  min-width: 100px;
  padding: 12px 28px;
  font-size: 1rem;
  box-sizing: border-box;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.form-row .form-group {
  margin-bottom: 0;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.form-group label .required {
  color: #c00;
  margin-left: 2px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: var(--font-kr);
  font-size: 1rem;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.form-group .hint {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-top: 6px;
}

.form-group .label-text {
  display: block;
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: var(--color-dark);
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.checkbox-group-horizontal {
  flex-wrap: nowrap;
  gap: 20px 28px;
}

@media (max-width: 768px) {
  .checkbox-group-horizontal {
    flex-wrap: wrap;
  }
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  font-size: 0.95rem;
  cursor: pointer;
  color: var(--color-text);
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.file-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.file-list li {
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.file-list li strong {
  color: var(--color-dark);
}

.file-upload {
  border: 2px dashed #ddd;
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  background: var(--color-bg);
  margin-top: 12px;
}

.file-upload input[type="file"] {
  width: 100%;
  padding: 8px;
  font-size: 0.9rem;
}

/* ===== 개인정보 수집·이용 동의 팝업 ===== */
.agree-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  padding: 20px;
  box-sizing: border-box;
}

.agree-modal-overlay.agree-modal-visible,
.agree-modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.agree-modal {
  background: var(--color-white);
  border-radius: 12px;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.agree-modal h2 {
  margin: 0;
  padding: 24px 24px 16px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.agree-body {
  padding: 20px 24px;
  overflow-y: auto;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--color-text);
}

.agree-body p {
  margin: 0 0 12px;
}

.agree-body p:last-child {
  margin-bottom: 0;
}

.agree-item {
  margin-bottom: 14px !important;
}

.agree-highlight {
  color: var(--color-primary);
  font-weight: 600;
}

.agree-checkbox-wrap {
  padding: 0 24px 16px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.agree-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  cursor: pointer;
}

.agree-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.agree-modal-buttons {
  padding: 16px 24px 24px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.agree-btn-cancel,
.agree-btn-confirm {
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-kr);
  transition: background var(--transition), color var(--transition);
}

/* ===== 로그인/회원가입 모달 ===== */
.auth-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  padding: 20px;
  box-sizing: border-box;
}

.auth-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.auth-modal {
  background: var(--color-white);
  border-radius: 12px;
  max-width: 420px;
  width: 100%;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.auth-modal h2 {
  margin: 0 0 20px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
}

.auth-form-group {
  margin-bottom: 16px;
}

.auth-form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
}

.auth-form-group input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  font-family: var(--font-kr);
  box-sizing: border-box;
}

.auth-form-group input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.auth-msg {
  margin: 12px 0;
  font-size: 0.9rem;
  min-height: 1.4em;
}

.auth-msg.error {
  color: #c0392b;
}

.auth-msg.success {
  color: #27ae60;
}

.auth-modal-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

.auth-btn-cancel,
.auth-btn-confirm {
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-kr);
  border: none;
  transition: background var(--transition), color var(--transition);
}

.auth-btn-cancel {
  background: var(--color-bg);
  color: var(--color-text);
  border: 1px solid #ddd;
}

.auth-btn-confirm {
  background: var(--color-primary);
  color: var(--color-white);
}

.auth-btn-confirm:hover {
  background: var(--color-primary-light);
}

.agree-btn-cancel {
  background: var(--color-bg);
  color: var(--color-text);
  border: 1px solid #ddd;
}

.agree-btn-cancel:hover {
  background: #e9ecef;
}

.agree-btn-confirm {
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
}

.agree-btn-confirm:hover {
  background: var(--color-primary-light);
}

/* ===== 반응형 ===== */
@media (max-width: 1024px) {
  .business-grid,
  .how-grid {
    grid-template-columns: 1fr;
  }

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

  .ai-card {
    grid-template-columns: 1fr;
  }

  .ai-card-img {
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .gnb {
    display: none;
  }

  .gnb.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-white);
    padding: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    gap: 16px;
  }

  .menu-toggle {
    display: flex;
  }

  .section {
    padding: 56px 0;
  }

  .section.how-to-apply {
    padding: 32px 0;
  }

  .section-title {
    font-size: 1.5rem;
    margin-bottom: 32px;
  }

  .benefit-grid {
    grid-template-columns: 1fr;
  }

  .page-apply .application-header h1 {
    font-size: 1.6rem;
  }

  .page-apply .form-section {
    padding: 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 0;
  }

  .form-row .form-group {
    margin-bottom: 24px;
  }

  .form-row .form-group:last-child {
    margin-bottom: 0;
  }

  .footer-inner {
    flex-direction: column;
  }
}
