/* 기본 설정 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Noto Sans KR", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fafafa;
}

/* 헤더 */
header {
  background: #fff;
  border-bottom: 1px solid #ddd;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 40px;
}

.logo-text {
  font-size: 24px;
  font-weight: bold;
  margin-left: 10px;
  color: #333;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.2s;
}

nav ul li a:hover {
  color: #0074d9;
}

.auth-links a {
  margin-left: 15px;
  text-decoration: none;
  color: #0074d9;
  font-weight: bold;
}

/* 배너 */
.banner-section {
  width: 100%;
  margin-bottom: 30px;
}

#banner-container {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
}

#banner-container img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  flex-shrink: 0;
}

/* 배너 placeholder */
.banner-placeholder {
  width: 100%;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(
    45deg,
    #f4f4f4,
    #f4f4f4 10px,
    #eee 10px,
    #eee 20px
  );
  color: #666;
  border-radius: 8px;
  margin-bottom: 30px;
}
.banner-placeholder .ph-inner {
  text-align: center;
}
.banner-placeholder small {
  display: block;
  margin-top: 6px;
  color: #888;
}

/* 6개 버튼 박스 */
.box-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 40px 0;
}

.box {
  width: 180px;
  height: 100px;
  background: #0074d9;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.box a {
  color: #fff;
  font-size: 18px;
  text-decoration: none;
  font-weight: bold;
}

.box:hover {
  background: #005fa3;
}

/* 공지사항 */
.notice-section {
  max-width: 800px;
  margin: 0 auto 50px;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.notice-section h2 {
  margin-bottom: 15px;
  border-left: 4px solid #0074d9;
  padding-left: 10px;
  font-size: 20px;
}

.notice-section ul {
  list-style: none;
}

.notice-section li {
  margin-bottom: 10px;
}

.notice-section li a {
  text-decoration: none;
  color: #333;
  transition: color 0.2s;
}

.notice-section li a:hover {
  color: #0074d9;
}

/* 로그인/폼 페이지용 */
form {
  max-width: 400px;
  margin: 50px auto;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

form div {
  margin-bottom: 15px;
}

form label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

form input,
form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

form button {
  width: 100%;
  padding: 12px;
  background: #0074d9;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}

form button:hover {
  background: #005fa3;
}

/* 푸터 */
footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 20px 0;
  margin-top: 50px;
}

footer p {
  margin: 0;
  font-size: 14px;
}

/* 반응형 */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    gap: 10px;
  }

  .box {
    width: 45%;
  }

  #banner-container img {
    max-height: 200px;
  }
}

@media (max-width: 480px) {
  .box {
    width: 100%;
  }

  .logo-text {
    font-size: 20px;
  }
}
