/* ===== 멀티 공지 팝업 공통 ===== */
.notice_popup_wrapper{
  position: fixed;          /* 페이지 스크롤과 상관 없이 고정 */
  top: 60px;
  left: 0;
  width:100%;
  z-index: 9999;            /* Bootstrap .modal 과는 다른 레이어 */
  
  display: flex;
  flex-wrap: wrap;
  justify-content: center;  /* 가로 중앙 정렬 */
  align-items: flex-start;
  gap:10px;
  pointer-events: none;     /* 빈 영역 클릭은 아래로 통과 */
}

/* 실제 팝업 박스만 클릭 가능하도록 */
.notice_popup_wrapper .popup_container {
  pointer-events: auto;
}

.popup_container {
  position: relative;
  box-sizing: border-box;

  /* 기본 PC 기준 박스 크기 */
  min-width: 400px;
  max-width: 450px;
  min-height: 400px;
  max-height: 550px;

  overflow-x: hidden;
  overflow-y: hidden;
  background-color: #212529;
  border-radius: 10px;
}

/* ==== PC 레이아웃 (열 수 컨트롤) ==== */
/* 1400px 이상: 최대 5칸 */
@media (min-width: 1400px) {
  .popup_container {
    flex: 0 0 calc((100% - 4 * 10px) / 5);   /* (전체 - 간격) / 5 */
    max-width: 450px;
  }
}

/* 1200~1399px: 최대 4칸 */
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .popup_container {
    flex: 0 0 calc((100% - 3 * 10px) / 4);
    max-width: 450px;
  }
}

/* 992~1199px: 최대 3칸 */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .popup_container {
    flex: 0 0 calc((100% - 2 * 10px) / 3);
    max-width: 450px;
  }
}

/* ==== 태블릿/모바일 공통 기본 조정 ==== */
@media (max-width: 991.98px) {
  .notice_popup_wrapper {
    top: 40px;
    justify-content: center;
  }

  .popup_container {
    min-width: auto;
    max-width: 95%;
    width: 95%;
    min-height: 400px;
    max-height: 600px;      /* px 누락되어 있던 부분 보정 */
    margin: 10px auto;
    border-radius: 6px;
  }
}

/* ==== 모바일(폰) 1열 전용 ==== */
@media (max-width: 768px) {
  .notice_popup_wrapper {
    top: 60px;
    flex-direction: column;   /* 세로 쌓기 */
    align-items: center;
  }
  
  .popup_container {
    width: 98%;
    max-width: 480px;         /* 너무 넓어지지 않게 제한 */
    min-height: 400px;
    max-height: 600px;      /* px 누락되어 있던 부분 보정 */
  }
}

/* ===== 내부 구성 ===== */
.mp-header {
  font-size:16px;
  font-weight:bold;
  padding:10px 14px;
  height: 50px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  background-size: cover;
  background-position: top;
  border-radius: 15px 15px 0 0;
  background-color: #131313;
}

.mp-body-textbox {
  margin: 0;
  padding-bottom:30px;
  min-height:400px;
  max-height:530px;
  overflow-y: auto;
  padding: 20px 20px 50px 20px;
  text-align: left;
}

.mp-body-imgbox {
  margin:0;
  padding: 0 0 60px 0;
  text-align: left;
  overflow-y: hidden;
}

.mp-footer{
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
}

.mp-logo {
  max-height: 40px;
  padding: 5px;
}

/* 스크롤바 (mp-body-textbox 기준으로 수정) */
.mp-body-textbox::-webkit-scrollbar {
  width: 10px;
}
.mp-body-textbox::-webkit-scrollbar-thumb {
  background: rgb(37, 36, 36);
  border-radius: 10px;
}
.mp-body-textbox::-webkit-scrollbar-track {
  background: rgba(220, 20, 60, .1);
}

/* 닫기 버튼 */
.mp-close-btn {
  padding: 10px 8px;
  background-color: transparent;
  position: absolute;
  top: 10px;
  right: 10px;
  box-shadow: none;
  color: #ffffff;
}
.mp-close-btn:hover, .mp-close-btn:focus {
  color: #a77362;
}
.mp-close-btn .fa-close:before {
  content: '\00D7';
  font-size: 20px;
  font-weight: bold;
}

/* 오늘은 보지 않기 버튼 */
.mp-not-today-btn {
  background: linear-gradient(to bottom,#41081d 0%,#41081d 100%);
  color: #ffffff;
  border-radius: 0;
  height: 40px;
  width: 100%;
  font-size: 0.95rem;
}
.mp-not-today-btn:hover,
.mp-not-today-btn:focus {
  border: 1px solid #721e3d;
}
