/* =============================
   기본 설정
============================= */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@100..900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Noto Sans KR', sans-serif;
}

body {
  background: #edb6c2;
  color: #111;
}

/* =============================
   헤더
============================= */
header {
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(10px);
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 10;
}

header h1 {
  font-size: 1.8rem;
  font-weight: 800;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav a {
  text-decoration: none;
  font-weight: 600;
  color: #333;
  padding-bottom: 5px;
  border-bottom: 2px solid transparent;
}

nav a:hover,
nav a.active {
  border-bottom: 2px solid #d46aff;
  color: #d46aff;
}

/* =============================
   제목 + 작성버튼
============================= */
.notice-top {
  max-width: 1300px;
  margin: 50px auto 30px;
  text-align: center;
  position: relative;
}

.notice-top h2 {
  font-size: 3rem;
  font-weight: 900;
}

.write-btn {
  position: absolute;
  right: 0;
  top: 10px;
  background: #6c63ff;
  color: white;
  padding: 12px 24px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
}

/* =============================
   캐러셀
============================= */
.carousel-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 40px;
  overflow: hidden;
  position: relative;
}

.carousel-track {
  display: flex;
  gap: 40px;
  transition: transform 0.4s ease;
}

.notice-card {
  min-width: 380px;
  background: rgba(255,255,255,0.7);
  padding: 20px;
  border-radius: 16px;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.thumb {
  width: 100%;
  height: 200px;
  background: #d4b2ba;
  border-radius: 12px;
  margin-bottom: 15px;
}

/* 버튼 */
.carousel-btn {
  position: absolute;
  top: 45%;
  background: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  font-size: 30px;
  cursor: pointer;
  z-index: 20;
}

.carousel-btn.left { left: 0; }
.carousel-btn.right { right: 0; }

/* =============================
   팝업
============================= */
.notice-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
  padding: 20px;
  z-index: 999;
}

.popup-content {
  background: white;
  width: 650px;
  max-height: 90vh;
  padding: 30px;
  border-radius: 14px;
  overflow-y: auto;
  position: relative;
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 30px;
  border: none;
  background: none;
  cursor: pointer;
}

.popup-image img {
  width: 100%;
  border-radius: 10px;
  margin: 20px 0;
}

footer {
  background: rgba(255,255,255,0.5);
  backdrop-filter: blur(8px);
  padding: 20px;
  text-align: center;
  border-top: 1px solid rgba(0,0,0,0.1);
  margin-top: 80px;
  font-size: 0.95rem;
  color: #111;
}