/* main 안에 있을 때, 화면 전체로 펼치기 */
main.container.wrap > .page-hero{
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
}

/* ===== 공통 Hero ===== */
.page-hero{
  position: relative;
  padding: 72px 0 64px;
  color: #fff;
  overflow: hidden;
}

.page-hero.page-hero--tight{
  padding: 56px 0 44px;
}

.page-hero .wrap,
.page-hero__inner{
  position: relative;
  z-index: 2;
}

.page-hero h1,
.page-hero .page-hero__title{
  font-size: 32px;
  line-height: 1.3;
  margin: 0 0 8px;
  letter-spacing: -0.03em;
  color: #fff;
}

.page-hero .desc,
.page-hero .page-hero__desc,
.page-hero p{
  margin: 0;
  max-width: 640px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255,255,255,.92);
}

.page-hero--photo{
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-hero--photo::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.45));
}

/* ===== 소식 Hero ===== */
.page-hero--news{
  background-image:
    linear-gradient(135deg, #0a5bd3, #08266e),
    url("/images/hero_news.jpg");
}

/* notices 페이지에서는 cert 화면처럼 높이/톤 맞춤 */
.page-hero--news.page-hero--tight{
  padding: 56px 0 44px;
}

/* 조금 더 진하게 보이고 싶으면 */
.page-hero--news.page-hero--photo::after{
  background: linear-gradient(180deg, rgba(0,0,0,.10), rgba(0,0,0,.28));
}

/* ===== 본문 ===== */
.news-notices{
  position: relative;
  padding-top: 28px;
}
.news-notices::before{
  content: "";
  display: block;
  width: 100%;
  height: 3px;
  margin: 0 0 15px;
  border-radius: 999px;
}

.news-notices .card{
  padding: 52px 42px 56px;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 32px rgba(15, 23, 42, .05);
}

.news-notices .section-title{
  margin: 0;
  text-align: center;
  font-size: 52px;
  font-weight: 300;
  color: #1f2937;
  letter-spacing: -0.04em;
}
.news-notices .section-title::after{
  content: "";
  display: block;
  width: 84px;
  height: 2px;
  margin: 16px auto 0;
  background: #1f2937;
}

.news-notices .notice-toolbar{
  margin-top: 34px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  flex-wrap: wrap;
}

.news-notices .notice-total{
  font-size: 15px;
  color: #6b7280;
}
.news-notices .notice-total strong{
  color: #0f766e;
  font-weight: 700;
}

.news-notices .notice-search{
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.news-notices .notice-search select,
.news-notices .notice-search input{
  height: 44px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  background: #fff;
  padding: 0 14px;
  font-size: 14px;
  color: #111827;
}
.news-notices .notice-search select{
  min-width: 120px;
}
.news-notices .notice-search input{
  width: 260px;
}
.news-notices .notice-search button{
  width: 44px;
  height: 44px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  font-size: 16px;
}
.news-notices .notice-search button:hover{
  background: #111827;
  color: #fff;
  border-color: #111827;
}

.news-notices .notice-board{
  margin-top: 18px;
  border-top: 2px solid #334155;
}

/* ===== 핵심: 현재 div 구조를 grid 게시판으로 강제 ===== */
.news-notices .notice-list-head{
  display: grid !important;
  grid-template-columns: 90px minmax(0,1fr) 130px 110px 90px;
  align-items: center;
  border-bottom: 1px solid #e5e7eb;
  background: #f8fafc;
}

.news-notices .notice-list-head > div{
  display: block !important;
  padding: 16px 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: #374151;
}

.news-notices .notice-list{
  list-style: none;
  margin: 0;
  padding: 0;
}

.news-notices .notice-list > li{
  display: grid !important;
  grid-template-columns: 90px minmax(0,1fr) 130px 110px 90px;
  align-items: center;
  min-height: 64px;
  border-bottom: 1px solid #eef2f7;
}

.news-notices .notice-list > li > div{
  display: block !important;
  padding: 18px 12px;
  font-size: 14px;
  color: #374151;
}

.news-notices .notice-no,
.news-notices .notice-meta-center,
.news-notices .notice-col-no,
.news-notices .notice-col-writer,
.news-notices .notice-col-view{
  text-align: center;
}

.news-notices .notice-title-cell{
  min-width: 0;
}

.news-notices .notice-title-link{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #111827;
  text-decoration: none;
}

.news-notices .notice-title-link:hover{
  color: #2563eb;
}

.news-notices .notice-title-text{
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-notices .notice-badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}

.news-notices .notice-empty{
  padding: 70px 20px;
  text-align: center;
  color: #9ca3af;
  border-bottom: 1px solid #eef2f7;
  font-size: 15px;
}

.news-notices .notice-pagination{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.news-notices .notice-pagination a,
.news-notices .notice-pagination span{
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  background: #fff;
  color: #4b5563;
  font-size: 14px;
  text-decoration: none;
}

.news-notices .notice-pagination a:hover{
  border-color: #111827;
  color: #111827;
}

.news-notices .notice-pagination .is-active{
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
  font-weight: 700;
}

/* ===== 반응형 ===== */
@media (max-width: 900px){
  .news-notices .card{
    padding: 36px 22px 42px;
  }

  .news-notices .section-title{
    font-size: 36px;
  }

  .news-notices .notice-search input{
    width: 220px;
  }

  .news-notices .notice-list-head,
  .news-notices .notice-list > li{
    grid-template-columns: 80px minmax(0,1fr) 110px 100px;
  }

  .news-notices .notice-col-view,
  .news-notices .notice-list > li > div:nth-child(5){
    display: none !important;
  }
    .page-hero{
    padding: 52px 0 40px;
  }

  .page-hero h1,
  .page-hero .page-hero__title{
    font-size: 24px;
  }

  .page-hero .desc,
  .page-hero .page-hero__desc,
  .page-hero p{
    font-size: 14px;
  }
}

@media (max-width: 640px){
  .news-notices .notice-toolbar{
    align-items: stretch;
  }

  .news-notices .notice-search{
    width: 100%;
  }

  .news-notices .notice-search select{
    width: 100%;
  }

  .news-notices .notice-search input{
    width: calc(100% - 52px);
  }

  .news-notices .notice-list-head,
  .news-notices .notice-list > li{
    grid-template-columns: minmax(0,1fr) 90px;
  }

  .news-notices .notice-col-no,
  .news-notices .notice-col-writer,
  .news-notices .notice-list > li > div:nth-child(1),
  .news-notices .notice-list > li > div:nth-child(3){
    display: none !important;
  }

  .news-notices .notice-list-head > div,
  .news-notices .notice-list > li > div{
    padding: 14px 8px;
    font-size: 13px;
  }

  .news-notices .notice-title-text{
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
}
/* ===== 상세 상단형 게시판 뷰 : 카드형 ===== */
.notice-view-page{
  padding-top: 28px;
}

.notice-view-page::before{
  content: "";
  display: block;
  width: 100%;
  height: 3px;
  margin: 0 0 15px;
  border-radius: 999px;
}

.board-view{
  border: 1px solid #e5e7eb;
  border-top: 1px solid #444;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 32px rgba(15, 23, 42, .05);
  overflow: hidden;
}

.board-view__head{
  padding: 24px 20px 0;
  background: #fff;
}

.board-view__title{
  margin: 0;
  padding: 0 0 26px;
  font-size: 28px;
  line-height: 1.4;
  font-weight: 700;
  color: #111;
  letter-spacing: -0.03em;
  border-bottom: 1px solid #ddd;
  word-break: keep-all;
}

.board-view__meta{
  display: grid;
  grid-template-columns: 1.2fr 1fr .6fr;
  gap: 0;
  border-bottom: 1px solid #ddd;
}

.board-view__meta-item{
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 8px;
  font-size: 15px;
  color: #333;
}

.board-view__label{
  color: #666;
  min-width: 58px;
  flex-shrink: 0;
}

.board-view__attach{
  display: grid;
  grid-template-columns: 100px minmax(0,1fr);
  gap: 0;
  padding: 10px 0 14px;
  border-bottom: 1px solid #ddd;
}

.board-view__attach-label{
  padding: 0 8px;
  font-size: 15px;
  color: #666;
  line-height: 1.9;
}

.board-view__attach-list{
  min-width: 0;
}

.board-view__attach-row{
  font-size: 15px;
  line-height: 1.9;
  color: #222;
  word-break: break-all;
}

.board-view__attach-name{
  color: #222;
}

.board-view__attach-size{
  color: #666;
  margin-left: 4px;
}

.board-view__body{
  padding: 32px 20px 40px;
  min-height: 240px;
  background: #fff;
}

.board-view__content{
  font-size: 16px;
  line-height: 1.9;
  color: #222;
  word-break: break-word;
}

.board-view__content p{
  margin: 0 0 1.2em;
}

/* ===== Quill 이미지 정렬 반영 ===== */
.board-view__content img,
.notice-view__content img{
  max-width: 100%;
  height: auto;
}

.board-view__content .ql-align-center img,
.notice-view__content .ql-align-center img{
  display: inline-block;
  margin: 12px 0;
}

.board-view__content .ql-align-right img,
.notice-view__content .ql-align-right img{
  display: inline-block;
  margin: 12px 0;
}

.board-view__content .ql-align-justify img,
.notice-view__content .ql-align-justify img{
  display: inline-block;
  margin: 12px 0;
}

/* 기본 이미지 여백 */
.board-view__content p img,
.notice-view__content p img{
  margin-top: 12px;
  margin-bottom: 12px;
}

.board-view__content table{
  width: 100% !important;
  border-collapse: collapse !important;
  table-layout: fixed;
  margin: 20px 0;
  border: 1px solid #666;
}

.board-view__content th,
.board-view__content td{
  border: 1px solid #666 !important;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.7;
  vertical-align: top;
  word-break: break-word;
}

.board-view__content th{
  background: #f5f5f5;
  font-weight: 700;
  text-align: center;
}

.board-view__content ul,
.board-view__content ol{
  margin: 0 0 1.2em 1.4em;
  padding: 0;
}

.board-view__content a{
  color: #1d4ed8;
  text-decoration: underline;
}
.board-view__content .ql-align-center{
  text-align: center;
}

.board-view__content .ql-align-right{
  text-align: right;
}

.board-view__content .ql-align-justify{
  text-align: justify;
}

.board-view__content .ql-size-small{
  font-size: 0.75em;
}

.board-view__content .ql-size-large{
  font-size: 1.5em;
}

.board-view__content .ql-size-huge{
  font-size: 2.5em;
}

.board-view__content .ql-font-pretendard{
  font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
}

.board-view__content .ql-font-notosanskr{
  font-family: 'Noto Sans KR', sans-serif;
}

.board-view__content .ql-font-nanumgothic{
  font-family: 'Nanum Gothic', sans-serif;
}

.board-view__content .ql-font-malgun{
  font-family: 'Malgun Gothic', sans-serif;
}
.board-view__content img,
.notice-view__content img{
  max-width: 100%;
  height: auto;
  display: block;
  margin: 12px auto;
}
.board-view__footer{
  display: flex;
  justify-content: center;
  padding: 8px 20px 32px;
  background: #fff;
}

.board-view__btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  height: 42px;
  padding: 0 20px;
  background: #10b79a;
  border: 1px solid #10b79a;
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
}

.board-view__btn:hover{
  background: #0ea68c;
  border-color: #0ea68c;
}
.board-view__attach-name{
  color: #1d4ed8;
  text-decoration: underline;
  word-break: break-all;
}

.board-view__attach-name:hover{
  color: #1e40af;
}

/* ===== 반응형 ===== */
@media (max-width: 900px){
  .board-view{
    border-radius: 16px;
  }

  .board-view__title{
    font-size: 24px;
    padding-bottom: 20px;
  }

  .board-view__meta{
    grid-template-columns: 1fr;
  }

  .board-view__meta-item{
    min-height: 44px;
    border-bottom: 1px solid #f0f0f0;
  }

  .board-view__meta-item:last-child{
    border-bottom: 0;
  }

  .board-view__attach{
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .board-view__attach-label{
    padding-top: 2px;
  }

  .board-view__body{
    padding: 24px 16px 32px;
  }
}

@media (max-width: 640px){
  .board-view__head{
    padding: 20px 14px 0;
  }

  .board-view__title{
    font-size: 21px;
  }

  .board-view__meta-item,
  .board-view__attach-label,
  .board-view__attach-row{
    font-size: 14px;
  }

  .board-view__content{
    font-size: 15px;
  }

  .board-view__content th,
  .board-view__content td{
    font-size: 13px;
    padding: 8px 10px;
  }

  .board-view__footer{
    padding: 8px 14px 28px;
  }
}