/* ============================================================
   갑천 하나로 트레킹 페스티벌 테마 — 자체 스타일시트
   (게시판 스킨은 SmartCompany의 css/tailwind.css 를 그대로 사용하며,
    이 파일은 새로 제작하는 헤더/푸터/홈/콘텐츠 페이지 전용입니다)
   ============================================================ */

:root {
    --gp-primary: #2e5339;
    --gp-primary-dark: #1f3a29;
    --gp-secondary: #3e7c97;
    --gp-accent: #d9622b;
    --gp-surface: #ffffff;
    --gp-surface-2: #fbf9f3;
    --gp-line: #dad4c2;
    --gp-muted: #5c6459;
    --gp-foreground: #20261f;
    --gp-header-bg: var(--gp-primary-dark);
    --gp-font: Pretendard, -apple-system, BlinkMacSystemFont, "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
}

.gp-root, .gp-root * { box-sizing: border-box; }
.gp-root { overflow-x: hidden; }

/* ── 여백(gutter) 기준 ────────────────────────────────────────────────
   상속된 tailwind.css 는 #wrapper 에 !important 로 패딩을 주는데(모바일 1rem,
   640px↑ 1.5rem 2rem), 이러면 홈(0)과 서브페이지(16~32px)의 여백이 어긋납니다.
   그래서 #wrapper 는 0으로 만들고, 여백은 #container 한 곳에서만 줍니다.
   - 홈: 섹션마다 .gp-container 가 자체 여백을 가지므로 #container 는 0
   - 서브/게시판: #container 가 좌우 20px + 하단 여백을 담당.
     하단 여백이 없으면 그누보드 기본 스킨(글쓰기/목록/글보기)이 푸터에 딱 붙습니다. */
#wrapper { max-width: none !important; padding: 0 !important; }
#container { padding: 0 20px 72px; box-sizing: border-box; }
body.is-index #container { padding: 0; }
@media (max-width: 767px) {
    #container { padding-bottom: 48px; }
}

/* #container_wr(그누보드 코어)가 max-width:1240px로 제한되어 있어,
   히어로/배너류는 뷰포트 전체 폭으로 뚫어서 배치합니다.
   아래는 JS 적용 전에도 어긋나 보이지 않도록 하는 기본값이고,
   스크롤바 폭 오차는 head.php 의 gp_fullbleed() 가 실측해 보정합니다. */
.gp-full-bleed { width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }

/* 고정 히어로 배너 (참가신청 링크 전체 클릭) */
.gp-hero-fixed { line-height: 0; }
.gp-hero-fixed a { display: block; }
.gp-hero-fixed img { display: block; width: 100%; height: auto; }

/* 동적 히어로 — 배경(캐릭터 포함)+로고+날짜+버튼을 분리된 레이어로 쌓아 애니메이션 */
.gp-hero-dynamic { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #cddc8a; }
.gp-hero-dynamic-contained { border-radius: 20px; margin-top: 32px; }
.gp-hero-dynamic-bg { position: absolute; inset: 0; background-image: var(--gp-hero-bg-img); background-size: cover; background-position: center; animation: gp-hero-kenburns 16s ease-in-out infinite alternate; }
.gp-hero-dynamic-content { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 20px; text-align: center; }
.gp-hero-dynamic-title { width: 44%; min-width: 220px; max-width: 620px; height: auto; animation: gp-hero-fadein-scale .9s ease-out both; }
.gp-hero-dynamic-date { width: 34%; min-width: 180px; max-width: 460px; height: auto; animation: gp-hero-fadein-up .9s ease-out .3s both; }
.gp-hero-dynamic-btn { display: inline-block; animation: gp-hero-fadein-up .9s ease-out .6s both, gp-hero-pulse 2.6s ease-in-out 1.5s infinite; transition: transform .2s ease; }
.gp-hero-dynamic-btn:hover { transform: scale(1.07); }
.gp-hero-dynamic-btn img { display: block; width: 15vw; min-width: 130px; max-width: 220px; height: auto; }

@keyframes gp-hero-kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }
@keyframes gp-hero-fadein-scale { from { opacity: 0; transform: scale(.82); } to { opacity: 1; transform: scale(1); } }
@keyframes gp-hero-fadein-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes gp-hero-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@media (prefers-reduced-motion: reduce) {
    .gp-hero-dynamic-bg, .gp-hero-dynamic-title, .gp-hero-dynamic-date, .gp-hero-dynamic-btn { animation: none; }
}
.gp-root {
    font-family: var(--gp-font);
    color: var(--gp-foreground);
    -webkit-font-smoothing: antialiased;
}
.gp-root a { text-decoration: none; color: inherit; }
.gp-container { max-width: 1152px; margin: 0 auto; padding: 0 20px; }

/* ---------- 헤더 (2단: 검정 바 = 타이틀 중앙, 흰색 바 = 메뉴 중앙) ---------- */
.gp-header { position: sticky; top: 0; z-index: 100; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.gp-header-top { position: relative; background: #fff; border-bottom: 1px solid var(--gp-line); }
/* 주의: .gp-container 와 같은 요소에 함께 쓰이는 클래스는 padding 단축속성을 쓰면
   .gp-container 의 좌우 여백(0 20px)이 지워집니다. 반드시 상/하만 지정하세요. */
.gp-header-top-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 26px; padding-top: 14px; padding-bottom: 14px; }
/* .gp-root a{color:inherit} 규칙(0,1,1)이 단일 클래스 선택자(0,1,0)보다 우선순위가
   높아 흰색이 먹히지 않았습니다 — .gp-header-top 을 붙여 명시도를 올렸습니다. */
.gp-header-top .gp-header-title { color: #fff; font-size: 18px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; flex-shrink: 0; }
.gp-logo { display: flex; align-items: center; }
.gp-logo img { height: 42px; width: auto; max-width: 100%; object-fit: contain; display: block; }
.gp-header-right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.gp-header-icon-link { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 999px; color: var(--gp-muted); }
.gp-header-icon-link:hover { color: var(--gp-primary); background: var(--gp-surface-2); }
.gp-btn-accent { display: inline-block; background: var(--gp-accent); color: #fff !important; font-weight: 700; font-size: 15px; padding: 9px 20px; border-radius: 999px; border: none; cursor: pointer; }
.gp-btn-accent:hover { opacity: .9; }
.gp-mobile-toggle { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 999px; border: none; background: transparent; color: var(--gp-foreground); cursor: pointer; font-size: 19px; }

/* PC 전용 "전체메뉴" 버튼 — 모바일 햄버거와 서로 자리를 바꿔가며 표시됩니다 */
.gp-fullmenu-toggle { display: none; align-items: center; justify-content: center; width: 38px; height: 38px; background: var(--gp-surface-2); border: 1px solid var(--gp-line); border-radius: 999px; color: var(--gp-foreground); padding: 0; cursor: pointer; }
.gp-fullmenu-toggle:hover, .gp-fullmenu-toggle.open { background: var(--gp-line); }
.gp-fullmenu-toggle-lines { display: flex; flex-direction: column; justify-content: center; gap: 4px; width: 16px; height: 14px; }
.gp-fullmenu-toggle-lines span { display: block; height: 2px; width: 100%; border-radius: 1px; background: var(--gp-foreground); transition: transform .25s ease, opacity .2s ease, width .25s ease; }
.gp-fullmenu-toggle-lines span:nth-child(2) { width: 70%; align-self: flex-end; }
.gp-fullmenu-toggle.open .gp-fullmenu-toggle-lines span:nth-child(1) { transform: translateY(6px) rotate(45deg); width: 100%; }
.gp-fullmenu-toggle.open .gp-fullmenu-toggle-lines span:nth-child(2) { opacity: 0; }
.gp-fullmenu-toggle.open .gp-fullmenu-toggle-lines span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); width: 100%; }
@media (min-width: 700px) {
    .gp-fullmenu-toggle { display: flex; }
    .gp-mobile-toggle { display: none; }
}

/* 헤더 1줄에 로고와 함께 나란히 놓이는 메뉴 — 좁은 화면에서는 숨기고 햄버거만 사용 */
.gp-nav { display: none; list-style: none; margin: 0; padding: 0; align-items: center; gap: 4px; }
@media (min-width: 700px) { .gp-nav { display: flex; } }
.gp-nav > li { position: relative; }
.gp-nav > li > a { display: flex; align-items: center; padding: 8px 14px; font-size: 16px; font-weight: 700; letter-spacing: .01em; color: var(--gp-foreground); border-radius: 8px; }
.gp-nav > li:hover > a, .gp-nav > li.active > a { color: var(--gp-primary); background: var(--gp-surface-2); }
.gp-nav-sub { visibility: hidden; opacity: 0; position: absolute; left: 50%; top: 100%; transform: translateX(-50%) translateY(4px); width: 200px; background: #fff; border: 1px solid var(--gp-line); border-radius: 12px; box-shadow: 0 12px 28px rgba(0,0,0,.14); padding: 8px; z-index: 50; transition: opacity .15s ease, transform .15s ease, visibility .15s ease; margin-top: 8px; }
.gp-nav > li:hover .gp-nav-sub { visibility: visible; opacity: 1; transform: translateX(-50%) translateY(0); }
.gp-nav-sub a { display: block; padding: 9px 14px; border-radius: 8px; font-size: 15px; font-weight: 500; color: rgba(32,38,31,.8); }
.gp-nav-sub a:hover { background: var(--gp-surface-2); color: var(--gp-primary); }

.gp-mobile-nav { display: none; border-top: 1px solid rgba(255,255,255,.15); padding: 12px 20px; background: var(--gp-header-bg); }
.gp-mobile-nav.open { display: block; }
/* '> ul' 로 한정: 그냥 '.gp-mobile-nav ul' 로 쓰면 우선순위(0,1,1)가
   .gp-mobile-sub(0,1,0)의 display:none 을 이겨 하위메뉴가 항상 펼쳐집니다. */
.gp-mobile-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.gp-mobile-item-row { display: flex; align-items: center; justify-content: space-between; border-radius: 8px; }
.gp-mobile-item-row a { flex: 1; padding: 10px 12px; font-size: 17px; font-weight: 600; color: #fff; }
.gp-mobile-item-row button { background: none; border: none; padding: 10px 12px; color: rgba(255,255,255,.6); font-size: 17px; cursor: pointer; }
.gp-mobile-sub { margin: 0 0 0 12px; padding-left: 12px; border-left: 1px solid rgba(255,255,255,.2); list-style: none; display: none; flex-direction: column; gap: 2px; }
.gp-mobile-sub.open { display: flex; }
.gp-mobile-sub a { display: block; padding: 8px 12px; font-size: 15px; color: rgba(255,255,255,.7); border-radius: 8px; }
.gp-mobile-cta { display: none; }

/* PC(700px 이상)에서 햄버거를 누르면 좁은 모바일 서랍 대신, 전체 메뉴를
   한눈에 보여주는 넓은 드롭다운 패널로 보여줍니다(같은 토글/같은 마크업 재사용). */
@media (min-width: 700px) {
    .gp-mobile-nav { position: absolute; left: 0; right: 0; top: 100%; border-top: none; background: var(--gp-surface); box-shadow: 0 16px 32px rgba(0,0,0,.15); padding: 20px 24px 28px; }
    .gp-mobile-nav > ul { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 48px; max-width: 1160px; margin: 0 auto; }
    .gp-mobile-nav > ul > li { flex: 0 1 160px; }
    .gp-mobile-item-row a { padding: 0; font-size: 16px; font-weight: 800; color: var(--gp-primary); }
    .gp-mobile-expand-btn { display: none; }
    .gp-mobile-sub { display: flex !important; margin: 14px 0 0; padding-left: 0; border-left: none; gap: 8px; }
    .gp-mobile-sub a { padding: 0; font-size: 14px; color: var(--gp-muted); }
    .gp-mobile-sub a:hover { color: var(--gp-primary); }
    .gp-mobile-cta { display: none !important; }
}

/* 헤더는 항상 1줄: 로고+메뉴+햄버거가 같은 줄에 나란히 놓입니다(.gp-nav 참고).
   700px 미만(모바일)에서는 .gp-nav를 숨기고 햄버거 → 슬라이드 메뉴로만 접근합니다. */
@media (max-width: 1023px) {
    .gp-mobile-cta { display: block; padding-top: 4px; }
}
/* 좁은 화면: 로고가 좌우 버튼과 겹치지 않도록 축소 */
@media (max-width: 767px) {
    .gp-logo img { height: 30px; }
    .gp-header-right { gap: 4px; }
    .gp-header-icon-link { display: none; }
}

/* ---------- 히어로 (홈) ---------- */
.gp-hero { position: relative; min-height: 480px; border-bottom: 1px solid var(--gp-line); color: #fff; display: flex; align-items: flex-end; overflow: hidden; }
@media (min-width: 640px) { .gp-hero { min-height: 620px; } }
/* 슬라이드마다 자체 문구(태그라인/타이틀/날짜)를 갖도록, 배경+오버레이+문구를
   한 슬라이드 안에 함께 두고 슬라이드 단위로 페이드 전환합니다. */
.gp-hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.2s ease; display: flex; align-items: center; pointer-events: none; }
.gp-hero-slide.active { opacity: 1; pointer-events: auto; }
.gp-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.7), rgba(0,0,0,.45) 55%, rgba(0,0,0,.35)); }
.gp-hero-body { position: relative; width: 100%; max-width: 720px; margin: 0 auto; padding: 96px 20px 76px; text-align: center; display: flex; flex-direction: column; align-items: center; }
@media (min-width: 640px) { .gp-hero-body { padding-bottom: 96px; } }
.gp-hero-tagline { font-size: 15px; font-weight: 700; color: #f3a476; letter-spacing: .02em; }
.gp-hero-title { margin: 12px 0 0; max-width: 640px; font-size: 30px; font-weight: 800; line-height: 1.2; }
@media (min-width: 640px) { .gp-hero-title { font-size: 44px; } }
.gp-hero-subtitle { margin: 10px 0 0; max-width: 560px; font-size: 15px; font-weight: 500; color: rgba(255,255,255,.85); line-height: 1.5; }
@media (min-width: 640px) { .gp-hero-subtitle { font-size: 17px; } }
.gp-hero-date { margin: 18px 0 0; font-size: 17px; color: rgba(255,255,255,.9); }
.gp-hero-actions { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; }
/* .gp-btn-accent 는 헤더의 상시 노출 버튼과 공용 클래스라 자체 크기(9px 20px)를
   따로 갖고 있습니다. 히어로 안에서는 화면 크기와 무관하게 항상 옆의
   .gp-btn-outline("코스 안내")과 같은 크기로 맞춥니다. */
.gp-hero-actions .gp-btn-accent { font-size: 15px; padding: 13px 28px; background: #fff; color: var(--gp-foreground) !important; }
.gp-hero-actions .gp-btn-accent:hover { opacity: 1; background: #f2f2f2; }
.gp-btn-outline { display: inline-block; border: 1px solid rgba(255,255,255,.5); color: #fff; font-weight: 700; font-size: 15px; padding: 11px 24px; border-radius: 999px; }
.gp-btn-outline:hover { background: rgba(255,255,255,.1); }
.gp-mobile-cta-secondary { display: inline-block; border: 1px solid var(--gp-line); color: var(--gp-foreground) !important; font-weight: 700; font-size: 15px; padding: 9px 20px; border-radius: 999px; background: var(--gp-surface); }
.gp-mobile-cta-secondary:hover { background: var(--gp-surface-2); }
.gp-hero-dots { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 5; }
.gp-hero-dots button { height: 6px; width: 6px; border-radius: 999px; background: rgba(255,255,255,.5); border: none; padding: 0; cursor: pointer; transition: all .2s; }
.gp-hero-dots button.active { width: 24px; background: var(--gp-accent); }
/* 관리자에게만 보이는 "메인비주얼 관리" 바로가기 */
.gp-hero-admin-edit { position: absolute; top: 16px; right: 16px; z-index: 6; display: inline-flex; align-items: center; gap: 6px; background: rgba(0,0,0,.55); backdrop-filter: blur(4px); color: #fff; font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 999px; text-decoration: none; border: 1px solid rgba(255,255,255,.3); }
.gp-hero-admin-edit:hover { background: rgba(0,0,0,.75); }

/* ---------- 소개 카피 ---------- */
.gp-intro-section { background: var(--gp-surface); border-bottom: 1px solid var(--gp-line); }
.gp-intro-inner { max-width: 760px; padding-top: 64px; padding-bottom: 56px; text-align: center; }
.gp-intro-tagline { margin: 0; font-size: 16px; font-weight: 700; color: var(--gp-accent); }
.gp-intro-title { margin: 10px 0 0; font-size: 26px; font-weight: 800; letter-spacing: -.01em; }
@media (min-width: 640px) { .gp-intro-title { font-size: 34px; } }
.gp-intro-body { margin: 20px 0 0; font-size: 16px; line-height: 1.8; color: var(--gp-muted); }

/* ---------- 퀵 스탯 (일부 서브페이지에서 재사용) ---------- */
.gp-stats-section { border-bottom: 1px solid var(--gp-line); background: var(--gp-surface); }
.gp-stats { display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; background: var(--gp-line); }
@media (min-width: 640px) { .gp-stats { grid-template-columns: repeat(5,1fr); } }
.gp-stat { background: var(--gp-surface); display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 28px 16px; text-align: center; }
.gp-stat-icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 999px; background: rgba(46,83,57,.1); color: var(--gp-primary); }
.gp-stat-label { font-size: 13px; color: var(--gp-muted); }
.gp-stat-value { font-size: 17px; font-weight: 700; }

/* ---------- 대회 안내 (포스터 카드) ---------- */
.gp-eventcard-section { padding: 64px 0; background: var(--gp-surface-2); }
.gp-section-title { margin: 0 0 24px; font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.gp-eventcard { background: var(--gp-surface); border-radius: 20px; box-shadow: 0 8px 24px rgba(0,0,0,.06); overflow: hidden; display: grid; grid-template-columns: 1fr; }
@media (min-width: 800px) { .gp-eventcard { grid-template-columns: 420px 1fr; } }
.gp-eventcard-poster { background: var(--gp-surface-2); }
.gp-eventcard-poster img { display: block; width: 100%; height: auto; }
.gp-eventcard-body { padding: 28px 24px; }
.gp-eventcard-body h3 { margin: 0; font-size: 18px; font-weight: 800; line-height: 1.4; }
.gp-eventcard-body > p { margin: 10px 0 0; font-size: 14px; line-height: 1.65; color: var(--gp-muted); }
.gp-eventcard-table { margin-top: 20px; width: 100%; border-collapse: collapse; border-top: 1px solid var(--gp-line); }
.gp-eventcard-table tr { border-bottom: 1px solid var(--gp-line); }
.gp-eventcard-table th, .gp-eventcard-table td { text-align: left; padding: 9px 4px; font-size: 12.5px; vertical-align: top; }
.gp-eventcard-table th { width: 92px; flex-shrink: 0; color: var(--gp-muted); font-weight: 600; }
.gp-eventcard-table td { font-weight: 600; }
.gp-eventcard-table td a { color: var(--gp-primary); text-decoration: underline; }

/* ---------- 공지 + 사진 ---------- */
.gp-notice-section { border-bottom: 1px solid var(--gp-line); background: var(--gp-surface); }
.gp-notice-grid { display: grid; gap: 40px; padding-top: 80px; padding-bottom: 80px; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .gp-notice-grid { grid-template-columns: 1fr 1.1fr; align-items: stretch; } }
.gp-eyebrow { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .2em; color: var(--gp-accent); }
.gp-notice-head { margin-top: 8px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.gp-h2 { font-size: 24px; font-weight: 700; letter-spacing: -.01em; margin: 0; }
@media (min-width: 640px) { .gp-h2 { font-size: 30px; } }
.gp-more-link { flex-shrink: 0; padding-bottom: 4px; font-size: 15px; font-weight: 600; color: var(--gp-primary); }
.gp-more-link:hover { text-decoration: underline; }
.gp-notice-list { margin-top: 28px; display: flex; flex: 1; flex-direction: column; gap: 12px; list-style: none; padding: 0; }
.gp-notice-empty { border: 1px dashed var(--gp-line); border-radius: 12px; padding: 24px 20px; text-align: center; font-size: 15px; color: var(--gp-muted); }
.gp-notice-item a { display: flex; align-items: flex-start; gap: 16px; border: 1px solid var(--gp-line); background: var(--gp-surface); border-radius: 12px; padding: 16px 20px; transition: border-color .15s, background .15s; }
.gp-notice-item a:hover { border-color: rgba(46,83,57,.5); background: var(--gp-surface-2); }
.gp-notice-date { flex-shrink: 0; margin-top: 2px; background: rgba(46,83,57,.1); color: var(--gp-primary); font-size: 12px; font-weight: 700; border-radius: 6px; padding: 4px 10px; }
.gp-notice-title { flex: 1; font-size: 15px; font-weight: 500; line-height: 1.5; color: rgba(32,38,31,.85); }
.gp-notice-cta { margin-top: 24px; border: 1px dashed var(--gp-line); border-radius: 12px; padding: 16px 20px; font-size: 15px; color: var(--gp-muted); }
.gp-notice-cta a { font-weight: 600; color: var(--gp-primary); }
.gp-notice-cta a:hover { text-decoration: underline; }
.gp-photo-panel { position: relative; min-height: 300px; border-radius: 16px; overflow: hidden; box-shadow: 0 12px 28px rgba(0,0,0,.15); background-size: cover; background-position: center; }
.gp-video-panel { position: relative; min-height: 300px; height: 100%; border-radius: 16px; overflow: hidden; box-shadow: 0 12px 28px rgba(0,0,0,.15); background: #000; }
.gp-video-panel iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gp-photo-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,.1) 60%, transparent); }
.gp-photo-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px; color: #fff; }
.gp-photo-caption .gp-eyebrow { color: #f3a476; }
.gp-photo-caption p.gp-title { margin: 6px 0 0; font-size: 20px; font-weight: 700; line-height: 1.4; }
@media (min-width: 640px) { .gp-photo-caption p.gp-title { font-size: 24px; } }

/* ---------- 향후 행사 ---------- */
.gp-nextevents-section { padding: 64px 0; background: var(--gp-surface-2); }
.gp-nextevents-intro { max-width: 640px; margin: 24px auto 0; text-align: center; }
.gp-nextevents-intro-lead { margin: 0 0 14px; font-size: 18px; font-weight: 800; color: var(--gp-primary); }
.gp-nextevents-intro p:not(.gp-nextevents-intro-lead) { margin: 0 0 10px; font-size: 15px; line-height: 1.8; color: var(--gp-muted); }
.gp-nextevent-list { display: flex; flex-direction: column; gap: 14px; margin-top: 32px; }
.gp-nextevent-item { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; background: var(--gp-surface); border: 1px solid var(--gp-line); border-radius: 16px; padding: 20px 28px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.gp-nextevent-num { flex-shrink: 0; width: 36px; font-size: 30px; font-weight: 800; color: var(--gp-primary); }
.gp-nextevent-name { flex: 1; min-width: 140px; margin: 0; font-size: 18px; font-weight: 800; color: var(--gp-foreground); }
.gp-nextevent-meta { display: flex; gap: 32px; flex-shrink: 0; flex-wrap: wrap; }
.gp-nextevent-meta-item { display: flex; align-items: center; gap: 8px; color: var(--gp-primary); }
.gp-meta-col { display: flex; flex-direction: column; gap: 1px; }
.gp-nextevent-meta-label { font-size: 12px; color: var(--gp-muted); }
.gp-nextevent-meta-value { font-size: 14px; font-weight: 700; color: var(--gp-foreground); }

/* 향후 행사 상세 페이지 — 행사별 사진 + 정보 행을 하나의 카드로 묶음 */
.gp-nextevent-card { border: 1px solid var(--gp-line); border-radius: 16px; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.gp-nextevent-card + .gp-nextevent-card { margin-top: 24px; }
.gp-nextevent-list .gp-nextevent-card + .gp-nextevent-card { margin-top: 0; } /* gp-nextevent-list가 flex gap으로 간격을 이미 줌 */
.gp-nextevent-photo img { display: block; width: 100%; height: auto; }
.gp-nextevent-card .gp-nextevent-item { border: none; border-radius: 0; box-shadow: none; background: var(--gp-surface-2); }

/* ---------- 카테고리 카드 ---------- */
.gp-cards-section { padding: 80px 0; }
.gp-cards-head { text-align: center; }
.gp-cards-head p.gp-desc { margin: 12px auto 0; max-width: 520px; font-size: 15px; line-height: 1.7; color: var(--gp-muted); }
.gp-cards { margin-top: 48px; display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .gp-cards { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .gp-cards { grid-template-columns: repeat(3,1fr); } }
.gp-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--gp-line); background: var(--gp-surface); border-radius: 16px; padding: 28px; box-shadow: 0 1px 2px rgba(0,0,0,.04); transition: transform .2s, box-shadow .2s, border-color .2s; }
.gp-card:hover { transform: translateY(-4px); border-color: rgba(46,83,57,.5); box-shadow: 0 16px 32px rgba(0,0,0,.12); }
.gp-card-icon { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 16px; background: rgba(46,83,57,.1); color: var(--gp-primary); transition: background .2s, color .2s; }
.gp-card:hover .gp-card-icon { background: var(--gp-primary); color: #fff; }
.gp-card-title { margin-top: 20px; font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.gp-card-desc { margin-top: 8px; flex: 1; font-size: 15px; line-height: 1.6; color: var(--gp-muted); }
.gp-card-more { margin-top: 24px; display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--gp-primary); }
@media (min-width: 1024px) { .gp-cards { grid-template-columns: repeat(4,1fr); } }

/* ---------- 코스 안내 (홈 원페이지) ---------- */
.gp-course-section { padding: 64px 0; background: var(--gp-surface-2); }
.gp-course-panel { background: var(--gp-surface); border-radius: 20px; box-shadow: 0 8px 24px rgba(0,0,0,.06); padding: 32px; text-align: center; }
.gp-course-badge { display: inline-block; background: var(--gp-primary); color: #fff; font-size: 20px; font-weight: 700; padding: 7px 18px; border-radius: 999px; }
@media (max-width: 767px) {
    /* index.php/apply_guide.php 에서 인라인 style로 20px 고정을 해뒀기 때문에 !important 필요 */
    .gp-course-badge { font-size: 15px !important; padding: 7px 14px !important; }
}
.gp-course-sub { margin: 14px 0 0; font-size: 17px; color: var(--gp-muted); }

/* 참가신청안내 페이지 코스 안내 — 코스맵 + 코스뷰(4장) 분리 표시 */
.gp-apply-coursemap { margin-top: 16px; border-radius: 16px; overflow: hidden; }
.gp-apply-coursemap img { display: block; width: 100%; height: auto; }
.gp-apply-courseview-title { margin: 24px 0 12px; font-size: 16px; font-weight: 800; color: var(--gp-foreground); }
.gp-apply-courseview { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.gp-apply-courseview img { display: block; width: 100%; height: auto; border-radius: 12px; }
.gp-course-facts { margin-top: 28px; display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .gp-course-facts { grid-template-columns: repeat(3,1fr); } }
.gp-course-fact-card { background: var(--gp-surface-2); border-radius: 12px; padding: 16px 8px; }
.gp-course-fact-label { margin: 0; font-size: 15px; color: var(--gp-muted); }
.gp-course-fact-value { margin: 6px 0 0; font-size: 18px; font-weight: 800; color: var(--gp-primary); }
.gp-course-map { margin-top: 28px; border-radius: 16px; overflow: hidden; text-align: left; }
.gp-course-map img { display: block; width: 100%; height: auto; }

/* ---------- 기념품 & 유의사항 ---------- */
.gp-souvenir-section { padding: 64px 0; background: var(--gp-surface); border-bottom: 1px solid var(--gp-line); }
.gp-souvenir-cards { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 640px) { .gp-souvenir-cards { grid-template-columns: repeat(3,1fr); gap: 20px; } }

/* 4개 항목 그리드 전용 열 수(기념품 안내/현장 추첨 경품에서 공용, 기본 3열 그리드와 별개) —
   모바일에서도 1열이 아닌 2열로 보이도록 기본값부터 지정합니다. */
.gp-cards-4col { grid-template-columns: repeat(2,1fr); gap: 14px; }
@media (min-width: 640px) { .gp-cards-4col { grid-template-columns: repeat(2,1fr); gap: 20px; } }
@media (min-width: 1024px) { .gp-cards-4col { grid-template-columns: repeat(4,1fr); } }

/* 실사 굿즈 이미지 카드 (기념품 안내) — 세로 이미지 + 제목 + 설명 */
.gp-souvenir-card { position: relative; background: var(--gp-surface); border: 1px solid var(--gp-line); border-radius: 18px; padding: 0 0 20px; text-align: left; box-shadow: 0 4px 16px rgba(0,0,0,.05); transition: box-shadow .2s, transform .2s; overflow: hidden; }
.gp-souvenir-card:hover { box-shadow: 0 10px 24px rgba(0,0,0,.09); transform: translateY(-2px); }

.gp-souvenir-icon { display: block; width: 100%; aspect-ratio: 3 / 4; margin: 0 0 16px; background: var(--gp-surface-2); overflow: hidden; }
.gp-souvenir-icon img { width: 100%; height: 100%; object-fit: cover; }
.gp-souvenir-name { margin: 0 20px; font-size: 17px; font-weight: 800; line-height: 1.4; color: var(--gp-foreground); }
.gp-souvenir-desc { margin: 8px 20px 0; font-size: 14px; line-height: 1.6; color: var(--gp-muted); }

/* 긍정 안내(제공/혜택) 콜아웃 — 위 상품 카드와 같은 흰색 블록 스타일 + 호버 효과 */
.gp-perk-box { margin-top: 24px; display: flex; gap: 14px; background: var(--gp-surface); border: 1px solid var(--gp-line); border-radius: 14px; padding: 20px 22px; align-items: flex-start; box-shadow: 0 4px 16px rgba(0,0,0,.05); transition: box-shadow .2s, transform .2s; }
.gp-perk-box:hover { box-shadow: 0 10px 24px rgba(0,0,0,.09); transform: translateY(-2px); }
.gp-perk-icon { flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 999px; background: var(--gp-primary); color: #fff; }
.gp-perk-title { margin: 2px 0 6px; font-size: 15px; font-weight: 800; color: var(--gp-primary); }
.gp-perk-box p:not(.gp-perk-title) { margin: 0; font-size: 14px; line-height: 1.6; color: var(--gp-foreground); }

/* 주의/유의사항 콜아웃 — 기념품/코스 안내 등에서 재사용 */
.gp-caution-box { margin-top: 24px; display: flex; gap: 14px; background: #fdf1ea; border: 1px solid #f3c9a8; border-radius: 14px; padding: 20px 22px; }
.gp-caution-icon { flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 999px; background: var(--gp-accent); color: #fff; font-size: 14px; font-weight: 800; }
.gp-caution-title { margin: 2px 0 8px; font-size: 15px; font-weight: 800; color: var(--gp-accent); }
.gp-caution-box p { margin: 0 0 4px; font-size: 14px; line-height: 1.6; color: #7a4a2e; }
.gp-caution-box p:last-child { margin-bottom: 0; }

/* ---------- 문의처 / 결제안내 ---------- */
.gp-contact-section { padding: 56px 0; background: var(--gp-surface); border-top: 1px solid var(--gp-line); }
.gp-contact-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .gp-contact-grid { grid-template-columns: repeat(3,1fr); } }
.gp-contact-card { background: var(--gp-surface-2); border-radius: 14px; padding: 24px 20px; text-align: center; }
.gp-contact-label { margin: 0; font-size: 14px; font-weight: 700; color: var(--gp-muted); }
.gp-contact-value { margin: 10px 0 0; font-size: 18px; font-weight: 800; color: var(--gp-primary); }
.gp-contact-value a { color: inherit; }
.gp-contact-sub { margin: 6px 0 0; font-size: 13px; color: var(--gp-muted); }

/* ---------- 행사장 안내도 ---------- */
.gp-map-section { padding: 72px 0; background: var(--gp-surface); }
.gp-map-embed { margin-top: 32px; border-radius: 16px; overflow: hidden; border: 1px solid var(--gp-line); }
.gp-map-embed iframe { display: block; width: 100%; height: 360px; border: 0; }

/* ---------- FAQ 미리보기 ---------- */
.gp-faq-section { border-top: 1px solid var(--gp-line); background: var(--gp-surface-2); }
.gp-faq-inner { padding-top: 80px; padding-bottom: 80px; }
.gp-faq-list { margin-top: 32px; overflow: hidden; border-radius: 16px; border: 1px solid var(--gp-line); background: var(--gp-surface); box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.gp-faq-row { display: flex; flex-direction: column; gap: 8px; padding: 20px 24px; border-bottom: 1px solid var(--gp-line); }
.gp-faq-row:last-child { border-bottom: none; }
@media (min-width: 640px) { .gp-faq-row { flex-direction: row; align-items: flex-start; gap: 32px; } }
.gp-faq-row:hover { background: var(--gp-surface-2); }
.gp-faq-q { display: flex; align-items: flex-start; gap: 12px; flex-shrink: 0; }
@media (min-width: 640px) { .gp-faq-q { width: 320px; } }
.gp-faq-q-badge { margin-top: 2px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 999px; background: var(--gp-primary); color: #fff; font-size: 12px; font-weight: 700; }
.gp-faq-q-text { font-size: 15px; font-weight: 700; line-height: 1.5; }
.gp-faq-a { font-size: 15px; line-height: 1.6; color: var(--gp-muted); }

/* ---------- 후원 ---------- */
.gp-sponsors-section { border-top: 1px solid var(--gp-line); background: var(--gp-surface); }
.gp-sponsors-inner { padding-top: 48px; padding-bottom: 48px; }
.gp-sponsors-title { text-align: center; font-size: 22px; font-weight: 700; }
.gp-sponsors-logos { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 40px; }
.gp-sponsors-logos img { height: 42px; width: auto; object-fit: contain; }
.gp-sponsors-text { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; }
.gp-sponsors-text span { border: 1px solid var(--gp-line); background: var(--gp-surface-2); border-radius: 999px; padding: 8px 16px; font-size: 13px; font-weight: 600; color: var(--gp-muted); }

/* ---------- 서브페이지 상단 배너 (브레드크럼) ---------- */
.gp-pageheader-hero { position: relative; min-height: 150px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; color: #fff; background-size: cover; background-position: center; }
@media (min-width: 640px) { .gp-pageheader-hero { min-height: 180px; } }
.gp-pageheader-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.8), rgba(0,0,0,.35) 60%, rgba(0,0,0,.1)); }
.gp-breadcrumb { position: absolute; right: 20px; bottom: 12px; left: 20px; padding: 0; text-align: center; font-size: 13px; }
.gp-breadcrumb .sep { margin: 0 8px; opacity: .5; }
.gp-breadcrumb a { opacity: .7; }
.gp-breadcrumb a:hover { opacity: 1; }
.gp-breadcrumb .cur { opacity: .9; }
.gp-pageheader-body { position: relative; width: 100%; padding: 8px 20px 16px; text-align: center; }
.gp-pageheader-body .gp-hero-tagline { font-size: 13px; }
.gp-pageheader-body h1 { margin: 4px 0 0; font-size: 19px; font-weight: 700; }
@media (min-width: 640px) { .gp-pageheader-body h1 { font-size: 24px; } }
.gp-pageheader-body .gp-hero-date { margin-top: 4px; font-size: 13px; }
.gp-pageheader-title { max-width: 1152px; margin: 0 auto; padding: 40px 20px 24px; text-align: center; }
.gp-pageheader-title h2 { font-size: 24px; font-weight: 700; margin: 0; }
@media (min-width: 640px) { .gp-pageheader-title h2 { font-size: 30px; } }
.gp-pageheader-title p { margin: 8px auto 0; max-width: 560px; font-size: 15px; color: var(--gp-muted); }

/* 탭이 화면보다 길면 가로 스크롤(모바일). 스크롤바는 숨깁니다. */
.gp-subnav-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.gp-subnav-tabs::-webkit-scrollbar { display: none; }
.gp-subnav-tabs-inner { display: flex; width: max-content; min-width: 100%; border-bottom: 1px solid var(--gp-line); max-width: 1152px; margin: 0 auto; }
.gp-subnav-tabs-inner a { flex-shrink: 0; padding: 12px 16px; font-size: 15px; font-weight: 700; border-bottom: 2px solid transparent; color: var(--gp-muted); white-space: nowrap; }
@media (min-width: 640px) { .gp-subnav-tabs-inner a { flex: 1; text-align: center; padding: 12px 20px; } }
.gp-subnav-tabs-inner a:hover { color: var(--gp-primary); }
.gp-subnav-tabs-inner a.active { color: var(--gp-primary); border-bottom-color: var(--gp-primary); }

/* ---------- 콘텐츠 본문 공통 ---------- */
/* 좌우 여백은 #container 가 담당하므로 여기서는 상/하만 지정합니다. */
/* 좌우 여백과 하단 여백은 #container 가 담당하므로 여기서는 상단만 지정합니다. */
.gp-content-wrap { max-width: 896px; margin: 0 auto; padding-top: 32px; background: var(--gp-surface); }
.gp-placeholder { border: 1px dashed var(--gp-line); background: var(--gp-surface-2); border-radius: 12px; padding: 16px 20px; font-size: 15px; color: var(--gp-muted); }
.gp-placeholder .badge { margin-right: 8px; border-radius: 999px; background: rgba(217,98,43,.1); color: var(--gp-accent); font-size: 13px; font-weight: 700; padding: 2px 8px; }
.gp-info-table { overflow: hidden; border-radius: 12px; border: 1px solid var(--gp-line); background: var(--gp-surface); }
.gp-info-row { display: flex; flex-direction: column; gap: 4px; padding: 12px 20px; border-bottom: 1px solid var(--gp-line); font-size: 15px; }
.gp-info-row:last-child { border-bottom: none; }
@media (min-width: 640px) { .gp-info-row { flex-direction: row; gap: 24px; } }
.gp-info-row dt { flex-shrink: 0; font-weight: 700; color: var(--gp-muted); width: 100%; }
@media (min-width: 640px) { .gp-info-row dt { width: 160px; } }
.gp-info-row dd { margin: 0; }
.gp-grid-2 { display: grid; gap: 16px; }
@media (min-width: 640px) { .gp-grid-2 { grid-template-columns: repeat(2,1fr); } }
.gp-grid-3 { display: grid; gap: 16px; }
@media (min-width: 640px) { .gp-grid-3 { grid-template-columns: repeat(3,1fr); } }
.gp-box { border: 1px solid var(--gp-line); background: var(--gp-surface); border-radius: 12px; padding: 20px; font-size: 15px; }
.gp-box .box-title { font-weight: 700; color: var(--gp-primary); }
.gp-box .box-body { margin-top: 8px; color: var(--gp-muted); line-height: 1.6; }
.gp-box ul { margin: 8px 0 0; padding: 0; list-style: none; }
.gp-box ul li { color: var(--gp-muted); font-size: 14px; padding: 2px 0; }
.gp-content-h2 { font-size: 20px; font-weight: 700; margin: 48px 0 0; }
.gp-content-h3 { font-size: 17px; font-weight: 700; margin: 32px 0 0; }

/* ---------- 조직도 (kortennis.or.kr 구조 참고) ---------- */
/* 조직도 — 단순 세로 흐름형(박스 + 화살표), 참고 이미지 스타일 */
.gp-orgchart-linear { display: flex; flex-direction: column; align-items: center; }
.gp-orgchart-box { position: relative; width: 100%; max-width: 340px; background: var(--gp-surface); border: 1px solid var(--gp-line); border-radius: 16px; padding: 20px 22px 18px; text-align: center; box-shadow: 0 4px 14px rgba(0,0,0,.05); }
.gp-orgchart-box.is-lead { border-color: var(--gp-accent); box-shadow: 0 6px 18px rgba(217,98,43,.14); }
.gp-orgchart-icon { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0 auto 10px; border-radius: 999px; background: var(--gp-primary); color: #fff; box-shadow: 0 3px 8px rgba(46,83,57,.25); }
.gp-orgchart-box.is-lead .gp-orgchart-icon { background: var(--gp-accent); box-shadow: 0 3px 8px rgba(217,98,43,.3); }
.gp-orgchart-box.is-support .gp-orgchart-icon { background: var(--gp-secondary); box-shadow: 0 3px 8px rgba(62,124,151,.25); }
.gp-orgchart-box-title { margin: 0; font-size: 17px; font-weight: 800; color: var(--gp-foreground); }
.gp-orgchart-box.is-lead .gp-orgchart-box-title { color: var(--gp-accent); }
.gp-orgchart-box-desc { margin: 4px 0 0; font-size: 14px; color: var(--gp-muted); }
.gp-orgchart-connector { display: flex; flex-direction: column; align-items: center; height: 34px; }
.gp-orgchart-connector-line { width: 2px; flex: 1; background: linear-gradient(var(--gp-primary), var(--gp-line)); opacity: .5; }
.gp-orgchart-connector-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gp-primary); flex-shrink: 0; }

/* ---------- 협회소개 (moonnightrun.kr 초대문 톤 참고) ---------- */
.gp-invite-letter { max-width: 896px; margin: 0 auto; text-align: left; }
.gp-invite-lead { margin: 0 0 32px; font-size: 19px; font-weight: 800; line-height: 1.6; color: var(--gp-primary); }
@media (min-width: 640px) { .gp-invite-lead { font-size: 22px; } }
.gp-invite-letter p:not(.gp-invite-lead):not(.gp-invite-signature) { margin: 0 0 20px; font-size: 15px; line-height: 2; color: var(--gp-muted); }
.gp-invite-signature { margin-top: 36px; font-size: 17px; font-weight: 800; color: var(--gp-foreground); }

/* ---------- 인사말 (saswc.org 레이아웃 참고) ---------- */
.gp-greeting-quote { max-width: 896px; margin: 0 auto 32px; text-align: center; padding-bottom: 32px; border-bottom: 1px solid var(--gp-line); }
.gp-greeting-quote p { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.6; }
.gp-greeting-quote .gp-quote-accent { color: var(--gp-accent); }
@media (min-width: 640px) { .gp-greeting-quote p { font-size: 20px; } }
.gp-greeting-body { max-width: 896px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 700px) { .gp-greeting-body { grid-template-columns: 220px 1fr; align-items: start; } }
.gp-greeting-photo img { display: block; width: 100%; border-radius: 16px; box-shadow: 0 8px 20px rgba(0,0,0,.08); }
.gp-greeting-text p { margin: 0 0 16px; font-size: 15px; line-height: 1.9; color: var(--gp-muted); }
.gp-greeting-signature { margin-top: 24px; text-align: right; font-size: 17px; font-weight: 800; color: var(--gp-foreground); }
.gp-fee-table { width: 100%; border-collapse: collapse; overflow: hidden; border-radius: 12px; border: 1px solid var(--gp-line); font-size: 15px; }
.gp-fee-table thead tr { background: var(--gp-primary-dark); color: #fff; }
.gp-fee-table th, .gp-fee-table td { padding: 12px 16px; text-align: center; border: 1px solid var(--gp-line); }
.gp-fee-table thead th { border-color: rgba(255,255,255,.15); font-weight: 700; }
.gp-fee-table tbody td:first-child { color: var(--gp-muted); }
.gp-fee-table tbody td:last-child { font-weight: 700; }
.gp-fee-note { border-top: none; background: var(--gp-surface-2); text-align: center; padding: 12px; font-size: 15px; font-weight: 600; border: 1px solid var(--gp-line); border-top: none; border-radius: 0 0 12px 12px; }
/* 입금상태 배지 / 토글 (입금완료는 파란색) */
.gp-status-badge, .gp-status-toggle { display: inline-block; border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 700; white-space: nowrap; border: 1px solid transparent; }
.gp-status-badge.is-pending, .gp-status-toggle.is-pending { background: rgba(217,98,43,.1); color: var(--gp-accent); border-color: rgba(217,98,43,.25); }
.gp-status-badge.is-paid,    .gp-status-toggle.is-paid    { background: rgba(29,78,216,.1); color: #1d4ed8; border-color: rgba(29,78,216,.25); }
.gp-status-badge.is-canceled { background: rgba(107,114,128,.12); color: #4b5563; border-color: rgba(107,114,128,.28); }
.gp-status-badge.is-cancel-pending { background: rgba(217,98,43,.1); color: var(--gp-accent); border-color: rgba(217,98,43,.25); }
.gp-status-toggle, .gp-refund-view-btn { cursor: pointer; transition: filter .15s; }
.gp-status-toggle:hover, .gp-refund-view-btn:hover { filter: brightness(.94); }

/* 전체 신청 목록 표 — PC 넓은 화면(≥1620px)에서는 좌우 스크롤 없이 한 번에 보이도록
   .gp-container(최대 1152px)보다 넓게 화면 중앙에 펼칩니다. 모바일/태블릿에는 영향 없음.
   (이메일과 접수유형 사이에 "신청"(성인/미성년자) 컬럼이 추가되어 표 최소너비가
   늘어난 만큼 기준폭도 함께 넓혔습니다) */
@media (min-width: 1620px) {
    .gp-admin-table-wrap { overflow-x: visible; width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); padding: 0 calc((100vw - 1580px) / 2); box-sizing: border-box; }
}

/* 문자 발송 문구 템플릿 버튼(입금전/접수완료/취소) — 좁게 줄바꿈되도록 */
.gp-sms-tpl-row { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; justify-content: center; }
.gp-sms-tpl-btn { border: 1px solid var(--gp-line); background: var(--gp-surface); color: var(--gp-muted); border-radius: 6px; padding: 2px 6px; font-size: 11px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.gp-sms-tpl-btn:hover { border-color: var(--gp-primary); color: var(--gp-primary); background: rgba(46,83,57,.06); }

/* 문자 문구 복사 모달 / 환불계좌 확인 모달 (같은 모달 틀을 공유) */
.gp-sms-modal-backdrop, .gp-refund-modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.gp-sms-modal-backdrop[hidden], .gp-refund-modal-backdrop[hidden] { display: none; }
.gp-sms-modal, .gp-refund-modal { background: var(--gp-surface); border-radius: 16px; padding: 24px; max-width: 440px; width: 100%; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.gp-sms-modal h3, .gp-refund-modal h3 { margin: 0 0 12px; font-size: 16px; font-weight: 800; color: var(--gp-foreground); }
.gp-sms-modal textarea { width: 100%; box-sizing: border-box; min-height: 220px; border: 1px solid var(--gp-line); border-radius: 10px; padding: 12px; font-size: 14px; line-height: 1.6; font-family: inherit; color: var(--gp-foreground); background: var(--gp-surface-2); resize: vertical; }
.gp-sms-modal p.gp-sms-modal-hint { margin: 8px 0 0; font-size: 12px; color: var(--gp-muted); }
.gp-sms-modal-actions, .gp-refund-modal-actions { margin-top: 16px; display: flex; gap: 8px; justify-content: flex-end; }
.gp-sms-modal-close, .gp-refund-modal-close { border: 1px solid var(--gp-line); background: var(--gp-surface); color: var(--gp-foreground); border-radius: 8px; padding: 9px 18px; font-size: 14px; font-weight: 600; cursor: pointer; }
.gp-sms-modal-copy, .gp-refund-modal-copy { border: none; background: var(--gp-primary); color: #fff; border-radius: 8px; padding: 9px 18px; font-size: 14px; font-weight: 600; cursor: pointer; }
.gp-sms-modal-copy:hover, .gp-refund-modal-copy:hover { opacity: .9; }
.gp-refund-modal-rows { display: flex; flex-direction: column; gap: 10px; }
.gp-refund-modal-rows dl { margin: 0; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 12px; background: var(--gp-surface-2); border-radius: 10px; }
.gp-refund-modal-rows dt { font-size: 13px; color: var(--gp-muted); flex-shrink: 0; }
.gp-refund-modal-rows dd { margin: 0; font-size: 14px; font-weight: 700; color: var(--gp-foreground); text-align: right; word-break: break-all; }
.gp-refund-modal-finalize { border: none; background: var(--gp-accent); color: #fff; border-radius: 8px; padding: 9px 18px; font-size: 14px; font-weight: 600; cursor: pointer; }
.gp-refund-modal-finalize:hover { opacity: .9; }
@media (max-width: 480px) {
    /* 버튼 3개(복사/닫기/환불완료)가 한 줄에 끼면 글자가 줄바꿈되어 답답해 보여 세로로 쌓습니다 */
    .gp-refund-modal-actions { flex-direction: column; }
    .gp-refund-modal-actions button { width: 100%; white-space: nowrap; }
}

/* 리스트에서 바로 순서 변경(위/아래) */
.gp-order-btn { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--gp-line); background: var(--gp-surface); color: var(--gp-foreground); font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.gp-order-btn:hover:not(:disabled) { border-color: var(--gp-primary); color: var(--gp-primary); background: rgba(46,83,57,.06); }
.gp-order-btn:disabled { opacity: .3; cursor: not-allowed; }

/* 관리자 전체 신청 목록 페이지네이션 */
.gp-admin-paging { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; margin-top: 20px; }
.gp-admin-page-current { width: 32px; height: 32px; border-radius: 8px; background: var(--gp-primary); color: #fff; font-size: 14px; display: flex; align-items: center; justify-content: center; }

/* 입금자명 클릭 수정 버튼 — 일반 텍스트처럼 보이되 클릭 가능함을 살짝 드러냄 */
.gp-depositor-btn { border: none; background: none; padding: 2px 4px; font-size: 15px; color: var(--gp-foreground); cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
.gp-depositor-btn:hover { color: var(--gp-primary); background: rgba(46,83,57,.06); border-radius: 6px; }

/* 관리자 목록: 인원(대인/소인) 두 줄, 삭제 버튼 */
.gp-people-cell span { display: block; white-space: nowrap; }
.gp-row-delete { border: 1px solid var(--gp-line); background: var(--gp-surface); color: var(--gp-muted); border-radius: 8px; padding: 4px 10px; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.gp-row-delete:hover { border-color: #dc2626; background: rgba(220,38,38,.06); color: #dc2626; }

/* 관리자 상황판 */
.gp-dashboard { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); margin-top: 16px; }
@media (min-width: 640px) { .gp-dashboard { grid-template-columns: repeat(4, 1fr); } }
.gp-dash-card { border: 1px solid var(--gp-line); background: var(--gp-surface); border-radius: 12px; padding: 16px; }
.gp-dash-card.is-accent { border-left: 4px solid var(--gp-accent); }
.gp-dash-card.is-paid   { border-left: 4px solid #1d4ed8; }
.gp-dash-card.is-total  { border-left: 4px solid var(--gp-primary); }
.gp-dash-label { font-size: 13px; font-weight: 700; color: var(--gp-muted); }
.gp-dash-value { margin-top: 6px; font-size: 20px; font-weight: 800; letter-spacing: -.02em; color: var(--gp-foreground); }
.gp-dash-card.is-accent .gp-dash-value { color: var(--gp-accent); }
.gp-dash-card.is-paid   .gp-dash-value { color: #1d4ed8; }
.gp-dash-card.is-total  .gp-dash-value { color: var(--gp-primary); }
.gp-dash-sub { margin-top: 4px; font-size: 13px; color: var(--gp-muted); }

/* 입금 계좌 안내 카드 (참가 신청/조회) */
.gp-account-box { border: 1px solid var(--gp-line); border-left: 4px solid var(--gp-primary); background: var(--gp-surface-2); border-radius: 12px; padding: 16px 20px; }
.gp-account-box-head { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--gp-primary); }
.gp-account-box-body { margin-top: 8px; font-size: 15px; line-height: 1.7; color: var(--gp-foreground); }
.gp-account-box-body p { margin: 0; }
.gp-account-box-body p + p { margin-top: 6px; font-size: 14px; color: var(--gp-muted); }
/* 계좌번호(첫 줄)는 눈에 잘 띄게 */
.gp-account-box-body p:first-child { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }

/* 게시판 커스텀 스킨(apply/hero 등) 공용 폼 입력 스타일.
   상속된 tailwind.css/default.css가 input에 폭 좁은 기본 스타일을 주므로,
   각 write.skin.php마다 반복 정의하지 말고 여기 한 곳에서 관리합니다. */
.gp-form-input { display: block; width: 100%; box-sizing: border-box; border-radius: 8px; border: 1px solid var(--gp-line); background: var(--gp-surface); padding: 10px 16px; font-size: 15px; outline: none; font-family: inherit; }
.gp-form-input:focus { border-color: var(--gp-primary); }
textarea.gp-form-input { line-height: 1.5; }

.gp-note-box { display: flex; gap: 12px; background: var(--gp-surface-2); border-radius: 12px; padding: 16px 20px; font-size: 15px; }
.gp-note-box .ico { flex-shrink: 0; color: var(--gp-primary); }
.gp-rule-list { list-style: none; margin: 16px 0 0; padding: 16px 20px; background: var(--gp-surface-2); border: 1px solid var(--gp-line); border-radius: 12px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.gp-rule-list li { display: flex; gap: 8px; }

/* ---------- 참가신청 멀티스텝 폼(미리보기) ---------- */
.gp-wizard-badge { display: inline-block; background: rgba(217,98,43,.12); color: var(--gp-accent); font-size: 13px; font-weight: 700; padding: 5px 14px; border-radius: 999px; margin-bottom: 12px; }
.gp-wizard-progress-bar { height: 6px; background: var(--gp-line); border-radius: 999px; overflow: hidden; margin-bottom: 8px; }
.gp-wizard-progress-bar-fill { height: 100%; width: 0; background: var(--gp-primary); border-radius: 999px; transition: width .3s ease; }
.gp-wizard-progress-text { font-size: 13px; color: var(--gp-muted); font-weight: 700; margin: 0 0 28px; }
.gp-wizard-progress { display: flex; align-items: center; margin: 24px 0 36px; }
.gp-wizard-progress-step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; }
.gp-wizard-progress-step:not(:last-child)::after { content: ''; position: absolute; top: 13px; left: 50%; width: 100%; height: 2px; background: var(--gp-line); z-index: 0; }
.gp-wizard-progress-step.done:not(:last-child)::after { background: var(--gp-primary); }
.gp-wizard-dot { position: relative; z-index: 1; width: 26px; height: 26px; border-radius: 999px; background: var(--gp-surface); border: 2px solid var(--gp-line); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--gp-muted); }
.gp-wizard-progress-step.active .gp-wizard-dot { border-color: var(--gp-primary); color: var(--gp-primary); }
.gp-wizard-progress-step.done .gp-wizard-dot { background: var(--gp-primary); border-color: var(--gp-primary); color: #fff; }
.gp-wizard-label { font-size: 12px; color: var(--gp-muted); text-align: center; }
.gp-wizard-progress-step.active .gp-wizard-label { color: var(--gp-primary); font-weight: 700; }

.gp-wizard-panel { display: none; }
.gp-wizard-panel.active { display: block; animation: gp-wizard-fadein .3s ease; }
@keyframes gp-wizard-fadein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.gp-wizard-h3 { font-size: 19px; font-weight: 800; margin: 0 0 6px; }
.gp-wizard-desc { font-size: 14px; color: var(--gp-muted); margin: 0 0 24px; }
.gp-wizard-field { margin-bottom: 20px; }
.gp-wizard-field label { display: block; font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.gp-wizard-field .req { color: var(--gp-accent); }
.gp-wizard-row { display: flex; gap: 10px; }
.gp-wizard-actions { display: flex; justify-content: space-between; margin-top: 32px; margin-bottom: 24px; gap: 12px; }
.gp-wizard-btn-prev { background: var(--gp-surface-2); color: var(--gp-foreground); font-weight: 700; font-size: 15px; padding: 12px 24px; border-radius: 999px; border: 1px solid var(--gp-line); cursor: pointer; }
.gp-wizard-btn-next { background: var(--gp-primary); color: #fff; font-weight: 700; font-size: 15px; padding: 12px 32px; border-radius: 999px; border: none; cursor: pointer; }
.gp-wizard-btn-next:hover, .gp-wizard-btn-prev:hover { opacity: .9; }
.gp-wizard-btn-next:disabled { background: var(--gp-line); color: var(--gp-muted); cursor: not-allowed; opacity: 1; }

.gp-terms-box { border: 1px solid var(--gp-line); border-radius: 12px; margin-bottom: 14px; overflow: hidden; }
.gp-terms-box-title { margin: 0; padding: 14px 16px; font-size: 15px; font-weight: 700; background: var(--gp-surface-2); }
.gp-terms-box-body { max-height: 220px; overflow-y: auto; padding: 16px; font-size: 12.5px; line-height: 1.7; color: var(--gp-muted); white-space: pre-line; border-top: 1px solid var(--gp-line); }
.gp-terms-notice { margin: 0 16px 14px; padding: 14px 16px; background: rgba(217,98,43,.08); border: 1px solid rgba(217,98,43,.25); border-radius: 10px; }
.gp-terms-notice-title { margin: 0 0 6px; font-size: 12.5px; font-weight: 800; color: var(--gp-accent); }
.gp-terms-notice-body { margin: 0; font-size: 12.5px; line-height: 1.7; color: var(--gp-foreground); }
.gp-terms-check { display: flex; align-items: center; gap: 8px; padding: 12px 16px; font-size: 14px; font-weight: 700; border-top: 1px solid var(--gp-line); }
.gp-terms-check input { width: 17px; height: 17px; flex-shrink: 0; }
.gp-terms-all { display: flex; align-items: center; gap: 10px; background: var(--gp-surface-2); border-radius: 12px; padding: 14px 16px; margin-bottom: 16px; font-weight: 800; font-size: 15px; }
.gp-terms-all input { width: 18px; height: 18px; }

.gp-plan-cards { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 560px) { .gp-plan-cards { grid-template-columns: repeat(2,1fr); } }
.gp-plan-card { position: relative; border: 2px solid var(--gp-line); border-radius: 16px; padding: 22px 20px; cursor: pointer; transition: border-color .15s, background .15s, transform .15s, box-shadow .15s; }
.gp-plan-card:hover { border-color: var(--gp-primary); transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,.1); }
.gp-plan-card.selected { border-color: var(--gp-primary); background: rgba(46,83,57,.05); }
.gp-plan-card input { position: absolute; top: 16px; right: 16px; width: 18px; height: 18px; }
.gp-plan-card-title { font-size: 14px; font-weight: 700; color: var(--gp-muted); }
.gp-plan-card-price { font-size: 26px; font-weight: 800; color: var(--gp-foreground); margin: 8px 0 10px; letter-spacing: -0.5px; }
.gp-plan-card-highlight { border-color: var(--gp-accent); background: rgba(217,98,43,.06); box-shadow: 0 6px 20px rgba(217,98,43,.15); }
.gp-plan-card-highlight .gp-plan-card-price { color: var(--gp-accent); font-size: 32px; }
.gp-plan-card-highlight:hover { border-color: var(--gp-accent); box-shadow: 0 12px 28px rgba(217,98,43,.28); }
.gp-plan-card-badge { position: absolute; top: -12px; left: 20px; background: var(--gp-accent); color: #fff; font-size: 12px; font-weight: 800; padding: 4px 12px; border-radius: 999px; letter-spacing: -0.2px; }
.gp-plan-card-desc { font-size: 12.5px; color: var(--gp-muted); line-height: 1.6; }

.gp-wizard-summary { background: var(--gp-surface-2); border-radius: 12px; padding: 20px 22px; margin-bottom: 20px; }
.gp-wizard-summary-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--gp-line); font-size: 13.5px; }
.gp-wizard-summary-row:last-child { border-bottom: none; }
.gp-wizard-summary-row dt { color: var(--gp-muted); }
.gp-wizard-summary-row dd { font-weight: 700; margin: 0; }
.gp-wizard-summary-row-accent { margin-top: 4px; padding: 12px 14px; background: rgba(217,98,43,.1); border-radius: 10px; border-bottom: none; }
.gp-wizard-summary-row-accent dt { color: var(--gp-accent); font-weight: 700; }
.gp-wizard-summary-row-accent dd { color: var(--gp-accent); font-size: 16px; }
.gp-wizard-done-icon { width: 56px; height: 56px; border-radius: 999px; background: rgba(46,83,57,.1); color: var(--gp-primary); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 26px; }
.gp-account-box { border: 1px solid var(--gp-line); border-radius: 12px; padding: 16px 20px; margin-top: 14px; margin-bottom: 16px; background: var(--gp-surface-2); }
.gp-account-box-title { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 14px; font-weight: 700; color: var(--gp-primary); }
.gp-account-box-num { margin: 0 0 6px; font-size: 17px; font-weight: 800; color: var(--gp-foreground); }
.gp-account-box-holder { font-size: 14px; font-weight: 600; color: var(--gp-muted); }
.gp-account-box-note { margin: 0; font-size: 12.5px; line-height: 1.6; color: var(--gp-muted); }
.gp-rule-list li .dot { color: var(--gp-muted); flex-shrink: 0; }
.gp-lead { font-size: 15px; line-height: 1.75; color: var(--gp-muted); }
.gp-vision-cards { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .gp-vision-cards { grid-template-columns: repeat(2,1fr); } }
.gp-vision-card { border-radius: 16px; padding: 32px 28px; background: var(--gp-surface-2); }
.gp-vision-card.is-accent { background: rgba(46,83,57,.08); }
.gp-vision-card-icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; background: var(--gp-surface); color: var(--gp-primary); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.gp-vision-card.is-accent .gp-vision-card-icon { color: var(--gp-accent); }
.gp-vision-card-label { margin: 18px 0 0; font-size: 19px; font-weight: 800; color: var(--gp-primary); }
.gp-vision-card.is-accent .gp-vision-card-label { color: var(--gp-accent); }
.gp-vision-card-text { margin: 12px 0 0; font-size: 15px; font-weight: 500; line-height: 1.7; color: var(--gp-muted); }

/* 핵심가치 (Core Value) — 비전 페이지 */
.gp-value-grid { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 40px; }
@media (min-width: 640px) { .gp-value-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 960px) { .gp-value-grid { grid-template-columns: repeat(4,1fr); } }
.gp-value-card { border: 1px solid var(--gp-line); border-radius: 16px; padding: 24px 20px; }
.gp-value-card-tag { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .06em; color: #fff; background: var(--gp-primary); border-radius: 999px; padding: 4px 12px; }
.gp-value-card-title { margin: 14px 0 0; font-size: 16px; font-weight: 800; color: var(--gp-foreground); }
.gp-value-card-text { margin: 8px 0 0; font-size: 14px; line-height: 1.65; color: var(--gp-muted); }

/* 2030 비전 목표 — 비전 페이지 */
.gp-goal-grid { display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: 24px; }
@media (min-width: 700px) { .gp-goal-grid { grid-template-columns: repeat(2,1fr); } }
.gp-goal-item { display: flex; gap: 14px; background: var(--gp-surface-2); border-radius: 14px; padding: 18px 20px; }
.gp-goal-num { flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 999px; background: var(--gp-primary); color: #fff; font-size: 14px; font-weight: 800; }
.gp-goal-title { margin: 0; font-size: 15px; font-weight: 800; color: var(--gp-foreground); }
.gp-goal-text { margin: 4px 0 0; font-size: 14px; line-height: 1.6; color: var(--gp-muted); }
.gp-law-box { border: 1px solid var(--gp-line); background: var(--gp-surface-2); border-radius: 12px; padding: 24px; font-size: 15px; line-height: 1.75; }
.gp-law-box h2 { font-weight: 700; margin: 0; }
.gp-accent-text { font-size: 15px; font-weight: 600; color: var(--gp-accent); }

/* ---------- 푸터 ---------- */
.gp-footer { background: var(--gp-primary-dark); color: rgba(255,255,255,.7); }
.gp-footer-inner { padding-top: 40px; padding-bottom: 40px; font-size: 14px; }
.gp-footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .gp-footer-grid { grid-template-columns: repeat(3,1fr); } }
.gp-footer-grid p.title { margin-bottom: 8px; font-weight: 700; color: #fff; }
.gp-footer-grid p { margin: 2px 0; }
.gp-footer-bottom { margin-top: 32px; border-top: 1px solid rgba(255,255,255,.15); padding-top: 24px; font-size: 13px; color: rgba(255,255,255,.5); }

/* ---------- 스크롤탑 ---------- */
.gp-scrolltop { position: fixed; right: 24px; bottom: 24px; z-index: 90; width: 44px; height: 44px; border-radius: 999px; background: var(--gp-primary); color: #fff; border: none; display: none; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 8px 20px rgba(0,0,0,.2); }
.gp-scrolltop.show { display: flex; }

/* ---------- PC 전용 본문 글자 확대 ----------
   위쪽의 전역 +1px 조정만으로는 큰 화면에서 여전히 작다는 피드백이 있어,
   1024px 이상에서 본문/설명류 텍스트를 한 번 더 키웁니다.
   (뱃지·라벨처럼 작아야 자연스러운 요소는 과하지 않게 소폭만 조정) */
@media (min-width: 1024px) {
    .gp-course-badge { font-size: 20px; padding: 9px 22px; }
    .gp-course-sub { font-size: 19px; }
    .gp-course-fact-label { font-size: 16px; }
    .gp-course-fact-value { font-size: 21px; }

    .gp-hero-subtitle { font-size: 16px; }
    .gp-eventcard-body > p { font-size: 15px; }
    .gp-cards-head p.gp-desc { font-size: 16px; }
    .gp-card-desc { font-size: 16px; }
    .gp-notice-title { font-size: 16px; }
    .gp-notice-cta { font-size: 16px; }
    .gp-nextevents-intro p:not(.gp-nextevents-intro-lead) { font-size: 16px; }
    .gp-souvenir-card p { font-size: 16px; }
    .gp-caution-box p { font-size: 15px; }
    .gp-faq-q-text { font-size: 16px; }
    .gp-faq-a { font-size: 16px; }
    .gp-plan-card-desc { font-size: 14px; }
    .gp-box { font-size: 16px; }
    .gp-note-box { font-size: 16px; }
    .gp-rule-list { font-size: 16px; }
    .gp-form-input { font-size: 16px; }
    .gp-wizard-desc { font-size: 15px; }
    .gp-account-box-body { font-size: 16px; }
    .gp-invite-letter p:not(.gp-invite-lead):not(.gp-invite-signature) { font-size: 16px; }
    .gp-greeting-text p { font-size: 16px; }
    .gp-fee-table { font-size: 16px; }
    .gp-law-box { font-size: 16px; }
    .gp-goal-text { font-size: 15px; }
    .gp-value-card-text { font-size: 15px; }
}
