/* ── 오버레이 ── */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    font-family: 'Nanum Gothic', sans-serif;
    padding-bottom:150px;
  }

  /* ── 팝업 본체 ── */
  .popup {
    background: #fff;
    border-radius: 20px;
    width: 600px;
    max-width: 95vw;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    position: relative;
    animation: popIn .35s cubic-bezier(.34,1.56,.64,1);
    display: flex;
    flex-direction: column;
  }

  @keyframes popIn {
    from { opacity: 0; transform: scale(.85) translateY(20px); }
    to   { opacity: 1; transform: scale(1)  translateY(0); }
  }

  /* ── 헤더 ── */
  .popup-header {
    background: linear-gradient(135deg, #00c4bc 0%, #0096a0 100%);
    padding: 26px 32px 22px;
    position: relative;
    flex-shrink: 0;
  }

  .close-btn {
    position: absolute;
    top: 14px;
    right: 16px;
    background: rgba(255,255,255,.22);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 15px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
  }
  .close-btn:hover { background: rgba(255,255,255,.4); }

  /* 공지 라벨 + 카테고리 */
  .header-top-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
  }

  .label-notice {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,.2);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: .3px;
  }

  .badge-new {
    background: #ff5252;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 10px;
    cursor: text;
  }
  .badge-new:focus { outline: 2px dashed rgba(255,255,255,.7); border-radius: 10px; }

  .category-tag {
    background: rgba(255,255,255,.25);
    color: #fff;
    font-size: 11.5px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 10px;
    cursor: text;
  }
  .category-tag:focus { outline: 2px dashed rgba(255,255,255,.7); border-radius: 10px; }

  /* 제목 */
  .notice-title {
    color: #fff;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.45;
    cursor: text;
    margin-bottom: 10px;
  }
  .notice-title:focus { outline: 2px dashed rgba(255,255,255,.7); border-radius: 4px; }

  /* 날짜·작성자 */
  .notice-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12px;
    color: rgba(255,255,255,.75);
  }
  .notice-meta span { display: flex; align-items: center; gap: 4px; cursor: text; }
  .notice-meta span:focus { outline: 2px dashed rgba(255,255,255,.7); border-radius: 3px; }

  /* ── 본문 ── */
  .popup-body {
    padding: 24px 32px 20px;
    overflow-y: auto;
    flex: 1;
    line-height: 1.85;
    font-size: 13.5px;
    color: #333;
    /*font-weight:600;*/
  }

  /* 스크롤바 */
  .popup-body::-webkit-scrollbar { width: 4px; }
  .popup-body::-webkit-scrollbar-track { background: transparent; }
  .popup-body::-webkit-scrollbar-thumb { background: #c8eeec; border-radius: 4px; }

  /* 인사말 */
  .body-greeting {
    margin-bottom: 16px;
    cursor: text;
  }
  .body-greeting:focus { outline: 2px dashed #00c4bc; border-radius: 4px; }

  /* 구분선 */
  .divider {
    height: 1px;
    background: #eee;
    margin: 16px 0;
  }

  /* 주요 내용 박스 */
  .content-box {
    background: #f5fffe;
    border-left: 4px solid #00c4bc;
    border-radius: 0 10px 10px 0;
    padding: 14px 18px;
    margin-bottom: 16px;
  }

  .content-box-title {
    font-size: 12.5px;
    font-weight: 700;
    color: #00a09a;
    margin-bottom: 10px;
    cursor: text;
  }
  .content-box-title:focus { outline: 2px dashed #00c4bc; border-radius: 3px; }

  /* 내용 행 */
  .content-row {
    display: flex;
    gap: 10px;
    margin-bottom: 6px;
    font-size: 13px;
  }
  .content-row:last-child { margin-bottom: 0; }

  .row-label {
    color: #888;
    font-weight: 600;
    white-space: nowrap;
    min-width: 64px;
    cursor: text;
  }
  .row-label:focus { outline: 2px dashed #00c4bc; border-radius: 3px; }

  .row-value {
    color: #222;
    font-weight: 500;
    cursor: text;
  }
  .row-value:focus { outline: 2px dashed #00c4bc; border-radius: 3px; }

  /* 본문 단락 */
  .body-paragraph {
    margin-bottom: 14px;
    color: #444;
    cursor: text;
  }
  .body-paragraph:focus { outline: 2px dashed #00c4bc; border-radius: 4px; }
  .body-paragraph:last-of-type { margin-bottom: 0; }

  /* 주의 문구 */
  .notice-caution {
    background: #fff8f0;
    border: 1px solid #ffd8b2;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 12.5px;
    color: #c0622a;
    margin-top: 16px;
    cursor: text;
  }
  .notice-caution:focus { outline: 2px dashed #ffaa66; border-radius: 10px; }

  /* ── 하단 ── */
  .popup-footer {
    padding: 14px 32px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    background: #fafafa;
  }

  .footer-left label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #999;
    cursor: pointer;
  }
  .footer-left input[type="checkbox"] {
    accent-color: #00c4bc;
    width: 14px; height: 14px;
    cursor: pointer;
  }
  .footer-left span { cursor: text; }
  .footer-left span:focus { outline: 2px dashed #00c4bc; border-radius: 3px; }

  .btn-confirm {
    padding: 9px 24px;
    background: linear-gradient(135deg, #00c4bc 0%, #0096a0 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: opacity .2s;
  }
  .btn-confirm:hover { opacity: .88; }
  .btn-confirm span { cursor: text; }
  .btn-confirm span:focus { outline: 2px dashed rgba(255,255,255,.7); border-radius: 3px; }