/* 전체 레이아웃 기본 설정 */
body {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  color: #333;
  background-color: #fff;
}

/* container: 가운데 정렬 + 최대 너비 1200px */
.container {
  width: 1200px;
  max-width: 95%;
  margin: 0 auto;
  padding: 20px;
}

.container p {
  text-align: center;
}

/* 헤더 스타일 */
header {
  width: 100%;
  background-color: #f5f5f5;
  padding: 10px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  width: auto;
  max-width: 100%;
  height: 48px;
  object-fit: contain;
  object-position: left center;
  margin-right: 10px;
}

.nav-buttons a {
  color: #333;
  text-decoration: none;
  font-size: 18px;
  padding: 5px 10px;
  margin: 0 5px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.nav-buttons a:hover {
  border: 1px solid #333;
  border-radius: 3px;
}

/* 메인 배너 */
.banner {
  width: 100%;
  background: url("../source/test_bg.png") no-repeat center / cover;
  margin: 0 auto;
}

.banner-content {
  width: 1200px;
  max-width: 95%;
  margin: 0 auto;
  padding: 20px;
}

.banner-content h1 {
  color: #438759;
  font-size: 50px;
  font-weight: bold;
  margin: 0 0 20px;
}

.vod-date {
  display: inline-block;
  background-color: orange;
  color: #fff;
  font-size: 20px;
  padding: 5px 10px;
  margin-bottom: 20px;
}

.notice {
  font-size: 18px;
  color: #666;
  line-height: 1.5;
}

.soft-red {
  color: #FF6B6B;
}

/* 두 번째 배너 (2칸: 프로그램 / 사전등록) */
.sub-banner {
  width: 100%;
  background-color: #438759;
  margin: 0 auto;
}

.sub-banner-content {
  width: 1200px;
  max-width: 95%;
  margin: 0 auto;
  display: flex;
}

.sub-banner-content a {
  flex: 1;
  text-decoration: none;
  text-align: center;
  color: #fff;
  font-size: 20px;
  padding: 30px 0;
  border-left: 1px solid #fff; 
  box-sizing: border-box;
}

.sub-banner-content a:last-child {
  border-right: 1px solid #fff;
}

.sub-banner-content a:hover {
  background-color: #006666;
}
.sub-banner-content a.is-active {
  background-color: #2f5a3f;
}

/* 로그인 폼 영역 */
.login-form {
  max-width: 400px;
  margin: 50px auto 0;
}

.login-form p {
  text-align: center;
  font-size: 16px;
}

.login-form label {
  font-weight: bold;
  margin-bottom: 5px;
  display: block;
}

.login-form input {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  box-sizing: border-box;
  font-size: 16px;
}

.button-wrapper {
  text-align: center;
}

.button-wrapper button {
  padding: 10px 30px;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  border-radius: 5px;
  background-color: #438759;
  color: #fff;
  transition: background-color 0.3s;
}

.button-wrapper button:hover {
  background-color: #366345;
}

/* 푸터 영역 */
footer {
  margin: 0;
  padding: 0;
  width: 100%;
}

.footer-sponsor {
  color: black;
  font-weight: bold;
  border-top: 1px solid black;
  width: 100%;
  background-color: #fff;
}

.sponsors {
  text-align: center;
}

.sponsors span {
  margin: 0 20px;
  font-size: 16px;
  vertical-align: middle;
}

.sponsors img {
  vertical-align: middle;
  width: auto;
  max-width: 100%;
  height: 28px;
  object-fit: contain;
  object-position: center;
  margin-left: 5px;
}

.footer-bottom {
  width: 100%;
  background-color: #444;
  color: white;
  font-weight: bold;
  padding: 10px 0;
  text-align: center;
  font-size: 15px;
}

/* 모바일 반응형 스타일 */
@media (max-width: 768px) {
  .container {
      width: 90%;
      padding: 10px;
  }
  .banner-content, .sub-banner-content {
      width: 100%;
      padding: 10px;
  }
  .banner-content h1 {
      font-size: 36px;
  }
  .vod-date {
      font-size: 16px;
      padding: 5px 8px;
  }
  .notice {
      font-size: 16px;
  }
  .sub-banner-content a {
      font-size: 16px;
      padding: 20px 0;
  }
  .login-form {
      max-width: 100%;
      margin: 20px auto 0;
  }
  .login-form label, .login-form input {
      font-size: 14px;
  }
  .button-wrapper button {
      font-size: 0.9rem;
      padding: 8px 20px;
  }
  .logo img {
      width: auto;
      height: 42px;
  }
  .sponsors img {
      width: auto;
      height: 26px;
  }
}

@media (max-width: 480px) {
  .header-inner {
      flex-direction: column;
      text-align: center;
  }
  .nav-buttons {
      margin-top: 10px;
  }
  .banner-content h1 {
      font-size: 28px;
  }
  .vod-date {
      font-size: 14px;
      padding: 4px 8px;
  }
  .notice {
      font-size: 14px;
  }
  .sub-banner-content a {
      font-size: 14px;
      padding: 15px 0;
  }
  .login-form {
      padding: 0 10px;
  }
  .login-form label, .login-form input {
      font-size: 12px;
  }
  .button-wrapper button {
      font-size: 0.8rem;
      padding: 6px 16px;
  }
  .logo img {
    width: auto;
    height: 38px;
  }
  .sponsors img {
    width: auto;
    height: 24px;
  }
  .footer-bottom {
    font-size: 13px;
  }
  /* 푸터 주최/후원 텍스트 폰트 크기를 12px로 조정 */
  .sponsors img {
    max-width: none;
  }
  .sponsors span {
    font-size: 14px;
  }
  
  /* 주최, 후원 항목이 줄바꿈되도록 */
  .sponsor-item {
    display: block;
    margin: 10px 0;
  }
}
