/* style.css */

/* 전체 레이아웃 */
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  background-color: #f6f8fb;
  color: #1b1f23;
  line-height: 1.6;
}

/* 헤더 */
header {
  position: sticky;
  top: 0;
  background: rgba(246, 248, 251, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #dce3eb;
  z-index: 10;
}

header .wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 16px;
}

header .title h1 {
  font-size: 22px;
  margin: 0;
  color: #0a3d62;
}

header nav {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

header nav a {
  text-decoration: none;
  color: #0a3d62;
  background: #eaf6ff;
  border: 1px solid #cce7ff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 14px;
  transition: background 0.2s ease;
}

header nav a:hover {
  background: #d7edff;
}

/* 메인 콘텐츠 */
main {
  max-width: 980px;
  margin: 30px auto;
  padding: 0 16px;
}

section {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 28px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

section h2 {
  margin-top: 0;
  font-size: 24px;
  color: #0a3d62;
}

.poster {
  text-align: center;
  margin: 20px 0;
}

.poster img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* 학습 목표 + 결과물 */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

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

h3 {
  margin-top: 0;
  font-size: 18px;
  color: #0f2740;
}

ul {
  margin: 8px 0;
  padding-left: 20px;
}

.result {
  background: #eaf6ff;
  border-left: 6px solid #3498db;
  border-radius: 8px;
  padding: 14px 16px;
  margin-top: 12px;
}

.result h3 {
  margin-top: 0;
  margin-bottom: 6px;
  color: #0a3d62;
}

.meta {
  font-size: 13px;
  color: #5f6b7a;
  margin-top: 8px;
}

.site-footer {
  margin-top: 80px; /* 본문과 간격 */
  padding: 24px 16px; /* 안쪽 여백 */
  text-align: center; /* 가운데 정렬 */
  font-size: 0.85rem;
  color: #666;
  border-top: 2px solid #5c009f; /* 브랜드 컬러로 위쪽 구분선 */
  background: #fafafa; /* 은은한 배경 */
}

.lang-switch {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 8px; /* 버튼 사이 간격 */
}

.lang-switch a {
  padding: 6px 12px;
  background-color: #5c009f;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: bold;
  transition: background 0.2s ease;
}

.lang-switch a:hover {
  background-color: #7b26c9; /* hover 효과 */
}

.lang-switch .about-btn {
  background-color: #3498db; /* 파란색 계열 */
}

.lang-switch .about-btn:hover {
  background-color: #2980b9;
}

.program-banner {
  background-color: #5c009f; /* 브랜드 퍼플 */
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  padding: 10px 16px;
  margin: 12px 0 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.program-banner strong {
  color: #ffd700; /* 기본 골드 */
  text-decoration: none; /* 기본은 밑줄 제거 */
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.program-banner strong:hover {
  color: #fff176; /* 밝은 옐로우 톤으로 변경 */
  text-decoration: underline;
  text-shadow: 0 0 8px rgba(255, 223, 0, 0.8); /* 빛나는 효과 */
  cursor: default; /* 클릭 링크가 아니라면 pointer 대신 default 유지 */
}

nav a {
  color: #333;
  text-decoration: none; /* 기본은 밑줄 제거 */
  margin: 0 12px;
  font-weight: 500;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

nav a:hover {
  color: #5c009f; /* 브랜드 퍼플로 강조 */
  text-decoration: underline;
  text-underline-offset: 4px; /* 밑줄과 텍스트 간격 */
}
