/* ══════════════════════════════════════════
   전역 스타일
══════════════════════════════════════════ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
 
  background: linear-gradient(160deg, #eef4ff 0%, #f8faff 40%, #ffffff 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page-container {
  min-height: 100vh;
  padding: 1px 0;
}

.content-wrapper {
  width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ══════════════════════════════════════════
   페이지 타이틀
══════════════════════════════════════════ */
.page-title {
  margin-bottom: 35px;
  opacity: 0;
  transform: translateY(-24px);
  animation: titleFadeIn 0.7s ease-out forwards;
}

@keyframes titleFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.title-flex {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 8px;
}

.main-title {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.02em;
  margin: 0;
}

.sub-title {
  font-size: 0.9rem;
  color: #60a5fa;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
  font-weight: 500;
}

.title-underline {
  display: flex;
  align-items: center;
  gap: 0;
}

.underline-primary {
  width: 40px;
  height: 3px;
  background: #2563eb;
  border-radius: 9999px;
}

.underline-secondary {
  width: 96px;
  height: 3px;
  background: #bfdbfe;
  border-radius: 9999px;
}

/* ══════════════════════════════════════════
   섹션 공통
══════════════════════════════════════════ */
.section-container {
  margin-bottom: 64px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.title-accent {
  width: 4px;
  height: 28px;
  background: linear-gradient(to bottom, #3b82f6, #1d4ed8);
  border-radius: 9999px;
}

.title-text {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #1f2937;
  letter-spacing: -0.01em;
  margin: 0;
}

.title-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, #bfdbfe, transparent);
  margin-left: 8px;
}

/* ══════════════════════════════════════════
   기본형 Section
══════════════════════════════════════════ */
.basic-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-bottom: 32px;
}

.basic-combined-card {
  background: #ffffff;
  border: 2px solid rgba(59, 130, 246, 0.35);
  border-radius: 0;
  box-shadow: 0 4px 24px rgba(59, 130, 246, 0.12);
  overflow: hidden;
  opacity: 0;
  transform: scale(0.88);
  animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.basic-combined-images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background-color: #ffffff;
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, 0.16) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.16) 1px, transparent 1px);
  background-size: 18px 18px;
}

.basic-combined-item {
  min-height: 290px;
  padding: 26px 20px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.basic-combined-item .card-title {
  width: 100%;
  font-size: 1.9rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 10px;
}

.basic-combined-item .character-image {
  height: 230px;
  width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.basic-card {
  border-radius: 16px;
  overflow: hidden;
  background: white;
  box-shadow: 0 4px 24px rgba(59, 130, 246, 0.12);
  border: 2px solid rgba(59, 130, 246, 0.35);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  opacity: 0;
  transform: scale(0.88);
  animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.basic-card[data-delay="0"] {
  animation-delay: 0s;
}

.basic-card[data-delay="100"] {
  animation-delay: 0.1s;
}

@keyframes scaleIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.basic-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(59, 130, 246, 0.28);
}

.basic-card-header {
  padding: 20px 24px 12px;
}

.basic-card-header.male {
  background: linear-gradient(to right, #eff6ff, #eef2ff);
}

.basic-card-header.female {
  background: linear-gradient(to right, #fdf2f8, #fff1f2);
}

.card-title {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: #374151;
  letter-spacing: -0.01em;
  margin: 0;
}

.basic-card-image {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 256px;
  background: white;
  padding: 16px 24px 24px;
}

.character-image {
  height: 100%;
  width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

/* 설명 텍스트 박스 */
.description-box {
  border-radius: 16px;
  padding: 28px;
  background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
  border-left: 4px solid #3b82f6;
  box-shadow: 0 2px 16px rgba(59, 130, 246, 0.08);
  opacity: 0;
  transform: translateY(36px);
  animation: fadeUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.description-box[data-delay="200"] {
  animation-delay: 0.2s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.description-content {
  color: #4b5563;
  font-size: 1rem;
  line-height: 1.7;
}

.description-content p {
  margin-bottom: 25px;
  position: relative;
  padding-left: 32px;
}

.description-content p:last-child {
  margin-bottom: 0;
}

.bullet {
  color: #3b82f6;
  margin-right: 6px;

  position: absolute;
  left: 0;
  top: 0;
}

/* ══════════════════════════════════════════
   응용동작형 Section
══════════════════════════════════════════ */
.action-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.action-card {
  border-radius: 16px;
  background: white;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.09);
  border: 1px solid rgba(59, 130, 246, 0.22);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  opacity: 0;
  transform: scale(0.88);
}

.action-card[data-index="0"] {
  animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0s forwards;
}

.action-card[data-index="1"] {
  animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.08s forwards;
}

.action-card[data-index="2"] {
  animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.16s forwards;
}

.action-card[data-index="3"] {
  animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.24s forwards;
}

.action-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 24px 48px rgba(59, 130, 246, 0.20);
}

.action-card-accent {
  height: 4px;
  width: 100%;
}

.action-card-image {
  display: flex;
  justify-content: center;
  align-items: center;
  aspect-ratio: 1 / 1;
  padding: 20px;
}

.action-card-image .character-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.12));
}

.action-card-label {
  padding-bottom: 12px;
  text-align: center;
}

.action-card-label .label-text {
  font-size: 0.78rem;
  color: #9ca3af;
}

/* ══════════════════════════════════════════
   학과형 Section
══════════════════════════════════════════ */
.department-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.dept-card {
  border-radius: 12px;
  background: white;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 3px 14px rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.20);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  opacity: 0;
  transform: scale(0.88);
}

/* 학과형 애니메이션 딜레이 */
.dept-card[data-index="0"] { animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0s forwards; }
.dept-card[data-index="1"] { animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.04s forwards; }
.dept-card[data-index="2"] { animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.08s forwards; }
.dept-card[data-index="3"] { animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.12s forwards; }
.dept-card[data-index="4"] { animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.16s forwards; }
.dept-card[data-index="5"] { animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s forwards; }
.dept-card[data-index="6"] { animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.24s forwards; }
.dept-card[data-index="7"] { animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.28s forwards; }
.dept-card[data-index="8"] { animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.32s forwards; }
.dept-card[data-index="9"] { animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.36s forwards; }
.dept-card[data-index="10"] { animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s forwards; }
.dept-card[data-index="11"] { animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.44s forwards; }
.dept-card[data-index="12"] { animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.48s forwards; }
.dept-card[data-index="13"] { animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.52s forwards; }
.dept-card[data-index="14"] { animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.56s forwards; }

.dept-card:hover {
  transform: translateY(-6px) scale(1.04);
  box-shadow: 0 18px 36px rgba(59, 130, 246, 0.18);
}

.dept-card-accent {
  height: 2px;
  width: 100%;
  transition: height 0.3s ease;
}

.dept-card:hover .dept-card-accent {
  height: 4px;
}

/* 학과형 accent 색상 */
.dept-accent-0 { background: linear-gradient(90deg, hsl(200, 75%, 58%), hsl(220, 65%, 68%)); }
.dept-accent-1 { background: linear-gradient(90deg, hsl(218, 75%, 58%), hsl(238, 65%, 68%)); }
.dept-accent-2 { background: linear-gradient(90deg, hsl(236, 75%, 58%), hsl(256, 65%, 68%)); }
.dept-accent-3 { background: linear-gradient(90deg, hsl(254, 75%, 58%), hsl(274, 65%, 68%)); }
.dept-accent-4 { background: linear-gradient(90deg, hsl(272, 75%, 58%), hsl(292, 65%, 68%)); }
.dept-accent-5 { background: linear-gradient(90deg, hsl(290, 75%, 58%), hsl(310, 65%, 68%)); }
.dept-accent-6 { background: linear-gradient(90deg, hsl(308, 75%, 58%), hsl(328, 65%, 68%)); }
.dept-accent-7 { background: linear-gradient(90deg, hsl(326, 75%, 58%), hsl(346, 65%, 68%)); }

.dept-card-image {
  display: flex;
  justify-content: center;
  align-items: center;
  aspect-ratio: 1 / 1;
  padding: 16px;
}

.dept-card-image .character-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.1));
}

.dept-card-label {
  padding-bottom: 10px;
  text-align: center;
}

.dept-card-label .label-text {
  font-size: 0.72rem;
  color: #9ca3af;
}

/* ══════════════════════════════════════════
   다운로드 섹션
══════════════════════════════════════════ */
.download-section {
  padding: 32px 0 64px;
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.6s ease-out 0.6s forwards;
}

.download-container {
  border-radius: 16px;
  padding: 32px 40px;
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #3b82f6 100%);
  box-shadow: 0 8px 40px rgba(29, 78, 216, 0.30);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.download-description {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.88rem;
  color: #bfdbfe;
  letter-spacing: 0.05em;
  margin: 0;
}

.download-buttons {
  display: flex;
  gap: 16px;
}

.download-btn {
  font-family: 'Noto Sans KR', sans-serif;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.ai-btn {
  background: white;
  color: #1d4ed8;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.ai-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 32px rgba(255, 255, 255, 0.25);
}

.ai-btn:active {
  transform: scale(0.97);
}

.png-btn {
  background: rgba(255, 255, 255, 0.18);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  color: white;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.10);
}

.png-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 32px rgba(255, 255, 255, 0.25);
}

.png-btn:active {
  transform: scale(0.97);
}

/* ══════════════════════════════════════════
   반응형 (선택사항)
══════════════════════════════════════════ */
@media (max-width: 1200px) {
  .content-wrapper {
    width: 100%;
    max-width: 1080px;
  }
}

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

  .basic-combined-images {
    grid-template-columns: 1fr;
  }
  
  .action-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .department-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .download-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .download-btn {
    width: 100%;
    justify-content: center;
  }
}
