/* 전체 레이아웃 기본 설정 */
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;
}

/* 프로그램 영역 스타일 */
.program-section {
  margin-top: 30px;
}
.program-section h2 {
  text-align: left;
  font-weight: bold;
  font-size: 1.5em;
  margin-bottom: 10px;
}
.public-tab-content {
  font-size: 16px;
  line-height: 1.7;
  color: #333;
}
.public-tab-content img {
  max-width: 100%;
  height: auto;
}
.public-tab-content table {
  width: 100%;
}
hr {
  margin-bottom: 20px;
}

/* 테이블 스타일 */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  table-layout: auto;
}
table th, table td {
  padding: 12px;
  border: 1px solid #ddd;
  text-align: center;
  height: 30px;
}
thead tr {
  background-color: #438759;
  color: #fff;
  font-weight: bold;
}
thead th:first-child, tbody td:first-child {
  width: 15%;
}
.period-row td {
  background-color: #ccc;
  color: #000;
  text-align: center;
  font-weight: bold;
}

/* 푸터 영역 */
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;
}
/* 모바일에서 주최, 후원 span을 줄바꿈 */
@media (max-width: 480px) {
  .sponsor-item {
    display: block;
    margin: 10px 0;
  }
}
.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;
}

.program-instructor-image {
  width: auto;
  max-width: 100%;
  height: 100px;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  background-color: #f2f4f7;
  flex-shrink: 0;
}
.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;
  }
  .program-section h2 {
    font-size: 1.5em;
  }
  table th, table td {
    font-size: 14px;
    padding: 8px;
  }
  .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;
  }
  .program-section h2 {
    font-size: 1.5em;
  }
  table th, table td {
    font-size: 12px;
    padding: 6px;
  }
  .logo img {
    width: auto;
    height: 38px;
  }
  .sponsors img {
    width: auto;
    height: 24px;
  }
  .program-instructor-image {
    width: auto;
    height: 84px;
  }
  .footer-bottom {
    font-size: 13px;
  }
  /* 푸터 주최/후원 텍스트 폰트 크기를 12px로 조정 */
  .sponsors img {
    max-width: none;
  }
  .sponsors span {
    font-size: 14px;
  }
  
  /* 주최, 후원 항목이 줄바꿈되도록 */
  .sponsor-item {
    display: block;
    margin: 10px 0;
  }
}
