/* ===========================================================================
   board.css — 게시판 대시보드 스킨
   board skins (list / photo / schedule / webzine / view / write) live inside
   .subpage-body (subpage_hero), which already provides the 15% L/R margins.
   Design language: navy #1e3a8a, accent gold #f5c451, body 18px / small 16px.
   =========================================================================== */

.board-page{font-size:18px;color:#3a4152}
.board-page .board-desc{
  margin:0 0 26px;padding:18px 24px;font-size:16px;line-height:1.8;color:#475067;
  background:linear-gradient(135deg,#f4f7fd,#eef3fc);border-left:4px solid #1e3a8a;
  border-radius:0 12px 12px 0;
}

/* ---- tools bar (search + write) ---------------------------------------- */
.board-tools{
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  flex-wrap:wrap;margin:0 0 22px;
}
.board-search{display:flex;gap:8px;flex:1 1 auto;max-width:430px}
.board-search input[type=search]{
  flex:1 1 auto;min-width:0;height:44px;padding:0 16px;font-size:16px;
  border:1px solid #d8deea;border-radius:10px;color:#222b3d;background:#fff;
  transition:border-color .2s,box-shadow .2s;
}
.board-search input[type=search]:focus{
  outline:0;border-color:#1e3a8a;box-shadow:0 0 0 3px rgba(30,58,138,.12);
}
.board-search button{
  flex:0 0 auto;height:44px;padding:0 22px;font-size:16px;font-weight:600;
  color:#fff;background:#1e3a8a;border:0;border-radius:10px;cursor:pointer;
  transition:background .2s;
}
.board-search button:hover{background:#16306f}

.board-btn-write{
  flex:0 0 auto;display:inline-flex;align-items:center;gap:7px;height:44px;
  padding:0 24px;font-size:16px;font-weight:700;text-decoration:none;color:#1e3a8a;
  background:#f5c451;border-radius:10px;box-shadow:0 6px 16px rgba(245,196,81,.35);
  transition:transform .15s,box-shadow .2s,background .2s;
}
.board-btn-write:hover{background:#f3bb33;transform:translateY(-1px);box-shadow:0 9px 22px rgba(245,196,81,.45)}

/* ---- list table -------------------------------------------------------- */
.board-table-wrap{
  border-radius:14px;overflow:hidden;box-shadow:0 10px 30px rgba(20,30,60,.08);
  border:1px solid #eef1f6;margin:0 0 28px;
}
.board-table{width:100%;border-collapse:collapse;background:#fff;font-size:17px}
.board-table thead th{
  background:linear-gradient(135deg,#1e3a8a,#2d4ba0);color:#fff;font-weight:700;
  font-size:15px;letter-spacing:.02em;padding:15px 14px;text-align:center;white-space:nowrap;
}
.board-table thead th.subj-col{text-align:left}
.board-table tbody td{
  padding:15px 14px;border-bottom:1px solid #eef1f6;color:#3a4152;
  text-align:center;vertical-align:middle;
}
.board-table tbody tr:last-child td{border-bottom:0}
.board-table tbody tr:hover{background:#f7f9fd}
.board-table .num-col{width:88px;color:#8b94a7;font-size:15px}
.board-table .meta-col{width:108px;font-size:15px;color:#6b7488;white-space:nowrap}
.board-table .adm-col{width:44px}
.board-table .subj{text-align:left}
.board-table .subj a{
  color:#222b3d;text-decoration:none;font-weight:600;transition:color .15s;
}
.board-table .subj a:hover{color:#1e3a8a;text-decoration:underline}
.board-table input[type=checkbox]{width:17px;height:17px;accent-color:#1e3a8a;cursor:pointer}

/* notice rows */
.notice-row{background:#fffdf5}
.notice-row:hover{background:#fff8e6}
.notice-pin{
  display:inline-block;padding:3px 11px;font-size:13px;font-weight:700;color:#1e3a8a;
  background:#f5c451;border-radius:20px;letter-spacing:.02em;
}
.notice-row .subj a{font-weight:700;color:#16306f}

/* secret rows */
.secret-row .subj{color:#8b94a7}
.lock-ic{margin-right:5px;opacity:.8}

/* badges */
.board-table .badge{
  display:inline-block;margin-left:7px;padding:1px 8px;font-size:13px;font-weight:600;
  color:#1e3a8a;background:#eaf0fb;border-radius:20px;vertical-align:middle;
}
.board-empty{padding:54px 14px!important;color:#9aa3b5;font-size:17px;text-align:center}

/* ---- admin bulk bar ---------------------------------------------------- */
.admin-bulk{
  display:flex;align-items:center;gap:14px;margin:0 0 26px;padding:14px 20px;
  background:#f4f6fb;border:1px dashed #c9d3e6;border-radius:12px;font-size:15px;color:#5a647a;
}
.board-btn-del,.admin-bulk .btn-danger{
  padding:9px 20px;font-size:15px;font-weight:700;color:#fff;background:#dc2640;
  border:0;border-radius:9px;cursor:pointer;transition:background .2s;
}
.board-btn-del:hover,.admin-bulk .btn-danger:hover{background:#bd1c33}

/* ---- pager ------------------------------------------------------------- */
.board-pager,.pager{
  display:flex;justify-content:center;flex-wrap:wrap;gap:7px;margin:30px 0 0;
}
.board-pager a,.pager a{
  min-width:42px;height:42px;display:inline-flex;align-items:center;justify-content:center;
  padding:0 12px;font-size:16px;font-weight:600;color:#475067;text-decoration:none;
  background:#fff;border:1px solid #e2e7f1;border-radius:9px;transition:all .15s;
}
.board-pager a:hover,.pager a:hover{border-color:#1e3a8a;color:#1e3a8a}
.board-pager a.on,.pager a.on{background:#1e3a8a;border-color:#1e3a8a;color:#fff}

/* ===========================================================================
   POST VIEW
   =========================================================================== */
.post-view .post{
  background:#fff;border:1px solid #eef1f6;border-radius:16px;
  box-shadow:0 10px 34px rgba(20,30,60,.07);padding:42px 46px;margin:0 0 26px;
}
.post-head{border-bottom:2px solid #f0f3f8;padding-bottom:22px;margin-bottom:28px}
.post-head h1{font-size:30px;line-height:1.4;color:#16223f;margin:0 0 14px;font-weight:800}
.post-meta{display:flex;flex-wrap:wrap;gap:9px;align-items:center;font-size:15px;color:#8b94a7}
.post-meta span,.post-meta time{color:#8b94a7}
.event-bar{
  display:inline-block;margin:0 0 24px;padding:10px 18px;font-size:16px;font-weight:600;
  color:#1e3a8a;background:#eef3fc;border-radius:10px;
}
.post-body{font-size:18px;line-height:1.95;color:#34404f;word-break:keep-all;overflow-wrap:break-word}
.post-body p{margin:0 0 1.1em}
.post-body img{max-width:100%!important;height:auto!important;border-radius:10px;margin:12px 0}
.post-body h1,.post-body h2,.post-body h3{color:#16223f;line-height:1.5;margin:1.4em 0 .6em}
.post-body a{color:#1e3a8a;text-decoration:underline}
.post-body ul,.post-body ol{padding-left:1.4em;margin:0 0 1.1em}
.post-body table{border-collapse:collapse;max-width:100%!important;height:auto!important}
.post-body td,.post-body th{border:1px solid #dde3ee;padding:8px 12px;word-break:break-word}
/* 이전(그누보드) 본문의 고정폭 미디어가 화면을 넘지 않도록 */
.post-body iframe,.post-body video,.post-body embed,.post-body object{max-width:100%}
.post-body *{max-width:100%}

/* inline images shown above body */
.post-images{display:flex;flex-direction:column;gap:18px;margin:0 0 30px}
.post-image-figure{margin:0}
.post-image-link{display:block;border-radius:12px;overflow:hidden}
.post-images img{display:block;width:100%;height:auto}

/* attachments */
.attachments-block{margin:34px 0 0;padding:24px 26px;background:#f7f9fd;border-radius:14px}
.attachments-block h3{display:flex;align-items:center;gap:9px;font-size:18px;color:#16223f;margin:0 0 16px}
.att-count{font-size:15px;color:#8b94a7;font-weight:600}
.att-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.att-file-item{
  display:flex;align-items:center;gap:14px;padding:13px 16px;background:#fff;
  border:1px solid #e7ecf5;border-radius:11px;
}
.att-file-icon{font-size:24px;flex:0 0 auto}
.att-file-info{flex:1 1 auto;min-width:0}
.att-file-name{font-size:16px;font-weight:600;color:#222b3d;word-break:break-all}
.att-file-meta{display:flex;gap:10px;margin-top:3px;font-size:14px;color:#9aa3b5}
.att-file-dl{
  flex:0 0 auto;display:inline-flex;align-items:center;gap:7px;padding:9px 18px;
  font-size:15px;font-weight:700;color:#fff;background:#1e3a8a;border-radius:9px;
  text-decoration:none;transition:background .2s;
}
.att-file-dl:hover{background:#16306f}

/* post actions */
.post-actions{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 28px}
.post-actions .btn{
  display:inline-flex;align-items:center;height:46px;padding:0 26px;font-size:16px;
  font-weight:600;text-decoration:none;color:#1e3a8a;background:#fff;
  border:1px solid #d2dae9;border-radius:10px;cursor:pointer;transition:all .15s;
}
.post-actions .btn:hover{border-color:#1e3a8a;background:#f4f7fd}
.post-actions .btn-danger{color:#fff;background:#dc2640;border-color:#dc2640}
.post-actions .btn-danger:hover{background:#bd1c33;border-color:#bd1c33}
.post-actions form{display:inline}

/* prev / next */
.prev-next{
  display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;
  padding:20px 0;border-top:1px solid #eef1f6;border-bottom:1px solid #eef1f6;margin:0 0 30px;
}
.prev-next a{
  flex:1 1 45%;font-size:16px;color:#475067;text-decoration:none;padding:8px 4px;
  transition:color .15s;
}
.prev-next a:last-child{text-align:right}
.prev-next a:hover{color:#1e3a8a}

/* comments */
.comments{margin:0 0 20px}
.comments h3{font-size:20px;color:#16223f;margin:0 0 18px}
.comments ul{list-style:none;margin:0 0 26px;padding:0;display:flex;flex-direction:column;gap:14px}
.comments li{padding:16px 20px;background:#fff;border:1px solid #eef1f6;border-radius:12px}
.comments li.muted{color:#9aa3b5;text-align:center;background:#f7f9fd;border-style:dashed}
.comments li strong{color:#16223f;font-size:16px;margin-right:8px}
.comments li time.muted{font-size:14px;color:#9aa3b5}
.comments li p{margin:8px 0 0;font-size:16px;line-height:1.8;color:#34404f}
.comment-form{display:flex;flex-direction:column;gap:12px;padding:22px 24px;background:#f7f9fd;border-radius:14px}
.comment-form input[type=text],.comment-form textarea{
  width:100%;padding:12px 16px;font-size:16px;color:#222b3d;background:#fff;
  border:1px solid #d8deea;border-radius:10px;font-family:inherit;
}
.comment-form input:focus,.comment-form textarea:focus{
  outline:0;border-color:#1e3a8a;box-shadow:0 0 0 3px rgba(30,58,138,.1);
}
.comment-form .btn-primary{
  align-self:flex-end;padding:11px 28px;font-size:16px;font-weight:700;color:#fff !important;
  background:#1e3a8a;border:0;border-radius:10px;cursor:pointer;transition:background .2s;
}
.comment-form .btn-primary:hover{background:#16306f}

/* ===========================================================================
   SECRET GATE
   =========================================================================== */
.secret-gate{display:flex;justify-content:center;padding:20px 0 40px}
.sg-card{
  width:100%;max-width:440px;text-align:center;background:#fff;border:1px solid #eef1f6;
  border-radius:18px;box-shadow:0 14px 40px rgba(20,30,60,.1);padding:46px 40px;
}
.sg-icon{font-size:46px;margin-bottom:10px}
.sg-card h1{font-size:24px;color:#16223f;margin:0 0 8px}
.sg-hint{font-size:15px;color:#8b94a7;margin:0 0 22px}
.sg-error{margin:0 0 16px;padding:11px;font-size:15px;color:#bd1c33;background:#fdecef;border-radius:9px}
.sg-form{display:flex;flex-direction:column;gap:12px}
.sg-form input[type=password]{
  padding:13px 16px;font-size:16px;text-align:center;border:1px solid #d8deea;
  border-radius:10px;font-family:inherit;
}
.sg-form input:focus{outline:0;border-color:#1e3a8a;box-shadow:0 0 0 3px rgba(30,58,138,.1)}
.sg-form .btn-primary{
  padding:13px;font-size:16px;font-weight:700;color:#fff !important;background:#1e3a8a;border:0;
  border-radius:10px;cursor:pointer;transition:background .2s;
}
.sg-form .btn-primary:hover{background:#16306f}
.sg-back{margin:20px 0 0;font-size:15px}
.sg-back a{color:#8b94a7;text-decoration:none}
.sg-back a:hover{color:#1e3a8a;text-decoration:underline}

/* ===========================================================================
   WRITE / EDIT
   =========================================================================== */
.post-write .board-write-h{font-size:24px;color:#16223f;margin:0 0 24px;font-weight:800}
.post-write .write-form,.post-write form{display:flex;flex-direction:column;gap:16px}
.post-write label{font-size:15px;font-weight:600;color:#475067;margin-bottom:-8px}
.post-write input[type=text],.post-write input[type=password],
.post-write input[type=date],.post-write input[type=datetime-local],
.post-write select,.post-write textarea{
  width:100%;padding:12px 16px;font-size:16px;color:#222b3d;background:#fff;
  border:1px solid #d8deea;border-radius:10px;font-family:inherit;
}
.post-write input:focus,.post-write select:focus,.post-write textarea:focus{
  outline:0;border-color:#1e3a8a;box-shadow:0 0 0 3px rgba(30,58,138,.1);
}
.post-write .form-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:8px}
.post-write .btn-primary{
  padding:13px 30px;font-size:16px;font-weight:700;color:#fff !important;background:#1e3a8a;border:0;
  border-radius:10px;cursor:pointer;transition:background .2s;
}
.post-write .btn-primary:hover{background:#16306f}
.post-write .btn-cancel{
  padding:13px 26px;font-size:16px;font-weight:600;color:#475067;background:#fff;
  border:1px solid #d2dae9;border-radius:10px;text-decoration:none;cursor:pointer;
  display:inline-flex;align-items:center;
}
.post-write .btn-cancel:hover{border-color:#1e3a8a;color:#1e3a8a}
.qna-notice{
  margin:0 0 18px;padding:14px 20px;font-size:15px;line-height:1.7;color:#475067;
  background:#eef3fc;border-radius:11px;border-left:4px solid #1e3a8a;
}

/* ===========================================================================
   PHOTO GALLERY
   =========================================================================== */
.photo-grid{
  display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin:0 0 28px;
}
.photo-card{
  position:relative;background:#fff;border:1px solid #eef1f6;border-radius:14px;
  overflow:hidden;box-shadow:0 8px 24px rgba(20,30,60,.07);
  transition:transform .2s,box-shadow .2s;
}
.photo-card:hover{transform:translateY(-3px);box-shadow:0 14px 34px rgba(20,30,60,.13)}
.photo-card a{text-decoration:none;color:inherit;display:block}
.photo-thumb{
  width:100%;aspect-ratio:4/3;background-size:cover;background-position:center;
  background-color:#eef1f6;
}
.photo-meta{padding:15px 17px}
.photo-title{font-size:17px;font-weight:700;color:#16223f;line-height:1.4;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.photo-sub{margin-top:7px;font-size:14px;color:#8b94a7}
.photo-check{position:absolute;top:11px;left:11px;z-index:2;background:rgba(255,255,255,.92);
  border-radius:7px;padding:4px;line-height:0}
.photo-check input{width:18px;height:18px;accent-color:#1e3a8a;cursor:pointer}

/* ===========================================================================
   SCHEDULE / CALENDAR
   =========================================================================== */
.schedule-board .cal-nav{display:flex;align-items:center;gap:14px}
.schedule-board .cal-nav span{font-size:19px;font-weight:800;color:#16223f;font-family:'Poppins',sans-serif}
.board-btn{
  display:inline-flex;align-items:center;justify-content:center;height:40px;padding:0 16px;
  font-size:16px;font-weight:600;color:#1e3a8a;background:#fff;border:1px solid #d2dae9;
  border-radius:9px;text-decoration:none;cursor:pointer;transition:all .15s;
}
.board-btn:hover{border-color:#1e3a8a;background:#f4f7fd}
.board-btn.small{height:38px;min-width:42px;padding:0 12px;font-size:17px}

.calendar{width:100%;border-collapse:collapse;background:#fff;border:1px solid #eef1f6;
  border-radius:14px;overflow:hidden;box-shadow:0 10px 30px rgba(20,30,60,.08);table-layout:fixed}
.calendar thead th{
  background:linear-gradient(135deg,#1e3a8a,#2d4ba0);color:#fff;font-size:14px;font-weight:700;
  padding:13px 6px;text-align:center;
}
.calendar thead th.sun{color:#ffd1d1}
.calendar thead th.sat{color:#cfe0ff}
.calendar td{
  height:104px;vertical-align:top;padding:8px;border:1px solid #eef1f6;font-size:15px;
}
.calendar td.empty{background:#fafbfd}
.calendar td.today{background:#fff8e6}
.calendar td .d{display:inline-block;font-weight:700;color:#475067;margin-bottom:5px}
.calendar td.sun .d{color:#dc2640}
.calendar td.sat .d{color:#2d4ba0}
.calendar td.today .d{
  background:#1e3a8a;color:#fff;width:26px;height:26px;border-radius:50%;
  display:inline-flex;align-items:center;justify-content:center;
}
.cal-event{
  display:block;margin:3px 0;padding:3px 8px;font-size:13px;font-weight:600;color:#fff;
  background:#1e3a8a;border-radius:6px;text-decoration:none;white-space:nowrap;
  overflow:hidden;text-overflow:ellipsis;transition:background .15s;
}
.cal-event:hover{background:#16306f}

/* ===========================================================================
   RESPONSIVE
   =========================================================================== */
@media(max-width:900px){
  .photo-grid{grid-template-columns:repeat(2,1fr)}
  .post-view .post{padding:30px 26px}
  .post-head h1{font-size:25px}
  .calendar td{height:78px}
}
@media(max-width:560px){
  .board-page{font-size:16.5px}
  .board-tools{flex-direction:column;align-items:stretch}
  .board-search{max-width:none}
  .board-btn-write{justify-content:center;height:46px}
  /* 목록: 번호·작성자·날짜·조회 숨기고 제목 위주로 */
  .board-table{font-size:15.5px}
  .board-table .meta-col,.board-table thead th.meta-col{display:none}
  .board-table .num-col{width:46px;font-size:13px}
  .board-table thead th,.board-table tbody td{padding:13px 9px}
  .board-table .subj a{white-space:normal;word-break:break-word}
  .board-empty{padding:40px 10px!important}
  /* 사진 게시판: 2열 갤러리 */
  .photo-grid{grid-template-columns:repeat(2,1fr);gap:13px}
  .photo-meta{padding:12px 13px}
  .photo-title{font-size:15px}
  .photo-sub{font-size:13px}
  /* 글 보기 */
  .prev-next a{flex:1 1 100%}
  .prev-next a:last-child{text-align:left}
  .post-view .post{padding:22px 16px}
  .post-head h1{font-size:22px}
  .post-body{font-size:16.5px;overflow-x:auto}
  .att-file-item{flex-wrap:wrap}
  .att-file-dl{margin-left:auto}
  .post-actions{flex-direction:column}
  .post-actions .btn,.post-actions form,.post-actions .btn-danger{width:100%;justify-content:center}
  .post-actions form{display:flex}
  /* 글쓰기 */
  .post-write .form-actions{flex-direction:column}
  .post-write .btn-primary,.post-write .btn-cancel{width:100%;justify-content:center;text-align:center}
  /* 캘린더 */
  .calendar td{height:auto;min-height:54px;font-size:13px;padding:4px}
  .cal-event{font-size:11px;padding:2px 5px}
  .schedule-board .cal-nav span{font-size:16px}
}
@media(max-width:380px){
  .photo-grid{grid-template-columns:1fr}
}

/* ===== 유튜브 클릭재생 facade ===== */
.post-body .yt-facade{position:relative;display:block;width:100%;max-width:860px;margin:18px auto;aspect-ratio:16/9;background:#000;border-radius:12px;overflow:hidden;cursor:pointer;box-shadow:0 8px 28px rgba(0,0,0,.25)}
.post-body .yt-facade__thumb{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;border:0;transition:transform .35s ease,filter .35s ease}
.post-body .yt-facade:hover .yt-facade__thumb{transform:scale(1.04);filter:brightness(.85)}
.post-body .yt-facade__play{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:84px;height:60px;border:0;border-radius:14px;background:rgba(22,22,22,.8);cursor:pointer;transition:background .25s ease,transform .2s ease;padding:0}
.post-body .yt-facade:hover .yt-facade__play{background:#ff0000;transform:translate(-50%,-50%) scale(1.06)}
.post-body .yt-facade__play::before{content:"";position:absolute;top:50%;left:52%;transform:translate(-50%,-50%);border-style:solid;border-width:13px 0 13px 22px;border-color:transparent transparent transparent #fff}
.post-body .yt-facade.is-playing{cursor:default;box-shadow:none}
.post-body .yt-facade__frame{position:absolute;inset:0;width:100%;height:100%;border:0}
@supports not (aspect-ratio:16/9){
  .post-body .yt-facade{height:0;padding-bottom:56.25%}
}
@media(max-width:560px){
  .post-body .yt-facade{margin:14px auto;border-radius:8px}
  .post-body .yt-facade__play{width:64px;height:46px;border-radius:11px}
  .post-body .yt-facade__play::before{border-width:10px 0 10px 17px}
}
