.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: sans-serif;
}

html {
  overflow-x: hidden;  /* 수평 스크롤 막기 */
  width: 100%;
}

body {
  background-color: #fff;
  font-size: 16px;
  overflow-x: hidden;  /* 수평 스크롤 막기 */
  width: 100%;
}

.mobile-wrapper {
  width: 100%;
  overflow-x: hidden;
}

.top-banner {
  background-color: #D2D0A0;
  color: #000;
  padding: 8px;
  text-align: center;
  font-size: 14px;
  font-weight: bold;
}

.logo {
  display: block;
  margin: 10px auto;
  width: 80%;
  max-width: 240px;
}

nav {
  display: flex;
  justify-content: space-around;
  margin: 10px 0;
}

nav button {
  flex: 1;
  margin: 0 5px;
  padding: 10px;
  font-size: 16px;
  border: none;
  background-color: #007bff;
  color: white;
  border-radius: 6px;
  cursor: pointer;  /* 🔥 클릭 가능 표시 */
  transition: background-color 0.2s ease;
}

nav button:hover {
  background-color: #0056b3;
}

.main-banner {
  position: relative;
  width: 100%;
  height: 160px;
  overflow: hidden;
  margin-bottom: 10px;
}

.main-banner .slide {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.main-banner .slide.active {
  opacity: 1;
}

.date-bar {
  text-align: center;
  padding: 10px;
  background-color: #f0f0f0;
  font-weight: bold;
  font-size: 14px;
}

.ticker {
  padding: 8px;
  font-size: 14px;
  background-color: #f8f8f8;
  overflow: hidden;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}

marquee span {
  margin-right: 40px;  /* 여기서 간격 조절 */
  display: inline-block;
}

#content-section {
  margin-top: 5px;
  padding: 10px;
  background-color: #fff;
}

footer {
  margin-top: 30px;
  padding: 15px;
  background-color: #333;
  color: #fff;
  font-size: 14px;
  text-align: center;
}

/* 모바일 폼 레이아웃 */
form#applyForm {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  margin: 20px 10px;
}

.row {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group-box > label {
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 6px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  width: 100%;
  box-sizing: border-box;
}

button[type="submit"] {
  padding: 14px;
  font-size: 16px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

button[type="submit"]:hover {
  background-color: #0056b3;
}

/* 라디오 버튼 이미지 선택 */
.box-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* ← 한 줄에 3개씩 */
  gap: 12px; /* ← 이미지 간격 */
}

.box-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px;
}

.box-option img {
  width: 100%;
  max-width: 80px;
  border: 2px solid transparent;
  border-radius: 8px;
  transition: 0.3s;
}

.box-option input[type="radio"] {
  margin-top: 8px;
  accent-color: #007bff;
}

.box-option input[type="radio"]:checked ~ img {
  border-color: #007bff;
  transform: scale(1.05);
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

.modal-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(4px);
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  padding: 30px 20px 70px;
  border-radius: 10px;
  width: 90%;
  max-width: 450px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  z-index: 2;
}

.modal-buttons {
  position: absolute;
  right: 20px;
  bottom: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-buttons button {
  padding: 6px 12px;
  background-color: #444;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.modal-buttons button:hover {
  background-color: #000;
}

.remember-today {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #333;
}

.modal-img {
  width: 100%;
  max-width: 400px;
  display: block;
  margin: 0 auto;
}