@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css");

/* ==================================================
   01. 기본 설정
   전체 색상·글꼴·본문 너비를 수정하는 곳입니다.
   관리자 페이지는 별도의 admin.css를 사용합니다.
================================================== */

:root {
  --navy: #0b1f3b;
  --teal: #12a8a2;
  --ink: #17263d;
  --muted: #64748b;
  --line: #e2eaf0;

  --page-ink: #101d34;
  --page-muted: #6b7280;
  --page-line: #dce2e9;
  --page-soft: #f2f4f7;
  --page-teal: #149f98;
  --page-teal-hover: #10847e;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;


  /* 페이지 길이가 달라도 상단 메뉴의 좌우 위치를 유지합니다. */
  overflow-y: scroll;
}

body {
  margin: 0;
  background: #fbfdfe;
  color: var(--ink);
  font-family: Pretendard, Arial, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

/* JavaScript가 hidden을 붙인 화면은 항상 숨깁니다. */
[hidden] {
  display: none !important;
}

/* 모든 페이지의 본문 너비 */
.wrap {
  width: min(1180px, calc(100% - 48px));
  margin: auto;
}

/* 키보드로 이동할 때 현재 선택한 요소를 표시합니다. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--page-teal);
  outline-offset: 3px;
}

/* 화면에는 숨기고 스크린리더에는 제공하는 설명 */
.sr-only,
.apply-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}


/* ==================================================
   02. 공통 메뉴·배너·푸터
   로고와 Apply 버튼은 이곳에서 한 번만 설정합니다.
================================================== */

/* ---------- 상단 메뉴 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 78px;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex: none;
  line-height: 1;
}

/* 상단 로고 크기 */
.logo img {
  width: 190px;
  height: auto;
  max-height: 54px;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.nav a {
  font-size: 15px;
  font-weight: 600;
}

.nav a:hover {
  color: var(--teal);
}

/* 현재 페이지 메뉴: Apply는 별도 버튼으로 표시합니다. */
.nav a.active:not(.apply-nav) {
  position: relative;
  color: var(--page-teal);
}

.nav a.active:not(.apply-nav)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -12px;
  left: 0;
  height: 2px;
  background: var(--page-teal);
}

/* 모든 페이지에서 유지하는 Apply 네모 버튼 */
.site-header .nav a.apply-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 100px;
  min-height: 42px;
  margin: 0;
  padding: 10px 22px;
  border: 1px solid var(--page-teal);
  border-radius: 4px;
  background: var(--page-teal);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  transition: background-color 0.2s, border-color 0.2s;
}

.site-header .nav a.apply-nav:hover,
.site-header .nav a.apply-nav.active {
  border-color: var(--page-teal-hover);
  background: var(--page-teal-hover);
  color: #fff;
}

.site-header .nav a.apply-nav::after {
  display: none;
}

.site-header .nav a.apply-nav:focus-visible {
  outline: 3px solid var(--page-ink);
  outline-offset: 3px;
}

.menu-button {
  display: none;
  margin-left: auto;
  border: 0;
  background: none;
  color: var(--navy);
  font-size: 28px;
}

/* ---------- 하위 페이지 공통 ---------- */

.about-page,
.activities-page,
.projects-page,
.board-page,
.apply-page {
  background: #fff;
  color: var(--page-ink);
}

/* About은 별도의 소개 영역을 사용합니다. */
.activities-banner,
.projects-banner,
.board-banner,
.apply-banner {
  padding: 20px 0;
  background: var(--page-soft);
}

.activities-banner h1,
.projects-banner h1,
.board-banner h1,
.apply-banner h1 {
  margin: 0;
  color: var(--page-ink);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.035em;
}

/* ---------- 푸터 ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  min-height: 100px;
  color: var(--muted);
  font-size: 14px;
}

.footer-inner .logo img {
  width: 115px;
}

/* 하위 페이지는 네이비 푸터를 공유합니다. */
:is(
  .about-page,
  .activities-page,
  .projects-page,
  .board-page,
  .apply-page
) .site-footer {
  border-top: 0;
  background: var(--page-ink);
}

:is(
  .about-page,
  .activities-page,
  .projects-page,
  .board-page,
  .apply-page
) .footer-inner {
  min-height: 90px;
  color: #c5ceda;
}

/* 네이비 푸터에서는 로고를 흰색으로 표시합니다. */
:is(
  .about-page,
  .activities-page,
  .projects-page,
  .board-page,
  .apply-page
) .site-footer .logo img {
  filter: brightness(0) invert(1);
}


/* ==================================================
   03. Home
   메인 배너·캐릭터·공지사항
================================================== */


.home-page .nav a.active:not(.apply-nav) {
  color: var(--navy);
}

.home-page .nav a.active:not(.apply-nav)::after {
  height: 3px;
  background: #12b8b0;
}

/* ---------- 메인 배너 ---------- */

.home-hero {
  position: relative;
  overflow: hidden;
  background: #0a1a2f;
  color: #fff;
}

/* 캐릭터 앞에 올라오는 연한 회색 경계 */
.home-hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  z-index: 2;
  height: 54px;
  background: #eef1f5;
  clip-path: polygon(0 100%, 55% 100%, 100% 0, 100% 100%);
  pointer-events: none;
}

.home-hero-inner {
  position: relative;
  min-height: 570px;
}

.home-copy {
  position: relative;
  z-index: 1;
  width: 65%;
  padding: 58px 0 76px;
}

.home-kicker {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0 0 34px;
  color: #e0e8ee;
  font-size: 14px;
  line-height: 1.45;
}

.home-kicker > span:first-child {
  font-weight: 700;
  letter-spacing: 0.24em;
}

.home-kicker i {
  flex: none;
  width: 38px;
  height: 1px;
  background: #afbac7;
}

.home-copy h1 {
  margin: 0 0 23px;
  font-size: clamp(46px, 5.1vw, 73px);
  font-weight: 850;
  line-height: 1.18;
  letter-spacing: -0.06em;
  white-space: nowrap;
}

.home-copy h1 em {
  color: #1bcec3;
  font-style: normal;
}

.home-description {
  margin: 0 0 30px;
  color: #eff3f7;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.home-actions {
  display: flex;
  align-items: center;
  gap: 35px;
}

.home-primary {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  padding: 13px 22px;
  border-radius: 3px;
  background: #1bcec3;
  color: #062338;
  font-weight: 750;
}

.home-primary:hover {
  background: #56ded7;
}

.home-secondary {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid #738294;
}

.home-secondary:hover {
  color: #1bcec3;
}

/*
  홈 캐릭터 조절:
  width: 크기
  right: 값이 작아질수록 오른쪽으로 이동
  bottom: 값이 커질수록 위로 이동

  현재 직접 조절한 값을 유지했습니다.
*/
.home-mascot {
  position: absolute;
  right: -115px;
  bottom: -67px;
  width: 70%;
  pointer-events: none;
}

.home-mascot img {
  width: 100%;
  height: auto;
}

/* ---------- 공지사항 ---------- */

.home-notices {
  padding: 48px 0 52px;
  background: #fff;
}

.home-notice-grid {
  display: grid;
  grid-template-columns: 30% 1fr;
  gap: 38px;
}

.home-notice-heading > span {
  color: #00a49c;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.22em;
}

.home-notice-heading h2 {
  margin: 12px 0 20px;
  color: var(--navy);
  font-size: clamp(32px, 3.3vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.045em;
}

.home-notice-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.home-notice-top {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  border-bottom: 1px solid #dce3e9;
}

.tabs {
  display: flex;
  overflow-x: auto;
}

.home-notice-top .tabs {
  flex: 1;
  min-width: 0;
  gap: 28px;
}

.tab {
  padding: 0 2px 12px;
  border: 0;
  background: none;
  color: var(--muted);
  font-weight: 650;
  white-space: nowrap;
}

.tab.active {
  border-bottom: 2px solid var(--teal);
  color: var(--teal);
  font-weight: 800;
}

.home-more {
  padding-top: 2px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.home-more:hover {
  color: #00a49c;
}

.post-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.post-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 49px;
  border-bottom: 1px solid #f0f3f5;
}

.post-row:last-child {
  border-bottom: 0;
}

.post-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-title:hover {
  color: var(--teal);
  text-decoration: underline;
}

.post-date {
  flex: none;
  color: #8b98a8;
  font-size: 13px;
}

.empty {
  padding: 25px 0;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- 홈 푸터 ---------- */

.home-page .site-footer {
  border: 0;
  background: #f2f5f8;
}

.home-page .footer-inner {
  min-height: 70px;
  font-size: 12px;
}

/* ==================================================
   04. About
   동아리 소개·핵심 가치·주요 활동·연대체 안내
================================================== */

/* ---------- 동아리 소개 ---------- */

.about-intro {
  padding: 20px 0;
  background: var(--page-soft);
}

.about-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 45px;
  min-height: 280px;
}

.about-intro-copy,
.about-illustration {
  min-width: 0;
}

.about-kicker {
  display: block;
  margin-bottom: 22px;
  color: var(--page-teal);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.14em;
}

.about-title {
  margin: 0 0 25px;
  color: var(--page-ink);
  font-size: clamp(42px, 4.6vw, 64px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.055em;
}

.about-title em {
  color: var(--page-teal);
  font-style: normal;
}

.about-description {
  max-width: 530px;
  margin: 0;
  color: #435067;
  font-size: 17px;
  line-height: 1.85;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* 기존 About 이미지를 PC에서는 크게 표시합니다. */
.about-illustration img {
  width: 120%;
  max-width: none;
  height: auto;
  margin-left: -10%;
}

/* ---------- 핵심 가치 ---------- */

.about-details {
  padding: 65px 0;
}

.about-details-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.25fr);
  align-items: start;
  gap: 70px;
}

.about-section-copy {
  min-width: 0;
  padding-top: 18px;
}

.about-section-copy h2 {
  margin: 0 0 25px;
  color: var(--page-ink);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.045em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.about-accent {
  display: block;
  width: 44px;
  height: 3px;
  background: var(--page-teal);
}

.about-items {
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: start;
  gap: 25px;
  padding: 25px 0;
  border-bottom: 1px solid var(--page-line);
}

.about-item:first-child {
  padding-top: 0;
}

.about-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.about-item-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #e9f5f4;
  color: #087f7a;
  font-size: 19px;
  font-weight: 750;
}

.about-item-copy {
  min-width: 0;
}

.about-item h3 {
  margin: 0 0 9px;
  color: var(--page-ink);
  font-size: 21px;
  font-weight: 750;
  line-height: 1.4;
  letter-spacing: -0.03em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.about-item p {
  margin: 0;
  color: var(--page-muted);
  font-size: 16px;
  line-height: 1.8;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* ---------- 주요 활동 ---------- */

.about-programs {
  padding: 55px 0 40px;
  background: var(--page-soft);
}

.about-programs-heading h2 {
  margin: 0 0 20px;
  color: var(--page-ink);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.045em;
}

.about-program-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.about-program {
  min-width: 0;
  padding: 0 25px;
  border-left: 1px solid var(--page-line);
}

.about-program:first-child {
  padding-left: 0;
  border-left: 0;
}

.about-program:last-child {
  padding-right: 0;
}

.about-program-icon {
  display: block;
  width: 44px;
  height: 44px;
  margin-bottom: 19px;
  color: var(--page-ink);
}

.about-program h3 {
  margin: 0 0 10px;
  color: var(--page-ink);
  font-size: 20px;
  font-weight: 750;
  line-height: 1.4;
  word-break: keep-all;
}

.about-program p {
  margin: 0;
  color: #526075;
  font-size: 15px;
  line-height: 1.85;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.about-programs-bottom {
  display: flex;
  justify-content: flex-end;
  margin-top: 30px;
}

.about-activities-link {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--page-teal);
  color: var(--page-teal);
  font-size: 14px;
  font-weight: 650;
}

.about-activities-link:hover {
  color: var(--page-teal-hover);
  border-bottom-color: var(--page-teal-hover);
}

/* ---------- 연대체 안내 ---------- */

.about-union {
  padding: 32px 0;
  background: #fff;
  text-align: center;
}

.about-union p {
  margin: 0;
  color: var(--page-ink);
  font-size: 18px;
  font-weight: 600;
  word-break: keep-all;
}

.about-union strong {
  color: var(--page-teal);
  font-weight: 750;
}

/* ==================================================
   05. Activities
   모든 활동은 같은 크기의 행으로 표시합니다.
   사진 넘기기 동작은 content.js에서 처리합니다.
================================================== */

.activities-list {
  padding-top: 36px;
  padding-bottom: 60px;
}

.activity-row {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
  align-items: center;
  gap: 45px;
  padding: 45px 0;
  border-bottom: 1px solid var(--page-line);
}

.activity-row:first-child {
  padding-top: 0;
}

.activity-row:last-child {
  border-bottom: 0;
}

/* ---------- 활동 사진 ---------- */

.activity-slider {
  position: relative;
  min-width: 0;
}

.activity-slides {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e5e9ee;
  touch-action: pan-y pinch-zoom;
}

.activity-slide {
  width: 100%;
  height: 100%;
}

.activity-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.activity-photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: #e5e9ee;
  color: #7b8794;
}

.activity-photo-placeholder span {
  font-size: 70px;
  line-height: 1;
}

.activity-photo-placeholder p {
  margin: 15px 0 0;
  font-size: 16px;
}

/* 아래 사진 위치 표시 영역 36px를 제외한 중앙에 배치 */
.activity-arrow {
  position: absolute;
  top: calc((100% - 36px) / 2);
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 46px;
  padding: 0;
  border: 1px solid #e4e8ed;
  border-radius: 4px;
  background: #fff;
  color: var(--page-ink);
  font-size: 36px;
  line-height: 1;
}

.activity-prev {
  left: 14px;
}

.activity-next {
  right: 14px;
}

.activity-arrow:hover {
  background: #f0f8f7;
  color: var(--page-teal);
}

.activity-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 36px;
}

.activity-dot {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
}

.activity-dot::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ccd4dd;
}

.activity-dot.active::before {
  background: var(--page-teal);
}

/* ---------- 활동 제목과 설명 ---------- */

.activity-copy {
  min-width: 0;
  padding-bottom: 36px;
}

.activity-copy h2 {
  margin: 0 0 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--page-line);
  color: var(--page-ink);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.04em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.activity-copy p {
  margin: 0;
  color: var(--page-muted);
  font-size: 17px;
  line-height: 1.85;
  word-break: keep-all;
  overflow-wrap: anywhere;
}


/* ==================================================
   06. Projects
   프로젝트 목록과 분석 결과 화면
================================================== */

/* 상단 메뉴·본문·푸터를 배치하고 본문이 남은 높이를 채웁니다. */
.projects-page,
.activities-page {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100dvh;
}

.projects-page > main,
.activities-page > main {
  min-width: 0;
}

.projects-page > .site-footer,
.activities-page > .site-footer {
  margin: 0;
}

/* ---------- 내부 화면 선택 버튼 ---------- */

.projects-tabs {
  display: flex;
  gap: 28px;
  margin-bottom: 40px;
  overflow-x: auto;
  border-bottom: 1px solid var(--page-line);
}

.projects-tab {
  flex: none;
  padding: 12px 8px 15px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--page-ink);
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

.projects-tab:hover {
  color: var(--page-teal);
}

.projects-tab.active {
  border-bottom-color: var(--page-teal);
  color: var(--page-teal);
}

.projects-tab:focus-visible {
  outline-offset: -3px;
}

/* ---------- 프로젝트 목록 ---------- */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 35px;
  row-gap: 45px;
}

.project-entry {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: start;
  gap: 22px;
  min-width: 0;
  padding-top: 25px;
  border-top: 1px solid #aeb8c5;
}

.project-entry-copy {
  min-width: 0;
}

.project-category {
  display: block;
  margin-bottom: 13px;
  color: var(--page-teal);
  font-size: 13px;
  font-weight: 750;
}

.project-entry h2 {
  margin: 0 0 20px;
  color: var(--page-ink);
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.045em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.project-entry p {
  min-height: 120px;
  margin: 0;
  color: var(--page-muted);
  font-size: 16px;
  line-height: 1.85;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.project-entry-image {
  display: grid;
  place-items: center;
  min-width: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--page-soft);
}

.project-entry-image span {
  padding: 15px;
  color: #7b8794;
  font-size: 14px;
  text-align: center;
  word-break: keep-all;
}

/* 프로젝트 이미지는 잘리지 않게 전체를 보여줍니다. */
.project-entry-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ---------- 분석 결과 ---------- */

.project-analysis-placeholder {
  display: grid;
  place-items: center;
  min-height: 550px;
  padding: 30px;
  border: 1px solid var(--page-line);
  background: var(--page-soft);
  color: #7b8794;
  text-align: center;
}

.project-analysis-frame {
  display: block;
  width: 100%;
  height: 800px;
  border: 1px solid var(--page-line);
  background: #fff;
}


/* ==================================================
   07. Board
   방문자용 목록·검색·상세 화면
   작성 화면은 admin.html에서 관리합니다.
================================================== */

.board-content {
  min-height: 580px;
  padding-top: 32px;
  padding-bottom: 65px;
}

/* ---------- 상단 고정 공지 ---------- */

.board-pinned {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 30px;
}

.board-pin {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  min-height: 135px;
  padding: 22px 25px;
  border: 0;
  border-left: 4px solid var(--page-teal);
  background: var(--page-soft);
  text-align: left;
}

/* 실제 공지는 링크이며, 빈 자리에는 hover를 적용하지 않습니다. */
a.board-pin:hover {
  background: #eaf3f3;
}

.board-pin-label {
  margin-bottom: 9px;
  color: var(--page-teal);
  font-size: 13px;
  font-weight: 750;
}

.board-pin-title {
  color: var(--page-ink);
  font-size: 21px;
  font-weight: 750;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.board-pin-date {
  margin-top: 12px;
  color: #8793a2;
  font-size: 13px;
}

.board-pin-placeholder .board-pin-title {
  color: #7b8794;
  font-weight: 500;
}

/* ---------- 분류와 검색 ---------- */

.board-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  border-bottom: 1px solid var(--page-line);
}

.board-filters {
  display: flex;
  align-self: stretch;
  gap: 22px;
}

.board-filters button {
  padding: 15px 5px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--page-muted);
  font-weight: 650;
  white-space: nowrap;
}

.board-filters button.active {
  border-bottom-color: var(--page-teal);
  color: var(--page-teal);
}

.board-search {
  display: flex;
  gap: 8px;
  padding-bottom: 12px;
}

.board-search input {
  width: 250px;
  min-width: 0;
  padding: 10px 13px;
  border: 1px solid var(--page-line);
  border-radius: 3px;
  background: #fff;
  color: var(--page-ink);
}

.board-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 22px;
  border: 1px solid var(--page-teal);
  border-radius: 3px;
  background: var(--page-teal);
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}

.board-button:hover {
  border-color: var(--page-teal-hover);
  background: var(--page-teal-hover);
}

/* ---------- 게시글 목록 ---------- */

.board-posts {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.board-post-item {
  display: grid;
  grid-template-columns: 85px minmax(0, 1fr) 110px;
  align-items: center;
  gap: 20px;
  min-height: 65px;
  padding: 14px 15px;
  border-bottom: 1px solid #e1e5eb;
}

.board-post-category {
  color: var(--page-teal);
  font-size: 14px;
}

.board-post-link {
  overflow: hidden;
  color: var(--page-ink);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.board-post-link:hover {
  color: var(--page-teal);
}

.board-post-item time {
  color: #8793a2;
  font-size: 13px;
  text-align: right;
}

.board-empty {
  padding: 65px 20px;
  border-bottom: 1px solid #e1e5eb;
  color: #8793a2;
  text-align: center;
}

/* 글쓰기 버튼을 제거했으므로 페이지 번호만 중앙에 배치합니다. */
.board-bottom {
  margin-top: 25px;
}

.board-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
}

.board-pagination button {
  min-width: 35px;
  min-height: 35px;
  border: 1px solid var(--page-line);
  border-radius: 3px;
  background: #fff;
  color: var(--page-muted);
}

.board-pagination button.active {
  border-color: var(--page-teal);
  background: var(--page-teal);
  color: #fff;
}

/* ---------- 게시글 상세 ---------- */

.board-back {
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--page-teal);
  font-weight: 700;
}

.board-detail {
  margin-top: 25px;
}

.board-detail-meta {
  color: #8793a2;
  font-size: 14px;
}

.board-detail h2 {
  margin: 15px 0 0;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--page-line);
  font-size: 32px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.board-detail-body {
  min-height: 300px;
  padding: 30px 0;
  line-height: 1.9;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}


/* ==================================================
   08. Apply
   모집 기간 외 안내와 인스타그램 버튼
================================================== */

.apply-closed {
  padding: 75px 0;
}

.apply-closed-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: center;
  gap: 45px;
  max-width: 1050px;
  min-height: 500px;
}

.apply-closed-copy {
  min-width: 0;
  text-align: center;
}

.apply-kicker {
  display: block;
  margin-bottom: 28px;
  color: var(--page-teal);
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0.16em;
}

.apply-closed-copy h2 {
  margin: 0 0 25px;
  color: var(--page-ink);
  font-size: clamp(32px, 3.4vw, 46px);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.045em;
  word-break: keep-all;
}

.apply-closed-copy p {
  max-width: 550px;
  margin: 0 auto;
  color: var(--page-muted);
  font-size: 19px;
  line-height: 1.8;
  word-break: keep-all;
}

.apply-board-link:hover {
  color: var(--page-teal);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.apply-instagram-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 100%;
  min-height: 54px;
  margin-top: 32px;
  padding: 14px 22px;
  border: 1px solid var(--page-teal);
  border-radius: 4px;
  background: var(--page-teal);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  transition: background-color 0.2s, border-color 0.2s;
}

.apply-instagram-button:hover {
  border-color: var(--page-teal-hover);
  background: var(--page-teal-hover);
}

.apply-instagram-button svg {
  flex: none;
}

.apply-instagram-button > span[aria-hidden="true"] {
  flex: none;
  font-size: 23px;
}

.apply-closed-art img {
  width: 100%;
  height: auto;
}


/* ==================================================
   09. 관리자에서 등록한 콘텐츠
   빈 목록 안내·프로젝트 링크·설명 줄바꿈
================================================== */

.managed-empty {
  grid-column: 1 / -1;
  padding: 55px 20px;
  color: #8793a2;
  text-align: center;
}

.managed-project-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--page-teal);
  font-size: 14px;
  font-weight: 700;
}

.managed-project-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* 관리자에서 입력한 줄바꿈을 방문자 화면에서도 유지합니다. */
.project-entry-copy p,
.activity-copy p {
  white-space: pre-wrap;
}


/* ==================================================
   10. 태블릿 대응
   화면 너비에 따라 기존 PC 배치를 조정합니다.
================================================== */

/* ---------- Home: 1050px 이하 ---------- */

@media (max-width: 1050px) {
  .home-copy {
    width: 70%;
  }

  .home-copy h1 {
    font-size: clamp(39px, 5.5vw, 60px);
  }

  .home-hero-inner {
    min-height: 520px;
  }

  .home-mascot {
    right: -75px;
    bottom: -20px;
    width: 70%;
  }
}

/* ---------- Projects: 1000px 이하 ---------- */

@media (max-width: 1000px) {
  .projects-grid {
    grid-template-columns: 1fr;
    row-gap: 35px;
  }

  .project-entry {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 30px;
  }

  .project-entry h2 {
    font-size: 30px;
  }
}

/* ---------- 공통·About·Activities·Apply: 900px 이하 ---------- */

@media (max-width: 900px) {
  .nav {
    gap: 15px;
  }

  .about-intro-grid {
    gap: 20px;
  }

  .about-details-grid {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 35px;
  }

  .about-item {
    grid-template-columns: 35px minmax(0, 1fr);
    gap: 12px;
  }

  .about-item p {
    grid-column: 2;
    padding-left: 0;
    border-left: 0;
  }

  .activity-row {
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    gap: 28px;
  }

  .activity-copy h2 {
    font-size: 28px;
  }

  .activity-copy p {
    font-size: 16px;
  }

  .apply-closed-grid {
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 25px;
  }

  .apply-closed-copy h2 {
    font-size: 36px;
  }

  .apply-closed-copy p {
    font-size: 17px;
  }
}

/* ---------- Board: 800px 이하 ---------- */

@media (max-width: 800px) {
  .board-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .board-search input {
    flex: 1;
    width: auto;
  }
}


/* ==================================================
   11. 모바일 대응
   650px 이하에서 사용하는 스타일입니다.
   모바일만 바꾸려면 이 구역을 수정하세요.
================================================== */

@media (max-width: 650px) {

  /* ---------- 공통 메뉴·배너·푸터 ---------- */

  .wrap {
    width: calc(100% - 32px);
  }

  .header-inner,
  .home-page .header-inner {
    min-height: 68px;
  }

  .logo img {
    width: 150px;
    max-height: 44px;
  }

  .menu-button {
    display: block;
  }

  .nav {
    position: absolute;
    top: 68px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px 24px;
    background: #fff;
    box-shadow: 0 14px 22px #0b1f3b18;
  }

  .nav.open {
    display: flex;
  }

  .nav a.active:not(.apply-nav)::after {
    display: none;
  }

  /* 모바일 메뉴에서도 Apply 네모 버튼을 유지합니다. */
  .site-header .nav a.apply-nav {
    width: 100%;
    margin-top: 6px;
  }

  .activities-banner,
  .projects-banner,
  .board-banner,
  .apply-banner {
    padding: 16px 0;
  }

  .activities-banner h1,
  .projects-banner h1,
  .board-banner h1,
  .apply-banner h1 {
    font-size: 26px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 25px 0;
  }

  /* ---------- Home ---------- */

  .home-hero-inner {
    min-height: 660px;
  }

  .home-copy {
    width: 100%;
    padding: 38px 0 0;
  }

  .home-kicker {
    gap: 13px;
    margin-bottom: 27px;
    font-size: 11px;
  }

  .home-kicker i {
    width: 23px;
  }

  .home-copy h1 {
    margin-bottom: 17px;
    font-size: clamp(31px, 8vw, 49px);
    line-height: 1.23;
    white-space: normal;
  }

  .home-description {
    margin-bottom: 22px;
    font-size: 17px;
  }

  .home-actions {
    gap: 24px;
    font-size: 14px;
  }

  .home-primary {
    gap: 15px;
    padding: 11px 15px;
  }

  .home-mascot {
    position: absolute;
    right: -28px;
    bottom: 0;
    width: min(88%, 380px);
  }

  .home-hero::after {
    height: 27px;
  }

  .home-notices {
    padding: 34px 0 40px;
  }

  .home-notice-grid {
    grid-template-columns: 1fr;
    gap: 27px;
  }

  .home-notice-heading h2 {
    margin: 8px 0 10px;
    font-size: 34px;
  }

  .home-notice-heading p {
    font-size: 14px;
  }

  .home-notice-heading p br {
    display: none;
  }

  .home-notice-top .tabs {
    gap: 21px;
  }

  .home-notice-content .post-title {
    font-size: 14px;
  }

  .home-notice-content .post-date {
    font-size: 11px;
  }

  .home-page .footer-inner {
    min-height: 90px;
    gap: 10px;
  }

  /* ---------- About ---------- */

  .about-intro {
    padding: 40px 0 30px;
  }

  .about-intro-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    min-height: auto;
  }

  .about-kicker {
    margin-bottom: 16px;
    font-size: 12px;
  }

  .about-title {
    margin-bottom: 20px;
    font-size: 42px;
  }

  .about-description {
    font-size: 16px;
  }

  .about-illustration {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
  }

  /* 모바일에서는 이미지가 본문 밖으로 넘치지 않게 합니다. */
  .about-illustration img {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
  }

  .about-details {
    padding: 40px 0 45px;
  }

  .about-details-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-section-copy {
    padding-top: 0;
  }

  .about-section-copy h2 {
    margin-bottom: 18px;
    font-size: 30px;
  }

  .about-item {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 15px;
    padding: 22px 0;
  }

  .about-item-number {
    width: 36px;
    height: 36px;
    font-size: 17px;
  }

  .about-item h3 {
    font-size: 19px;
  }

  .about-item p {
    font-size: 15px;
  }

  .about-programs {
    padding: 40px 0 30px;
  }

  .about-programs-heading h2 {
    font-size: 30px;
  }

  .about-program-grid {
    margin-top: 30px;
    gap: 28px 0;
  }

  .about-program {
    padding: 0 15px;
  }

  .about-program-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 15px;
  }

  .about-program h3 {
    font-size: 18px;
  }

  .about-program p {
    font-size: 14px;
  }

  .about-programs-bottom {
    margin-top: 25px;
  }

  .about-union {
    padding: 25px 0;
  }

  .about-union p {
    font-size: 16px;
  }

  /* ---------- Activities ---------- */

  .activities-list {
    padding-top: 25px;
    padding-bottom: 35px;
  }

  .activity-row {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 30px 0;
  }

  .activity-copy {
    padding-bottom: 0;
  }

  .activity-copy h2 {
    margin-bottom: 14px;
    padding-bottom: 14px;
    font-size: 26px;
  }

  .activity-arrow {
    width: 36px;
    height: 40px;
    font-size: 30px;
  }

  .activity-prev {
    left: 9px;
  }

  .activity-next {
    right: 9px;
  }

  .activity-photo-placeholder span {
    font-size: 48px;
  }

  .activity-photo-placeholder p {
    font-size: 14px;
  }

  /* ---------- Projects ---------- */

  .projects-content {
    padding-top: 18px;
    padding-bottom: 45px;
  }

  .projects-tabs {
    gap: 15px;
    margin-bottom: 28px;
  }

  .projects-tab {
    padding: 12px 4px;
    font-size: 14px;
  }

  .project-entry {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 22px;
  }

  .project-entry h2 {
    margin-bottom: 14px;
    font-size: 28px;
  }

  .project-entry p {
    min-height: 0;
  }

  .project-entry-image {
    aspect-ratio: 16 / 9;
  }

  .project-analysis-placeholder {
    min-height: 400px;
  }

  /* ---------- Board ---------- */

  .board-content {
    padding-top: 25px;
    padding-bottom: 45px;
  }

  .board-pinned {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .board-pin {
    min-height: 115px;
    padding: 18px 20px;
  }

  .board-pin-title {
    font-size: 18px;
  }

  .board-post-item {
    grid-template-columns: 55px minmax(0, 1fr);
    gap: 8px 12px;
    padding: 15px 0;
  }

  .board-post-item time {
    grid-column: 2;
    text-align: left;
    font-size: 12px;
  }

  .board-detail h2 {
    font-size: 26px;
  }

  /* ---------- Apply ---------- */

  .apply-closed {
    padding: 50px 0 45px;
  }

  .apply-closed-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    min-height: auto;
  }

  .apply-kicker {
    margin-bottom: 20px;
    font-size: 12px;
  }

  .apply-closed-copy h2 {
    font-size: 32px;
  }

  .apply-closed-copy p {
    font-size: 16px;
  }

  .apply-instagram-button {
    gap: 9px;
    margin-top: 25px;
    padding: 13px 16px;
    font-size: 15px;
  }

  .apply-closed-art {
    width: 200px;
    margin: 0 auto;
  }
}