/* 기본 스타일 */
body {
  margin: 0;
  font-family: 'Pretendard', "Malgun Gothic", "Segoe UI", sans-serif;
  background-color: #f5f5f5;
  color: #333;
}

/* 헤더 */
header {
  background-color: #4a4a6a;
  color: #fff;
  padding: 20px;
  text-align: center;
}
header nav ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 0 0;
  display: flex;
  justify-content: center;
  gap: 20px;
}
header nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease; /* 부드러운 전환 효과 */  
}

header nav ul li a:hover {
    color: #e6c66c; /* 글자색을 변경 */
    text-decoration: underline; /* 밑줄 추가 */
}

/* 버튼 */
button {
  cursor: pointer;
}
.btn-primary {
  background-color: #ff6b6b;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 16px;
  margin-top: 10px;
}

.button-container {
    text-align: center; /* 부모 요소에 적용 */
}


/* 섹션 */
section {
  padding: 40px 20px;
  max-width: 900px;
  margin: auto;
  background-color: #fff;
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

/* 아코디언 */
.accordion-button {
  width: 100%;
  text-align: left;
  padding: 15px;
  font-size: 16px;
  border: none;
  background-color: #eee;
  border-radius: 6px;
  margin-bottom: 5px;
  transition: background 0.3s;

  position: relative; /* 자식 요소인 icon을 배치하기 위함 */
  padding-right: 40px; /* 아이콘을 위한 공간 확보 */
}

.accordion-button .icon {
    position: absolute;
    right: 15px;
    font-size: 24px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}
.accordion-button.active .icon {
    transform: translateY(-50%) rotate(45deg); /* 아이콘을 45도 회전시켜 'X' 모양으로 만듦 */
}


.accordion-button.active {
  background-color: #ddd;
}
.accordion-content {
  display: none;
  padding: 15px;
  border-left: 3px solid #ff6b6b;
  margin-bottom: 10px;
}

/* 갤러리 */
.gallery .images {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}
.gallery img {
  width: auto;
  height: auto;
  max-width: 100%;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s;
}
.gallery img:hover {
  transform: scale(1.05);
}

/* 모달 */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.8);
}
.modal-content {
  margin: auto;
  display: block;
  max-width: 80%;
  max-height: 80%;
}
.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}




/* 여러 섹션들을 묶어 가운데 정렬 */
.content-container {
  text-align: center;
}




/* a를 부모로 만들기 */
.video_link {
    position: relative;
    display: inline-block; /* img 크기에 맞게 */
}

/* 이미지 */
.video_link img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px 0;
}

/* 플레이 버튼 중앙 배치 (원형 배경) */
.video_link .ico_play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    /* 둥근 원형 배경 추가 */
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.7); /* 흰색 반투명 배경 */
    border-radius: 50%; /* 원형 모양 */
    
    z-index: 10;
    cursor: pointer;
    
    /* 삼각형 아이콘 중앙 정렬을 위한 Flexbox 추가 */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 삼각형 플레이 아이콘 (투명한 검은색 삼각형) */
.video_link .ico_play .play_icon {
    display: block;
    width: 0;
    height: 0;
    
    /* 삼각형 모양을 만듭니다. border-left 색상을 변경하여 투명한 검은색 느낌을 줍니다. */
    border-left: 20px solid rgba(0, 0, 0, 0.6); /* 투명한 검은색 삼각형 */
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;

    /* 원형 버튼 내에서 오른쪽으로 약간 이동 */
    margin-left: 3px; 
}

/* 호버 효과 */
.video_link .ico_play:hover {
    background-color: rgba(255, 255, 255, 0.9); /* 호버 시 배경 투명도 증가 */
}

/* 이미지와 동일한 플레이 버튼의 예시 렌더링 */




/* 본문 제목 스타일 */
h2 {
    font-size: 1.125em;
    margin: 1.15em 0 .6em;
    font-weight: 600;
    line-height: 1.45em;
    padding: 10px 20px;
    color: #fff;
    font-family: 'Helvetica Neue', sans-serif;
    background: #333;
    border-left: 10px solid #8a56e2;
    transition: all .4s ease-in-out;
    position: relative;
}

h3 {
    font-size: 1.1em;
    margin: 1em 0 .5em;
    font-weight: 500;
    line-height: 1.45em;
    padding: 8px 18px;
    color: #fff;
    font-family: 'Helvetica Neue', sans-serif;
    background: #4a4a4a;
    transition: all .4s ease-in-out;
    position: relative;
    border-left: 10px solid #0693e3;
}

/* 본문 단락(p) 스타일 */
p {
    margin: 1em 0;
    line-height: 1.6;
    color: #555;
    font-size: 18px;
}


li {
    font-size: 18px; /* 원하는 크기로 수정하세요. */
    margin-bottom: 10px;
}


.footer {
    text-align: center;
    color: #777;
    font-size: 0.85em;
    margin-top: 40px;
}


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

@media (max-width: 600px) {
    img {
        width: 100%;
    }
}