/* 메인 비주얼 섹션 */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 70vh;  /* 높이는 그대로 유지 (em은 유연하게 작동 가능) */
    background-image: url('../img/index/main.jpg'); /* 배경 이미지 경로 */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content h1 {
    color: white;
    font-size: 2.5em; /* 상대적인 글자 크기 */
    text-align: center;
    background-color: rgba(0, 0, 0, 0.4); /* 반투명 배경 */
    padding: 1em 2em;
    border-radius: 1em;
    line-height: 1.5;
}

/* main-content 기본 스타일 */
.main-content {
    max-width: 100%; 
    margin: 1em 8em;
    padding: 1em;
    font-family: 'Noto Sans KR', sans-serif;
}




/* 공지사항 + 유튜브 섹션 */
.notice-container {
    display: flex;
    flex-wrap: nowrap; /* 가로로 고정 */
    gap: 2em;
    max-width: 100%;
    margin: 4em auto;
}

.notice-box {
    flex: 1 1 55%;
    background-color: #f9f9f9;
    padding: 2em;
    border-radius: 1em;
    box-shadow: 0 0.2em 0.4em rgba(0, 0, 0, 0.1);
}

.notice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 0.15em solid var(--color-blue);
    margin-bottom: 1em;
    padding-bottom: 0.5em;
}

.notice-header h2 {
    font-size: 1.8em;
    color: var(--color-text);
    margin: 0;
}

.more-btn {
    font-size: 2em;
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.more-btn:hover {
    color: var(--color-blue);
}

.notice-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.notice-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8em 0;
    border-bottom: 0.05em solid #ddd;
}

.notice-list li a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 1.1em;
    flex: 1;
}

.notice-list li a:hover {
    color: var(--color-blue);
}

.notice-date {
    flex-shrink: 0;
    font-size: 0.9em;
    color: #888;
    margin-left: 1em;
}

.video-box {
    flex: 1 1 40%;
    aspect-ratio: 16/9;
    border-radius: 1em;
    overflow: hidden;
    box-shadow: 0 0.2em 0.4em rgba(0, 0, 0, 0.1);
}





/* ✅ 반응형 스타일 */
@media (max-width: 1024px) {
  .main-content {
    margin: 1em 4em;
  }

  .hero-content h1 {
    font-size: 2em;
    padding: 0.8em 1.5em;
  }
}

@media (max-width: 768px) {
  .main-content {
    margin: 1em 2em;
  }

  .hero-content h1 {
    font-size: 1.6em;
    padding: 0.8em 1em;
  }

  .notice-container {
    flex-direction: column; /* ✅ 세로 배치 */
    gap: 1.5em;
  }

  .notice-box,
  .video-box {
    width: 100%;
    padding:0.5em;
  }

  .notice-header h2 {
    font-size: 1.5em;
  }

  .notice-list li a {
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .main-content {
    margin: 0.5em 1em;
    padding: 0.5em;
  }

  .hero-content h1 {
    font-size: 1.3em;
    padding: 0.6em 0.8em;
  }

  .notice-header h2 {
    font-size: 1.3em;
  }

  .notice-list li a {
    font-size: 0.95em;
  }

  .notice-date {
    font-size: 0.8em;
  }
}