@media screen and (max-width: 767px) {

.wrap{
  width: 100%;
  height: 100%;
  position: relative;
}

.main-header{
  width: 100%;
  height: 60px;
  background-color: #0a52a7;
  padding: 0 20px;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
}

.main-logo{
  width: 150px;
  height: 40px;
  transform: translateX(-15px);
}

.main-logo a{
  display: block;
  width: 100%;
  height: 100%;
}

.main-menu{
  width: 300px;
  height: 50px;
  transition-duration: 0.2s;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #F5F7FA;
  font-weight: 500;
  cursor: pointer;
  font-size: 16px;
  display: none;
}

.menu-icon{
  width: 25px;
  height: 25px;
}

.menu-icon img{
    object-fit: contain;
}

.sub-menu-wrap{
    display: none;
}

header img {
    width: 100%;
    height: 100%;
}

/* 모바일 서브 메뉴 한밭 참조 */
/* ========== [딤 오버레이] ========== */
.mo-sub-dim {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mo-sub-dim.active {
  opacity: 1;
  visibility: visible;
}

/* ========== [모바일 메뉴 전체 컨테이너] ========== */
.mo-sub-overlay {
  position: fixed;
  top: 0;
  right: -70%;
  width: 70%;
  height: 100vh;
  background-color: #ffffff;
  z-index: 999;
  transition: right 0.3s ease;
  box-shadow: -4px 0 8px rgba(0, 0, 0, 0.1);
}

.mo-sub-overlay.active {
  right: 0;
}

/* ========== [내부 래퍼] ========== */
.mo-sub-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* ========== [상단 로고/닫기 영역] ========== */
.mo-sub-logo-box {
  height: 60px;
  background-color: #0a52a7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px 0 0;
  color: #ffffff;
}

.mo-sub-logo {
  display: block;
  object-fit: cover;
  width: 50%;
}

.mo-sub-close-btn {
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

/* ========== [스크롤 영역] ========== */
.mo-sub-list-wrap {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

/* ========== [부모 메뉴] ========== */
.mo-sub-parent-item {
  padding: 15px 20px;
  font-size: 1rem;
  font-weight: 600;
  border-bottom: 1px solid #e0e0e0;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.mo-sub-parent-item.active {
  background-color: #0a52a7;
  color: #ffffff;
}

/* ========== [자식 메뉴] ========== */
.mo-sub-list-li {
  background-color: #fff;
  padding: 12px 20px;
  display: none;
  box-sizing: border-box;
  border-bottom: 1px solid #e0e0e0;
}

.mo-sub-list-li div {
  margin-bottom: 10px;
}

.mo-sub-list-li a {
  display: flex;
  align-items: center;
  height: 46px;
  padding: 0 15px;
  font-size: 0.95rem;
  border: 1px solid #c5c5c5;
  border-radius: 5px;
  color: #333;
  text-decoration: none;
  background-color: #fff;
  box-sizing: border-box;
  transition: background-color 0.2s ease, color 0.2s ease, border 0.2s ease;
}

.mo-sub-list-li a:hover {
  background-color: #e8f0fd;
  border-color: #0a52a7;
  color: #0a52a7;
}

.mo-sub-list-li a.active {
  background-color: #0a52a7;
  color: #fff;
  border-color: #0a52a7;
}

.mo-sub-list-li div::before {
  content: none;
}

/* ========== [기타] ========== */
body.no-scroll {
  overflow: hidden;
}

/* MAIN */
.main-container{
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  box-sizing: border-box;
  margin-top: 60px;
  padding: 0 20px;
}

/* MAIN */
.out-box{
  box-sizing: border-box;
  transition-duration: 0.2s;
}

/* LEFT SUB MENU*/
.out-box-1{
  display: none;
}

/* RIGHT CONTENT */
.out-box-2{
  width: 100%;
  min-height: 70vh;
  height: max-content;
  position: relative;
  margin-top: 30px;
  box-sizing: border-box;
}

/* RIGHT CONTENT */
.contents-box{
  width: 100%;
}

/* RIGHT CONTENT CON - HEADER */
.content-header{
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 15px;
  gap: 30px;
}

/* RIGHT CONTENT SEARCH */
.con-search-wrap{
  width: 100%;
  height: max-content;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  margin-bottom: 20px;
}

/* RIGHT CONTENT SEARCH */
.total{
  color: #444444;
  font-size: 1rem;
}

/* RIGHT CONTENT SEARCH */
.search-category{
  width: 100%;
  height: 40px;
  display: block;
  text-align: center;
  font-size: 0.86rem;
  font-weight: 600;
  border-radius: 5px;
  border: 1px solid #ccc;
}

/* RIGHT CONTENT SEARCH */
.search-input{
  width: 100%;
  height: 40px;
  padding: 0 10px;
  box-sizing: border-box;
  font-size: 0.86rem;
  font-weight: 500;
  border-radius: 5px;
  border: 1px solid #ccc;
}

/* RIGHT CONTENT SEARCH */
.search-btn{
  width: 100%;
  height: 40px;
  background-color: #8CC099;
  border-radius: 5px;
  color: #F5F7FA;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}

/* RIGHT CONTENT SEARCH */
.search-btn:hover{
  background-color: #58A27C;
  color: var(--text-color)
}

/* RIGHT CONTENT */
.con-nav-wrap{
  width: fit-content;
  gap: 10px;
  height: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* RIGHT CONTENT */
.con-nav-wrap a{
  color: #666;
}

/* RIGHT CONTENT */
.con-nav-wrap a .nav-home{
  width: 17px;
  height: 17px;
  display: block;
  object-fit: contain;
}

/* RIGHT CONTENT */
.nav-arr{
  width: 12px;
  height: 12px;
  object-fit: contain;
}

/* RIGHT CONTENT */
.nav-text{
  font-weight: 700;
  color: black;
}

/* RIGHT CONTENT */
.con-nav-wrap a:hover{
  color: var(--primary-color);
}

/* RIGHT CONTENT CON BODY */
.content-body{
  width: 100%;
  height: max-content;
  padding-bottom: 200px;
  min-height: 80vh;
}

/* RIGHT CONTENT CON BODY */
.content-box{
  width: 100%;
  margin-bottom: 40px;
}

.content-box form{
    width: 100%;
}

/* RIGHT CONTENT CON BOX1 BANNER */
/* COMMENT OUT */
.con-1{
  height: 300px;
  background-color: #DCE3ED;
  border-radius: 10px;
  position: relative;
}

/* RIGHT CONTENT CON BOX1 BANNER */
/* COMMENT OUT */
.con-1 img{
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  border-radius: 10px;
  opacity: 0.8;
}

/* RIGHT CONTENT CON BOX1 BANNER */
/* COMMENT OUT */
.con1-title{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--text-color);
  text-shadow: 3px 3px 3px rgba(26, 26, 26, 0.5);
  white-space: nowrap;
}

.con-2{
  width: 100%;
  height: max-content;
}

.con2-p{
  width: 100%;
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--primary-color);
  text-align: justify;
}

/* RIGHT CONTENT CON BOX1 BANNER */
.content-box h1, .doctorate-list h1{
  font-size: 1.4rem;
  color: var(--accent-color);
  margin-bottom: 20px;
  font-weight: 700;
}

/* RIGHT CONTENT CON BOX1 BANNER */
.content-header span{
    font-size: 36px;
    font-weight: 700;
}

/* MAP */
.map{
  width: 100%;
  height: 500px;
  margin-bottom: 60px;
}

/* MAP */
.map iframe{
  width: 100%;
  height: 100%;
  border-style: none;
  border-radius: 10px;
}

/* FOOTER */
.main-footer{
  width: 100%;
  height: max-content;
  background: var(--primary-color);
  padding: 30px;
  box-sizing: border-box;
  color: var(--text-color);
}

/* FOOTER */
.ft-logo-wrap{
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

/* FOOTER */
.ft-logo-wrap select{
    width: 90px;
    height: 30px;
    padding: 0.3rem;
    box-sizing: border-box;
    font-size: 0.6rem;
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--text-color);
    border-radius: 5px;
}

/* FOOTER */
.ft-logo-wrap img{
  display: block;
  width: 110px;
  object-fit: contain;
}

/* FOOTER */
.ft-info{
  font-size: 0.43rem;
  text-align: center;
}

/* FOOTER */
.tel-num{
  margin: 5px 0;
}

/* SCROLL TO TOP */
.top-but-wrap{
  width: 100%;
  height: 100%;
  position: relative;
}

/* SCROLL TO TOP */
.top-btn{
  width: 20px;
  height: 20px;
  position: absolute;
  right: calc(50% - 10px);
  bottom: 25px;
  z-index: 4;
  background-color: transparent;
  color: var(--text-color);
  border: 2px solid #1a1a1a;
  border-radius: 50%;
  cursor: pointer;
}

/* SCROLL TO TOP */
.top-btn img{
  width: 50%;
  height: 50%;
  object-fit: contain;
}

/* PROJECT-PC & BOARD-PC 공통 */
.bbs-default {
    display: table;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    border: none;
    font-family: 'Pretendard', sans-serif;
    font-size: 1rem;
    color: #666;
}

/* PROJECT-PC & BOARD-PC 공통 */
.bbs-colgroup {
    display: none;
}

/* PROJECT-PC & BOARD-PC 공통 */
.bbs-head {
    display: none;
}

/* PROJECT-PC & BOARD-PC 공통 */
.bbs-body .row {
    display: block;
    padding: 15px 15px;
    margin-top: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    background-color: #fff;
}

/* PROJECT-PC & BOARD-PC 공통 */
.bbs-body .row .col {
    display: block;
    padding: 0;
    margin-bottom: 6px;
    text-align: left;
    border-bottom: none;
}

/* PROJECT-PC & BOARD-PC 공통 */
.bbs-body .row:last-child .col {
    border-bottom: none;
}

/* PROJECT-PC & BOARD-PC 공통 */
.bbs-body .row .col-title {
    font-weight: 700;
    font-size: 1rem;
    color: #222;
    line-height: 1.4;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* PROJECT-PC & BOARD-PC 공통 */
.bbs-body .row .col-title a {
    color: #333;
    text-decoration: none;
}

/* PROJECT-PC & BOARD-PC 공통 */
.bbs-body .row .col-title a:hover {
    text-decoration: underline;
}

.bbs-body .row .col-writer,
.bbs-body .row .col-date,
.bbs-body .row .col-views {
    display: inline-block;
    font-size: 0.85rem;
    color: #666;
    margin-right: 18px;
    position: relative;
}

.bbs-body .row .col-writer::after,
.bbs-body .row .col-date::after {
    content: "/";
    position: absolute;
    right: -12px;
    color: #999;
}

.bbs-body .row .col-file {
    display: none;
}

.bbs-body .row .col-no.hide-on-mobile {
    display: none;
}

/* PROJECT-PC & BOARD-PC 공통 */
.bbs-body .row .col-file img {
    width: 16px;
    height: 16px;
    display: inline-block;
}

/* PROJECT-PC & BOARD-PC 공통 */
.notice {
    font-size: 0.75rem;
    padding: 3px 6px;
    border-radius: 3px;
    background-color: #ff5b5b;
    color: #fff;
    font-weight: bold;
    display: inline-block;
}

/* PROJECT-PC & BOARD-PC 공통 */
.blind {
    position: absolute;
    overflow: hidden;
    clip: rect(0 0 0 0);
    width: 1px;
    height: 1px;
    margin: -1px;
}

/* PROJECT-PC & BOARD-PC 공통 */
.group-header-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-bottom: 2px solid black;
  gap: 5px;
}

.page-default {
    margin: 50px 0 0;
    text-align: center;
    font-size: 0; /* inline-block 사이 공백 제거 */
}

.page-default .page-wrap {
    display: inline-block;
}

.page-default .page-number {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    margin-left: 5px;
    border-radius: 5px;
    background-color: #fff;
    border: 1px solid #ddd;
    font-size: 14px;
    color: #555;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s ease, border 0.2s ease;
}

.page-default .page-number:first-child {
    margin-left: 0;
}

.page-default .page-number:hover {
    background-color: #f0f0f0;
    border-color: #aaa;
    color: #000;
}

.page-default b.page-number {
    background-color: #444;
    color: #fff;
    font-weight: bold;
    border-color: #444;
}

/* 접근성 고려 - 스크린리더용 */
.page-default .blind {
    position: absolute;
    overflow: hidden;
    clip: rect(0 0 0 0);
    margin: -1px;
    width: 1px;
    height: 1px;
}

.image-preview img {
    width: 100%;
}
}