@import url('https://fonts.googleapis.com/css2?family=Noto+Serif:ital,wght@0,200..900;1,200..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@200..900&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  color: #fff;
  overflow-x: hidden;
  font-family: 'Noto Serif', serif;
}

/* 공통: 배경 비디오 + 스크림 */
.video-background,
.video-bg {
  position: fixed; top: 0; left: 0;
  min-width: 100%; min-height: 100%;
  object-fit: cover; z-index: -2;
}
.scrim {
  position: fixed; inset: 0;
  background: rgba(0, 14, 61, 0.2);
  z-index: -1;
}

/* 공통: 상단 고정 헤더 */
.fixed-header,
.header-bar {
  position: fixed; top: 0; left: 0; right: 0;
  height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; z-index: 1000;
  backdrop-filter: blur(7px);
}
.site-symbol, .brand { display: flex; align-items: center; gap: 10px; }
.site-symbol img, .brand img {
  width: 36px; height: 36px; border-radius: 50%; background: #ffcd60;
}
.site-symbol a, .brand a { color: #fff; text-decoration: none; font-weight: 700; letter-spacing: .3px; }

.top-menu, .links { display: flex; gap: 12px; align-items: center; }
.top-menu a {
  font-size: 1rem; padding: 6px 12px; border-radius: 4px;
  color: #ffcd60; text-decoration: none;
}
.top-menu a:hover { background: rgba(255,255,255,.85); color: #000; }

.mobile-menu-icon { display: none; color: #ffcd60; font-size: 1.5rem; cursor: pointer; margin-right: 12px; }

/* 모바일 메뉴 패널 */
.mobile-menu {
  display: none; position: fixed; top: 0; right: 0;
  height: 100%; width: 250px;
  background: rgba(255,255,255,0.85); padding: 2rem; z-index: 2000;
  transition: transform .25s ease;
}
.mobile-menu.open { display: block; }
.menu-close { text-align: right; margin-bottom: 1rem; cursor: pointer; font-size: 1.5rem; color: rgb(0,87,145); }
.mobile-menu a {
  display: block; padding: 1rem 0; font-size: 1.1rem; font-weight: 600;
  border-bottom: 1px solid rgb(0,87,145); color: rgb(0,87,145); text-decoration: none;
}

/* index 상단 히어로 */
.header {
  position: relative; width: 90%; height: 85vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2rem; margin-top: 100px; margin-left: auto; margin-right: auto; background: rgba(0, 21, 61, 0.35); border-radius: 30px;
}
.logo { width: 10rem; margin-bottom: 1rem; filter: drop-shadow(0 0 10px #fff); }
.header h1 { font-size: 4rem; text-shadow: 0 0 15px rgba(255,255,255,.7); }
.header p  { font-size: 1rem; text-shadow: 0 0 15px rgba(255,255,255,.7); }

/* index 검색 */
.search-container { margin-top: 2rem; }
.search-container input {
  padding: .8rem 1rem; border: none; border-radius: 30px; width: 300px; font-size: 1rem; outline: none;
}

/* index 목록 카드 */
.section { padding: 4rem 2rem; max-width: 1000px; margin: 0 auto; }
.post {
  margin-bottom: 2rem; color: #000; background: rgba(255,255,255,.6);
  border-radius: 12px; padding: 1.5rem; display: flex; flex-direction: column;
  transition: .25s; overflow: hidden;
}
.post:hover { background: rgba(255,255,255,.75); }

/* 공통: 버튼 */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.12);
  color: #ffcd60; text-decoration: none; font-size: .95rem;
  font-family: "Noto Serif KR", serif;
  font-optical-sizing: auto;
  font-style: normal;
}
.btn:hover { background: rgba(255,255,255,.2); }

/* 공통: 페이지 본문 */
main { max-width: 1000px; margin: 120px auto 80px; padding: 0 40px; }
.title { font-size: 2.4rem; text-shadow: 0 0 15px rgba(255,255,255,.6); }
.subtitle { margin-top: .5rem; opacity: .9; }
.card {
  margin-top: 24px; background: rgba(255,255,255,.65); color: #111;
  border-radius: 14px; padding: 20px; box-shadow: 0 8px 30px rgba(0,0,0,.25);
  font-family: "Noto Serif KR", serif;
  font-optical-sizing: auto;
  font-style: normal;
}
.section-title { font-size: 1.2rem; margin-bottom: 10px; color: #003060; }
.desc { line-height: 1.7; }

/* 공통: 갤러리 */
.gallery { margin-top: 16px; display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.ph {
  aspect-ratio: 16/10; border-radius: 10px; overflow: hidden;
  background: rgba(0,0,0,.08); display: grid; place-items: center; border: 1px dashed #9aa4b2;
}
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph span { color: #39506b; font-size: .9rem; }

/* 공통: 맨위로 버튼 + 로더 */
#topBtn {
  position: fixed; bottom: 30px; right: 30px; z-index: 100;
  background: rgba(255,255,255,.7); color: #000;
  padding: 10px 15px; border-radius: 50%; font-size: 20px; cursor: pointer; display: none;
}
#loader {
  position: fixed; inset: 0; background: #000;
  display: flex; justify-content: center; align-items: center; z-index: 9999;
  transition: opacity .5s ease;
}
.loader-circle {
  border: 6px solid rgba(255,255,255,.2);
  border-top: 6px solid #fff; border-radius: 50%;
  width: 60px; height: 60px; animation: spin 1s linear infinite;
}
@keyframes spin { from { transform: rotate(0deg);} to { transform: rotate(360deg);} }

/* 공통: 푸터 */
footer {
  text-align: center; padding: 2rem;
  background: rgba(255,255,255,.2); color: #000; font-size: .8rem;
}

/* 반응형 */
@media (max-width: 600px) {
  .top-menu { display: none; }
  .mobile-menu-icon { display: block; }
  .header h1 { font-size: 2rem; }
  .search-container input { width: 90%; }
  .gallery { grid-template-columns: 1fr; }
  .title { font-size: 1.9rem; }
}
