body {
  font-family: 'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
  margin: 0;
  padding: 0;
}

header {
  background-color: #2c3e50;
  color: white;
  text-align: center;
  padding: 3rem 1rem;
}

.container {
  flex: 1;
  margin: 20px auto;
  padding: 20px;
}

.content-block {
  display: flex;
  align-items: center;
  gap: 40px;
  background: white;
  margin-bottom: 30px;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.content-block.reverse {
  flex-direction: row-reverse;
}

.content-block.full-text {
  display: block;
  text-align: left;
}

.text-area {
  flex: 1;
}

.container > section:nth-child(5) .text-area {
  flex: 2;
}

.container > section:nth-child(10) .text-area {
  flex: 3;
}
.emtpy-area {
  flex: 1;
}

.image-area {
  flex: 2; /* 이미지를 텍스트보다 크게 기본 설정 (나머지 섹션들) */
  text-align: center;
}

.container > section:nth-child(8) .image-area,
.container > section:nth-child(7) .image-area,
.container > section:nth-child(6) .image-area,
.container > section:nth-child(3) .image-area,
.container > section:nth-child(4) .image-area {
  flex: 3;
}

/* 섹션 5와 10은 이미지 크기(비율)를 원래대로(1:1) 유지 */
.container > section:nth-child(5) .image-area,
.container > section:nth-child(10) .image-area {
  flex: 1;
}

/* 섹션 11 텍스트 가운데 정렬 */
.container > section:nth-child(1) .text-area,
.container > section:nth-child(11) .text-area {
  text-align: center;
  width: 100%;
}

.image-area img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.caption {
  font-size: 0.9rem;
  color: #777;
  margin-top: 10px;
}

h2 {
  color: #2c3e50;
  margin-top: 0;
}

footer {
  text-align: center;
  padding: 2rem;
  color: #777;
  font-size: 0.9rem;
}

/* 모바일 대응 */
@media (max-width: 768px) {
  .content-block,
  .content-block.reverse {
    flex-direction: column;
    padding: 20px;
  }
}
