/* About.css */

.about-section-bg {
  background-color: #fdfdfd;
  background-blend-mode: multiply;
  background-repeat: repeat;
}

#about .container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

#about h2 {
  font-family: 'Noto Serif KR', serif;
  font-size: 3rem;
  text-align: center;
  margin-bottom: 5rem;
  color: #111827;
}

#about h3 {
  font-family: 'Noto Serif KR', serif;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #2c3e50;
}

/* --- 소개 & 이미지 콜라주 --- */
.about-intro-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  margin-bottom: 6rem;
}

.about-text-main p {
  font-size: 1.1rem;
  line-height: 2;
  letter-spacing: 0.2px;
  color: #34495e;
}

.image-collage {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
}

.image-collage img {
  position: absolute;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  object-fit: cover;
  transition: transform 0.3s ease;
}
.image-collage img:hover {
  transform: scale(1.05);
  z-index: 10;
}

.collage-img-1 { width: 60%; height: 70%; top: 0; left: 0; }
.collage-img-2 { width: 50%; height: 60%; top: 37.5%; left: 50%; }
.collage-img-3 { width: 50%; height: 60%; top: 17.5%; left: 25%; transform: rotate(-5deg); }

/* --- 멤버 프로필 --- */
.members-section { margin-bottom: 6rem; }

.members-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.member-card {
  text-align: center;
  padding: 1.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background-color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.member-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  background-color: #f9fafb;
}

.member-name { font-size: 1.25rem; font-weight: bold; color: #111827; margin: 0 0 0.5rem 0; }
.member-instruments { font-size: 0.9rem; color: #6b7280; margin: 0; }

/* --- 연혁 타임라인 --- */
.history-section { margin-bottom: 4rem; }

.timeline-container {
  position: relative;
  padding: 2rem 0;
}
.timeline-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 100%;
  background-color: #e5e7eb;
}

.timeline-item {
  position: relative;
  display: flex;
  width: 50%;
  padding: 1rem 2rem;
  margin-bottom: 2rem;
  align-items: center;
}

.timeline-dot-wrapper {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.timeline-dot {
  width: 18px;
  height: 18px;
  background-color: #ffffff;
  border: 4px solid #4f46e5;
  border-radius: 50%;
}

.timeline-item:nth-child(odd) {
  left: 0;
  padding-right: 3rem;
  justify-content: flex-end;
  text-align: right;
}
.timeline-item:nth-child(odd) .timeline-dot-wrapper {
  right: -9px;
}

.timeline-item:nth-child(even) {
  left: 50%;
  justify-content: flex-start;
}
.timeline-item:nth-child(even) .timeline-dot-wrapper {
  left: -9px;
}

.timeline-year { font-family: 'Noto Serif KR', serif; font-size: 1.2rem; font-weight: bold; margin-bottom: 0.5rem; }
.timeline-event { font-size: 1rem; color: #34495e; }

/* =============================================== */
/* 📟 태블릿 (1024px 이하)                          */
/* =============================================== */
@media (max-width: 1024px) {
  #about h2 { font-size: 2.5rem; margin-bottom: 4rem; }
  #about h3 { font-size: 1.8rem; }
  .about-intro-container { gap: 2rem; }

  /* [수정] 모든 태블릿에서 한 줄 타임라인으로 변경하고 중앙 정렬 */
  .timeline-container::before {
    left: 10px;
    transform: translateX(0);
  }
  
  .timeline-item {
    width: 100%;
    left: 0 !important;
    padding-left: 40px;
    padding-right: 1rem;
    text-align: left !important;
    justify-content: flex-start !important;
  }

  .timeline-item .timeline-dot-wrapper {
    left: 1px !important;
  }

  /* History 글자 크기 조정 */
  .timeline-year { font-size: 1.1rem; }
  .timeline-event { font-size: 0.95rem; }
}

/* =============================================== */
/* 📱 모바일 (767px 이하)                          */
/* =============================================== */
@media (max-width: 743px) {
  #about h2 { font-size: 2.2rem; margin-bottom: 3rem; }
  #about h3 { font-size: 1.7rem; }

  .about-intro-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .image-collage {
    grid-row-start: 1;
    margin-bottom: 0;
    aspect-ratio: 4 / 3;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }

  .about-text-main p {
    font-size: 0.8rem;
    line-height: 1.9;
  }
  
  /* [수정] 모바일에서는 폰트 크기만 추가 조정 */
  .timeline-year { font-size: 0.9rem; }
  .timeline-event { font-size: 0.75rem; }
}