@font-face {
  font-family: 'KnuTruth';
  src: url('../font/KNUTRUTHTTF.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

a {
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5 {
  margin: 0;
  padding: 0;
}

html,
body {
  font-family: 'Noto Sans KR', sans-serif;
  margin: 0;
  padding: 0;
}

/* ============================================
   NAVBAR - Modern Style
   ============================================ */
.navbar {
  position: fixed;
  font-family: 'Noto Sans KR', sans-serif;
  top: 0;
  width: 100%;
  height: 72px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 999;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.08);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

/* --- User Utils --- */
.user-utils {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 16px;
}

.login-box,
.login-user-box,
.logout-box {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #666;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.login-box:hover,
.logout-box:hover {
  color: #c9171e;
  background: rgba(201, 23, 30, 0.06);
}

.login-box svg,
.login-user-box svg {
  flex-shrink: 0;
}

/* --- Logo --- */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 40px;
  transition: opacity 0.2s ease;
}

.logo:hover img {
  opacity: 0.8;
}

/* --- Desktop Menus --- */
.menus {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-menu {
  position: relative;
  list-style: none;
  display: flex;
  gap: 0;
  margin: 0;
  padding: 0;
}

.nav-menu > li {
  position: relative;
}

.nav-menu > li > a {
  display: flex;
  align-items: center;
  color: #444;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 24px 20px;
  transition: color 0.2s ease;
  position: relative;
}

.nav-menu > li > a::after {
  content: '';
  position: absolute;
  bottom: 16px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #c9171e;
  transition: all 0.25s ease;
  transform: translateX(-50%);
}

.nav-menu > li:hover > a {
  color: #c9171e;
}

.nav-menu > li:hover > a::after {
  width: calc(100% - 40px);
}

/* --- Submenu Dropdown --- */
.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 8px;
  z-index: 100;
}

.submenu-inner {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 8px;
  min-width: 170px;
  display: flex;
  flex-direction: column;
}

.submenu-inner a {
  display: block;
  text-decoration: none;
  color: #444;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.submenu-inner a:hover {
  color: #c9171e;
  background: rgba(201, 23, 30, 0.05);
}

/* --- Admin grouped dropdown --- */
/* 관리 메뉴는 최우측이라 중앙 정렬 대신 우측에 고정해 화면 밖으로 넘치지 않게 한다 */
.submenu.admin-submenu {
  left: auto;
  right: 0;
  transform: none;
}

.admin-submenu .submenu-inner {
  min-width: 380px;
  padding: 10px;
  display: flex;
  /* 베이스 .submenu-inner 의 flex-direction: column 을 가로로 되돌린다.
     (안 되돌리면 flex-basis 150px 가 그룹 '높이' 로 적용돼 빈 공간이 커진다) */
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  align-content: flex-start;
  gap: 2px 10px;
}

.submenu-group {
  flex: 1 1 150px;
  min-width: 150px;
  display: flex;
  flex-direction: column;
  padding: 4px 0 8px;
}

.submenu-group-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #c9171e;
  padding: 4px 16px 6px;
  margin-bottom: 2px;
  border-bottom: 1px solid rgba(201, 23, 30, 0.12);
}

.admin-submenu .submenu-inner a {
  padding: 8px 16px;
}

/* --- Mobile Menu Toggle --- */
.mobile-menus {
  display: none;
}

.menu-toggle {
  cursor: pointer;
  width: 28px;
  height: 28px;
  color: #444;
  transition: color 0.2s ease;
}

.menu-toggle:hover {
  color: #c9171e;
}

.menu-toggle line {
  transition: transform .25s ease, opacity .2s ease;
}

.menu-toggle[aria-pressed="true"] .top {
  transform: translate(10px, 0px) rotate(45deg);
}

.menu-toggle[aria-pressed="true"] .mid {
  opacity: 0;
}

.menu-toggle[aria-pressed="true"] .bot {
  transform: translate(-7px, 10px) rotate(-45deg);
}

/* --- Mobile Overlay --- */
.menu-overlay {
  position: fixed;
  top: 60px;
  right: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 1000;
  display: none;
  flex-direction: column;
  padding: 24px;
  border-top: 1px solid #eee;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  max-height: calc(100vh - 60px);
  overflow-y: auto;
}

.menu-overlay.active {
  transform: translateX(0);
}

.menu-overlay > ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: right;
}

.menu-overlay > ul > li {
  margin: 0;
  border-bottom: 1px solid #f0f0f0;
}

.menu-overlay > ul > li > a {
  display: block;
  color: #222;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  padding: 16px 0;
  transition: color 0.2s ease;
}

.menu-overlay > ul > li > a:hover {
  color: #c9171e;
}

.menu-overlay > ul > li > a::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid #bbb;
  border-bottom: 2px solid #bbb;
  transform: rotate(45deg);
  margin-left: 8px;
  transition: transform 0.25s ease;
  vertical-align: middle;
}

.menu-overlay > ul > li.open > a::after {
  transform: rotate(-135deg);
}

.mobile-submenu a::after {
  content: none;
}

.badge {
    display: inline-block;
    padding: 0.35em 0.65em;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    border-radius: 0.375rem;
    color: #fff;
    background: #8d8d8d;
    margin-right: 0.5rem;
}

.badge-blue {
    background-color: #2563eb;
}

.badge-gray {
    background-color: #6b7280;
}

.badge-yellow {
    background-color: #ffc107;
    color: #000;
}

.badge-red {
    background: #dc3545;
    color: #fff;
}

.badge-green {
    background: #198754;
    color: #fff;
}

.badge-info {
    background: #0dcaf0;
    color: #000;
}

/* --- Mobile Submenu --- */
.mobile-submenu {
  display: none;
  list-style: none;
  padding: 0;
  margin: 0 0 8px 0;
  text-align: right;
}

.mobile-submenu li {
  margin: 0;
}

.mobile-submenu a {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: #888;
  text-decoration: none;
  padding: 10px 0;
  transition: color 0.2s ease;
}

.mobile-submenu a:hover {
  color: #c9171e;
}

.mobile-group-title {
  font-size: 12px;
  font-weight: 700;
  color: #c9171e;
  padding: 12px 0 4px;
  margin-bottom: 2px;
  border-bottom: 1px solid rgba(201, 23, 30, 0.12);
}

main {
  padding-top: 72px;
}

.section {
  max-width: 1280px;
  padding: 40px 10px;
  margin: 0 auto;
  border-bottom: 1px solid #ccc;
  margin-bottom: 50px;
}

.section.wide {
  max-width: 100%;
  background: #d03839;
  font-size: 1.5em;
  line-height: 1.5;
  font-family: 'Noto Sans KR', sans-serif;
  padding: 0;
}

.section-title-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.section h1 {
  color: #e60000;
  font-family: 'KnuTruth';
  font-size: 2rem;
  padding: 15px 0;
}

.section h2 {
  color: #222;
  font-family: 'KnuTruth';
  font-size: 1.5rem;
  padding-bottom: 25px;
}

.hero-section {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

.bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: -1;
  transform: translate(-50%, -50%);
  object-fit: cover;
  filter: brightness(0.7);
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.2) 50%,
    rgba(0, 0, 0, 0.5) 100%
  );
  z-index: 0;
}

.hero-text {
  position: relative;
  z-index: 1;
  color: #fff;
  text-align: center;
  top: 50%;
  transform: translateY(-50%);
  padding: 0 1rem;
}

.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: fadeInUp 1.5s ease-out;
}

.hero-text p {
  font-size: 1.2rem;
  opacity: 0.85;
  animation: fadeInUp 2s ease-out;
}

.fade-up {
  opacity: 0;
}

.fade-up.active {
  animation: fadeInUp 2s ease-out;
  opacity: 1;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slogan-fade-container {
  font-family: 'KnuTruth', sans-serif;
  height: 6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0 1rem;
}

.slogan-slide {
  position: absolute;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  text-align: center;
  width: 100%;
  color: #fff;
}

.slogan-slide.active {
  opacity: 1;
  transform: translateY(0);
}

.slogan-slide h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.slogan-slide p {
  font-size: 1.5rem;
  opacity: 0.85;
}

.contact-container {
  display: flex;
  font-family: 'Noto Sans KR', sans-serif;
  gap: 16px;
  flex-direction: column;
  align-items: center;
}

.contact {
  flex: 1;
}

.contact p {
  margin: 0;
  padding: 0;
  font-weight: 300;
  word-break: keep-all;
}

.contact iframe {
  width: 600px;
  height: 450px;
}

.footer-container {
  width: 100%;
  height: 6rem;
  display: flex;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  color: #fff;
  font-family: 'KnuTruth';
}

.btn {
  font-size: 13px;
  display: inline-block;
  text-align: center;
  cursor: pointer;
  border: 1px solid #ccc;
  background-color: #fff;
  border-radius: 2px;
  padding: 10px 25px;
  color: #222;
}

.btn.sm {
  font-size: 8px;
}

.btn-danger {
  border: 1px solid #f18181;
  color: #f18181;
}

.empty-data {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  align-items: center;
  padding: 50px 0;
}

.empty-data img {
  width: 80px;
}

.empty-data {
  font-size: 15px;
  color: #c5c5c5;
}

.radio-group {
  width: 100%;
  display: inline-flex;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #ddd;
}

.radio-group label {
    padding:0;
    margin:0;
}

.radio-btn {
  flex: 1;
  cursor: pointer;
}

.radio-btn input {
  display: none;
  /* 기본 라디오 숨기기 */
}

.radio-btn span {
  display: block;
  padding: 4px 5px;
  text-align: center;
  font-weight: bold;
  font-size: 12px;
  color: #333;
  background: #fff;
  transition: all 0.3s;
}

.radio-btn input:checked+span {
  background: #e60000;
  /* 선택된 배경색 */
  color: #fff;
  /* 선택된 글자색 */
}

.page-under-construct {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-under-construct img {
  width: 150px;
  margin-bottom: 15px;
}

.page-under-construct h3 {
  color: #e60000;
}

/* 모바일 대응 */
@media (max-width: 768px) {
  .disabled-in-mobile {
    display: none;
  }

  .btn {
    padding: 5px 15px;
    font-size: 13px;
  }

  .section h1 {
    font-size: 7vw;
  }

  .nav-container {
    padding: 0 1rem;
  }

  .navbar {
    height: 60px;
  }

  .mobile-menus {
    display: block;
  }

  .menu-overlay {
    display: flex;
    top: 60px;
  }

  .menus {
    display: none;
  }

  .logo img {
    height: 32px;
  }

  .slogan-slide h1 {
    font-size: 1.5rem;
  }

  .slogan-slide p {
    font-size: 0.9rem;
  }

  .contact iframe {
    width: 100%;
  }

  .contact p {
    padding: 0 15px;
    font-size: 15px;
  }

  .page-under-construct h3 {
    font-size: 18px;
  }

  .page-under-construct h4 {
    font-size: 15px;
    ;
  }
}

@media (max-width: 480px) {
  .slogan-slide h1 {
    font-size: 1.2rem;
  }

  .slogan-slide p {
    font-size: 0.8rem;
  }
}