/* 공개 페이지 — 히어로 · 행사 카드 그리드 · 필터 · 상세 (토큰은 application.css) */

/* 홈 상단(10/26 대표님 레퍼런스): 둥근 사진 틀을 꽉 채운 풍경 + 위쪽 큰 영문 + 왼쪽 아래 브로셔 문구·버튼 + 오른쪽 아래 대표 행사 포스터 카드.
   글자는 풍경 사진 위에만 얹는다(포스터 위에는 얹지 않는다). 아래로 갈수록 어두워지는 그라데이션으로 흰 글자를 읽히게 */
.hero { padding-top: 16px; }
.hero__stage { position: relative; overflow: hidden; border-radius: 22px; min-height: clamp(440px, 68vh, 640px); color: #fff; display: flex; align-items: flex-end; background: #2b4a5e; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0) 35%, rgba(0,20,0,0.55) 100%); }
.hero__brand { position: absolute; z-index: 1; top: 18px; left: 0; right: 0; margin: 0; text-align: center; font-weight: 800; letter-spacing: -0.03em; line-height: 1; font-size: clamp(2.6rem, 10.5vw, 8.5rem); color: rgba(255,255,255,0.92); white-space: nowrap; }
.hero__tagline { position: absolute; z-index: 1; top: calc(clamp(2.6rem, 10.5vw, 8.5rem) + 30px); right: 28px; margin: 0; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; color: rgba(255,255,255,0.85); }
.hero__copy { position: relative; z-index: 1; padding: 0 28px 32px; max-width: 620px; }
.hero__title { font-size: clamp(1.9rem, 4.6vw, 3rem); font-weight: 800; line-height: 1.2; margin: 0 0 10px; letter-spacing: -0.02em; color: #fff; }
.hero__sub { font-size: clamp(0.95rem, 1.8vw, 1.1rem); margin: 0 0 20px; color: rgba(255,255,255,0.9); }
.hero__cta { display: inline-flex; align-items: center; gap: 10px; background: #fff; color: var(--ink); font-weight: 700; border-radius: 999px; padding: 6px 18px 6px 6px; }
.hero__cta:hover { text-decoration: none; color: var(--accent); }
.hero__cta-dot { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; }
.hero__figure { position: absolute; z-index: 1; right: 24px; bottom: 24px; width: 168px; color: #fff; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.35); border-radius: 16px; padding: 8px; backdrop-filter: blur(6px); }
.hero__figure:hover { text-decoration: none; }
.hero__poster { display: block; aspect-ratio: 210 / 297; border-radius: 10px; overflow: hidden; background: #fff; }
.hero__poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__poster img.is-poster { object-fit: contain; }
.hero__caption { display: block; margin-top: 8px; font-weight: 700; font-size: 0.85rem; line-height: 1.3; }
.hero__caption small { display: block; font-weight: 500; color: rgba(255,255,255,0.85); }
.btn--lg { padding: 13px 22px; font-size: 1.05rem; }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light:hover { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-soft); }
.btn--block { display: block; width: 100%; text-align: center; }
.btn[disabled] { background: var(--idle-bg); color: var(--idle-ink); border-color: var(--idle-bg); cursor: default; }
@media (max-width: 600px) {
  .hero__stage { min-height: 420px; border-radius: 16px; }
  .hero__figure { display: none; }
  .hero__tagline { right: 16px; font-size: 0.65rem; }
  .hero__copy { padding: 0 18px 22px; }
  .section--about .btn { padding: 7px 14px; font-size: 0.875rem; line-height: 1.3; }
  h2 { font-size: 1.2rem; }
  .section__more { font-size: 0.875rem; }
  .tab { font-size: 0.95rem; padding: 8px 12px; }
  .chip-link { font-size: 0.85rem; padding: 6px 12px; }
}

.section { margin: 0 0 48px; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.section__head h2 { margin: 0; }
.section__more { font-weight: 600; }
.section--about { border-top: 1px solid var(--line); padding-top: 32px; }

.page-head { margin-bottom: 20px; }
.page-head h1 { margin-bottom: 12px; }

/* 필터 바: 탭 + 유형 칩. 휴대폰에서는 가로 스크롤 */
.filters { display: grid; gap: 10px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.tab { padding: 10px 14px; font-weight: 600; color: var(--ink-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab:hover { color: var(--ink); text-decoration: none; }
.tab[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip-link { flex: 0 0 auto; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: 0.95rem; }
.chip-link:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.chip-link[aria-current="page"] { background: var(--accent); color: #fff; border-color: var(--accent); }

/* 카드 그리드 */
.event-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.badge { position: absolute; top: 10px; left: 10px; background: rgba(255,255,255,0.92); color: var(--accent); font-size: 0.78rem; font-weight: 700; padding: 4px 9px; border-radius: 999px; }
.badge--inline { position: static; background: var(--accent-soft); }
.chip { display: inline-block; font-size: 0.8rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; justify-self: start; }
.chip--open { background: var(--accent); color: #fff; }
.chip--ongoing { background: var(--good-bg); color: var(--good-ink); }
.chip--closed { background: var(--warn-bg); color: var(--warn-ink); }
.chip--ended { background: var(--idle-bg); color: var(--idle-ink); }
.chip--scheduled { background: var(--accent-soft); color: var(--accent); }
.empty { color: var(--ink-muted); padding: 40px 0; text-align: center; }

/* 상세 */
/* 위: 포스터(왼쪽, 통째로) + 제목(오른쪽, 가운데). 휴대폰은 포스터 → 제목 */
.event__top { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 40px; align-items: center; margin-bottom: 32px; }
.event__media { border-radius: var(--radius); overflow: hidden; background: var(--accent-soft); display: flex; justify-content: center; }
.event__media img { width: 100%; height: auto; max-height: 72vh; object-fit: contain; display: block; }
.event__labels { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.event__head h1 { margin-bottom: 8px; font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.2; letter-spacing: -0.02em; }
.event__period { color: var(--ink); font-size: 1.1rem; font-weight: 600; margin: 0 0 4px; }
.event__venue { color: var(--ink-muted); margin: 0; }
.event__layout { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
.event-info { display: grid; grid-template-columns: 96px 1fr; gap: 10px 16px; margin: 0 0 28px; padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.event-info dt { color: var(--ink-muted); font-weight: 600; }
.event-info dd { margin: 0; }
.prose { margin-bottom: 28px; }
.prose h2 { font-size: 1.2rem; margin-bottom: 8px; }
.prose p { margin: 0 0 0.8em; }
.prose ul, .prose ol, .consent__body ul, .consent__body ol { margin: 0 0 0.8em; padding-left: 1.3em; }
.apply-box { position: sticky; top: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 10px; box-shadow: var(--shadow); }
.apply-box__state { margin: 0; }
.small { font-size: 0.875rem; margin: 0; }
@media (max-width: 760px) {
  .event__top { grid-template-columns: 1fr; gap: 16px; margin-bottom: 24px; }
  .event__media img { max-height: none; }
  .event__layout { grid-template-columns: 1fr; }
  .event-info { grid-template-columns: 1fr; gap: 4px 0; }
  .event-info dt { margin-top: 8px; }
  .apply-box { position: fixed; left: 0; right: 0; bottom: 0; top: auto; border-radius: 12px 12px 0 0; box-shadow: 0 -4px 16px rgba(0,0,0,0.08); z-index: 10; }
  .apply-box .btn--ghost { display: none; }
  .apply-box__state { display: none; }
  .event { padding-bottom: 96px; }
}

/* 신청 폼·안내·완료 — 테마와 무관한 단일 화면 */
.apply-page { max-width: 640px; margin: 0 auto; }
.apply-head__back { margin: 0 0 8px; font-size: 0.95rem; }
.form--apply { max-width: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.form .req { color: var(--bad-ink); text-decoration: none; }
.form [aria-invalid="true"] { border-color: var(--bad-ink); }
.field__error { color: var(--bad-ink); font-size: 0.875rem; }
.consent { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; margin-top: 16px; }
.consent legend { font-weight: 700; padding: 0 4px; }
.consent__body { max-height: 180px; overflow: auto; font-size: 0.9rem; color: var(--ink-muted); }
.consent__body p { margin: 0 0 0.5em; }
.form .check { display: flex; gap: 8px; align-items: center; margin: 0; font-weight: 500; }
.form input[type="checkbox"], .form input[type="radio"] { width: 18px; height: 18px; accent-color: var(--accent); flex: 0 0 auto; margin: 0; }
.form .group { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; margin: 0 0 12px; }
.form .group legend { font-weight: 700; padding: 0 4px; }
/* 고르는 항목(회차 선택·여러 개 고르기): 줄마다 눌러지는 카드, 고르면 녹색 테두리 */
.form .choices { border: 0; padding: 0; margin: 10px 0 4px; display: grid; gap: 8px; min-width: 0; }
.form .choices legend { font-weight: 600; padding: 0; margin-bottom: 8px; }
.form .choices .check { margin: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); cursor: pointer; align-items: flex-start; transition: border-color 0.15s, background 0.15s; }
.form .choices .check:hover { border-color: var(--accent); }
.form .choices .check:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.form .choices .check input { margin-top: 2px; }
.form .choices .check > span { display: grid; gap: 2px; }
/* 사진 올리기: 점선 상자 + 버튼 모양 */
.form input[type="file"] { width: 100%; font: inherit; font-size: 0.95rem; color: var(--ink-muted); padding: 14px; border: 1px dashed var(--line); border-radius: 10px; background: var(--bg, #fafaf7); cursor: pointer; }
.form input[type="file"]:hover { border-color: var(--accent); }
.form input[type="file"]::file-selector-button { font: inherit; font-weight: 600; margin-right: 12px; padding: 8px 14px; border: 1px solid var(--accent); border-radius: 8px; background: var(--card); color: var(--accent); cursor: pointer; }
.form input[type="file"]::file-selector-button:hover { background: var(--accent-soft); }
.hp { position: absolute; left: -9999px; }
.apply-notice { font-size: 1.05rem; }

/* 회사 소개 — 포트폴리오 (카드 모양은 행사 목록 .card/.ocard 를 그대로 쓴다) */
.portfolio h2 { font-size: 1.3rem; margin: 32px 0 16px; }
.portfolio .badge { justify-self: start; }

/* 회사 소개 — 마크다운을 "## 제목" 단위로 나눠 섹션마다 모양을 입힌다(내용은 관리자 → 콘텐츠 한 곳) */
.about-head { padding: 24px 0 40px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.about-head__intro { max-width: 760px; margin-bottom: 24px; }
.about-head__intro > p:first-child { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; line-height: 1.35; letter-spacing: -0.02em; margin-bottom: 20px; }
.about-head__intro > p { font-size: 1.05rem; line-height: 1.75; color: var(--ink-muted); }
.about-head__intro > p:first-child { color: var(--ink); }
.about-head__intro > ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 24px; max-width: none; }
.about-head__intro > ul li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; font-size: 0.95rem; line-height: 1.6; }
.about-head__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.about-stats { margin: 0; font-size: 1.05rem; color: var(--ink-muted); }
.about-stats strong { font-size: 1.6rem; color: var(--accent); margin-right: 2px; }
.about-section { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; padding: 36px 0; border-bottom: 1px solid var(--line); }
.about-section h2 { font-size: 1.25rem; margin: 0; }
.about-section__body > :last-child { margin-bottom: 0; }
.about-section__body ul { padding-left: 1.2em; margin: 0; line-height: 1.8; }
/* "**제목** 설명" 목록은 카드 격자 (사업 분야) */
.about-section__body ul:has(> li > strong:first-child) { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; line-height: 1.6; }
.about-section__body li:has(> strong:first-child) { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; color: var(--ink-muted); font-size: 0.95rem; }
.about-section__body li > strong:first-child { display: block; color: var(--accent); font-size: 1rem; margin-bottom: 6px; }
.chip-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.about-section__body .chip-list { padding: 0; }
.chip-list li { padding: 7px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 0.95rem; }
.about-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin: 48px 0 16px; padding: 32px; border-radius: 16px; background: var(--accent); color: #fff; }
.about-cta h2 { color: #fff; margin: 0 0 6px; font-size: 1.4rem; }
.about-cta p { margin: 0; opacity: 0.9; }
.about-cta__actions { display: flex; align-items: center; gap: 16px; font-weight: 600; }
@media (max-width: 760px) {
  .about-head__intro > ul { grid-template-columns: 1fr; }
  .about-section { grid-template-columns: 1fr; gap: 12px; padding: 28px 0; }
  .about-cta { padding: 24px 20px; }
}
