@charset "utf-8";

@import url("font.css");


/* common2 Conflict Resolution */
body { 
  font-family: 'NotoSansKR-regular' !important;
  font-size: 1rem !important;
}
header { 
  position: relative !important;
  background-color: #fff !important;
  background-image: none !important;
  height: inherit !important;
  
  z-index: 9999 !important;
}
footer { 
  width: 100% !important;
  border-top: 0 !important;
}
.active, .accordion:hover {
    background-color:transparent !important;
}
.country button {
    font-size: 13px;
}


/* container 1440px */
@media (min-width: 1440px) {
    .container-xxl { max-width: 1440px !important; }
}

/* ========================================================================== */
/* header */


.gnb-custom-header .text-muted {
    color: #e2e2e2 !important; 
}
.gnb-custom-header .border-bottom {
    color: #e6e6e6 !important; 
}


/* main menu underline animation */
.gnb-custom-menu .nav-link {
    font-size: 1.25rem;
    font-weight: 700;
    padding: 2rem 1.3rem !important;
    position: relative;
    color: #000;
}

.gnb-custom-menu .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 4px;
    background-color: #2171cb;
    transition: 0.3s ease;
    transform: translateX(-50%);
}

.gnb-dropdown-static:hover .nav-link::after,
.gnb-custom-menu .nav-link.active::after {
    width: 100%;
}
.gnb-custom-menu .nav-link.active {
    color: #2171cb !important;
}
.gnb-dropdown-static:hover .nav-link { color: #2171cb !important; }

/* 화면 줄이면 메인메뉴 안보이게 */
@media (min-width: 1200px) {
    .gnb-custom-menu {
        display: flex !important;
    }
}
/* 화면 줄이면 메인메뉴 작게 */
@media (max-width: 1439px) {
    .gnb-custom-menu .nav-link {
        font-size: 1.1rem;
        padding: 1rem 0.8rem !important;
    }
}



/* 전체메뉴 배경색 및 스타일 */
.gnb-custom-collapse {
    background-color: #f8f9fa;
    z-index: 2000;
    position: absolute;
    left: 0;
    right: 0;
    border-top: solid 1px #ddd;
    border-bottom: solid 1px #ddd;
}
.menu-sub-list a, .gnb-custom-collapse a {
  text-decoration: none;
  color: #000;

  /* 박스 스타일 추가 */
  background-color: #f5f5f5;    /* 옅은 회색 (더 연하게 원하시면 #f9f9f9) */
  padding: 8px 15px;            /* 위아래, 좌우 여백 */
  display: inline-block;        /* 박스 형태 유지 */
  border-radius: 6px;           /* 모서리를 부드럽게 */
  margin-bottom: 5px;           /* 항목 간의 간격 (필요시) */
  transition: background 0.2s;  /* 마우스 올릴 때 부드러운 효과 */
}
.menu-sub-list a:hover, .gnb-custom-collapse a:hover {
  text-decoration: none;
  color: #2171cb;

}
.gnb-custom-menu h2, .gnb-custom-collapse h2 {
  font-size: 1.5rem;
  font-family: 'NotoSansKR-700';
}
.menu-main-link {
  font-weight: bold !important;
  padding: 1rem !important;
  background: url('../images/common/ico-chk.png') no-repeat;
  background-position: right 20px center;
  background-size: 7px;
}
.menu-main-link:hover {
  color:#fff !important;
  background:#2171cb url('../images/common/ico-chk-white.png') no-repeat !important;
  background-position: right 20px center !important;
  background-size: 7px !important;
}
.menu-main-item {
  background-color: #f8f9fa !important;
  border-right: 0;
}
@media (min-width: 1200px) {
    .menu-main-item {
        border-right: 1px solid #dee2e6 !important;
    }
}
/* 메뉴 버튼 컨테이너 설정 */
.gnb-custom-toggler {
    position: relative;
    width: 44px;
    height: 43px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 내부 이미지 공통 스타일 */
.gnb-custom-toggler img {
    position: absolute;
    transition: opacity 0.3s, transform 0.4s;
    backface-visibility: hidden;
}

/* 닫기 이미지는 처음에 숨김 + 반대로 회전시켜둠 */
.img-close {
    opacity: 0;
    transform: rotate(-90deg);
}

/* 버튼이 활성화(클릭) 되었을 때 */
.gnb-custom-toggler.active {
    transform: rotate(90deg); /* 버튼 전체 90도 회전 */
}

.gnb-custom-toggler.active .img-menu {
    opacity: 0; /* 메뉴 아이콘 숨김 */
}

.gnb-custom-toggler.active .img-close {
    opacity: 1; /* X 아이콘 나타남 */
    transform: rotate(0deg); /* X 아이콘은 정방향으로 */
}





/* 서브메뉴(mega menu) 영역 설정 */
.gnb-sub-wrapper {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
    z-index: 2000;    
    display: none; 
    opacity: 0; 
    transform: translateY(-10px); 
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: auto; 
}

/* 마우스 오버 시 상태 (나타남 + 원래 위치로) */
.gnb-dropdown-static:hover .gnb-sub-wrapper {
    opacity: 1;
    visibility: visible;
    transform: translateY(0); /* 원래 위치로 내려옴 */
}

/* 서브메뉴 카드 스타일 */
.sub-link-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px 25px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    min-width: 250px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.2s;
}

.sub-link-card::after {
    content: '>'; /* 이미지의 화살표 부분 */
    color: #ccc;
    font-size: 0.8rem;
}

.sub-link-card:hover {
    border-color: #004da0;
    color: #004da0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.text-primary {
  color: #2171cb;  
}

.sub-visual-wrapper {
    position: relative;
    width: 100%;
    height: 225px;
    background-color: #f4f9ff; /* 이미지 로딩 전 배경색 */
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    overflow: hidden;
}

.sub-visual-wrapper-01 {
    background-image: url('../images/common/sub-kv-01.jpg');
}
.sub-visual-wrapper-02 {
    background-image: url('../images/common/sub-kv-02.jpg');
}
.sub-visual-wrapper-03 {
    background-image: url('../images/common/sub-kv-03.jpg');
}
.sub-visual-wrapper-04 {
    background-image: url('../images/common/sub-kv-04.jpg');
}
.sub-visual-wrapper-05 {
    background-image: url('../images/common/sub-kv-05.jpg');
}
.sub-visual-wrapper-06 {
    background-image: url('../images/common/sub-kv-06.jpg');
}
.sub-visual-wrapper-07 {
    background-image: url('../images/common/sub-kv-07.jpg');
}
/* 서브 비주얼 제목 스타일 */
.sub-visual-title {
    font-family: 'NotoSansKR-300';
    font-size: 3rem;
    color: #333;
    letter-spacing: -0.05rem;
    margin-bottom: 0;
    padding-left: 10rem; 
	font-weight: bold;
}


/* ========================================================================== */
/* aside area */

.lnb-wrapper {
    position: sticky;
    top: 20px; /* 스크롤 시 상단 고정 */
}
.lnb-container {
    background: #fff;
}
.lnb-header h3 {
    text-align: center;
    margin-bottom: 0;
    color: #fff;
    font-size: 1.5rem;
    padding: 2rem;
    background-color: #2171cb !important;
}
.lnb-body {
  padding: 2rem;  
}
.lnb-section a {
  color: #000;
}
.lnb-section a:hover {
  color: #2171cb;
}
.lnb-toggle-btn {
    text-align: left;
    color: #000;
    background-color: #fff;
    border-bottom: solid 2px #0d5cbd;
    text-decoration: none;
    font-size: 1.15rem;
    font-family: 'NotoSansKR-700';
}

.lnb-toggle-btn:hover {
    color: #2171cb !important;
}
.lnb-toggle-btn.active {
    color: #2171cb !important;
}

/* 현재 선택된 서브 메뉴 강조 */
.active-sub {
    color: #2171cb !important;
    font-weight: 700;
    position: relative;
}

/* 아이콘 박스 기본 스타일 */
.toggle-icon-box {
    width: 26px;
    height: 26px;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
}

/* 기본적으로 오른쪽 방향(닫힘 상태) 아이콘만 보임 */
.icon-down { display: none; }
.icon-up { display: block; }

/* 메뉴가 펼쳐졌을 때 (aria-expanded="true") */
.lnb-toggle-btn[aria-expanded="true"] .icon-down {
    display: block; /* 아래 방향 아이콘 노출 */
}

.lnb-toggle-btn[aria-expanded="true"] .icon-up {
    display: none; /* 오른쪽 방향 아이콘 숨김 */
}


/* 사이드바 영역(aside)의 최대 넓이 제한 */
@media (min-width: 1200px) {
    aside.col-xl-3 {
        flex: 0 0 320px !important; /* 너비를 320px로 고정 */
        max-width: 320px !important;
        width: 320px !important;
    }

    /* 본문(article) 영역이 줄어든 사이드바만큼 넓어지도록 보정 */
    article.col-xl-9 {
        flex: 1; /* 남은 공간을 모두 차지 */
        max-width: calc(100% - 320px);
    }
}

.breadcrumb-item a img {
  vertical-align: baseline;
}
.breadcrumb-item {
  display: flex;
  align-items: center;
  font-family: 'NotoSansKR-300';
}
.breadcrumb-item::before  {
  content: "" !important;
  display: inline-block;
  background: url('../images/common/ico-chk.png') center no-repeat;
  background-size: contain;
  width:12px;
  height: 12px;
  margin-right: 8px;
  vertical-align: middle;
}
.breadcrumb-item:first-child::before {
  background: none;
  width: 0;
  height: 0;
  margin-right: 0;
}
.breadcrumb-utils .btn {
  padding:0.25rem 0.4rem;
}
.breadcrumb-utils .btn:hover {
  background-color: #fff;
}
/* 언어 선택 버튼 */
.lang-selector .btn {
    border-color: #ddd;
    font-size: 0.85rem;
    border-radius: 4px;
}
.lang-selector .btn.active {
    background-color: #fff;
    color: #2171cb;
    border-color: #2171cb;
    font-weight: 700;
}

/* 본문 텍스트 스타일 */
.summary-box {
    border-color: #e2eaf5 !important;
}
.content-section h4 {
    letter-spacing: -0.02em;
}




/* ========================================================================== */
/* footer area */


.footer-wrapper {
  background: #f9fafb;
}
.footer-wrapper .text-danger {
  color:#fe8c50 !important;
  text-decoration: none;
}
/* 푸터 정보 라벨 스타일 (회색 박스) */
.badge-label {
    display: inline-block;
    background-color: #e9ecef;
    color: #495057;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 4px;
    margin-right: 15px;
    min-width: 85px;
    text-align: center;
}

/* 푸터 텍스트 스타일 조절 */
.footer-info p, .footer-info span {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-links a {
    font-size: 0.95rem;
}

/* 로고 박스 스타일 */
.family-logos .logo-box {
    border-color: #eee !important;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px; /* 로고 박스 높이를 일정하게 고정 */
    background-color: #ffffff;
}

.family-logos .logo-box img {
    max-height: 100%; /* 박스 높이를 넘지 않게 조절 */
    width: auto;
}

/* 모바일 정렬 */
@media (max-width: 991px) {
    .family-logos {
        align-items: center !important; /* 모바일에서는 중앙 정렬 */
        margin-top: 2rem;
    }
}


/* 배경 음영 스타일 */
.gnb-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* 50% 반투명 검정 */
    z-index: 1040; /* 전체메뉴(z-index 설정 필요)보다 하나 낮게 */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.gnb-overlay.overlay-active {
    opacity: 1;
    visibility: visible;
}

/* ========================================================================== */
/* 메인컨텐츠영역 */

.band-blue {
    background: #e8eef8;
}
.search-box {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 0;
}

.custom-search-tit {
    border-radius: 3rem;
    border-top: 2px solid #1e73be;
    border-bottom: 2px solid #1e73be;
    border-left: 2px solid #1e73be;
    background-color: #fff;
    font-size: 1.13rem;
    font-family: 'NotoSansKR-700';
    padding-left: 1.5rem;
}
.custom-search {
    border-radius: 50px;
    padding: 14px 20px;
    border-right: 0 !important;
    border-left:  0 !important;
    border-top: 2px solid #1e73be;
    border-bottom: 2px solid #1e73be;
}
.custom-search:focus {
    box-shadow: none;
    border-color: #1e73be;
}
.search-btn {
    border-radius: 3rem;
    width: 52px;
    height: 56px;
    background: #fff url('../images/main/ico-search.png') right no-repeat;
    border-top: 2px solid #1e73be;
    border-bottom: 2px solid #1e73be;
    border-right: 2px solid #1e73be;
    background-size: 44px;
    background-position: right 5px center;
}
.search-item {
    color:#023d80; 
    display: inline-block;
    background: url('../images/main/ico-arrow.png') right no-repeat;
    background-size: 4px;
    padding-right: 0.6rem;
    margin-right: 1rem;
    font-family: 'NotoSansKR-Medium';
    letter-spacing: -1px;
}
.search-tabs a {
    margin-right: 20px;
    text-decoration: none;
    color: #6c757d;
    font-weight: 500;
}

.search-tabs a.active {
    color: #1e73be;
    font-weight: 600;
}



/* 캐러셀영역 */
.gg-mind-care-section {
    padding: 0 0 50px 0;
}

.gg-wide-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

/* PC 화면 최적화 (1440px 이상 기준) */
@media (min-width: 1440px) {
    .gg-col-left {
        max-width: 1080px !important;
    }
    .gg-col-right {
        max-width: 320px !important;
    }
}


/* 화면이 1440px 미만으로 작아질 때*/
@media (max-width: 1440px) {
    .gg-col-left {
        width: 80% !important;
        margin-right: 1rem;
    }
    .gg-col-right {
        width: 20% !important;
    }
    .gg-custom-carousel {
        width: 100% !important;
        height: auto !important;
    }    
    .card-icon {
    width: 40px !important;
    }
    .gg-menu-card .card-title {
        font-size: 1rem !important;
        text-align: center;
        letter-spacing: -1px;
    }
    .gg-side-card h6 {
      font-size: 1rem !important;
    }
    .gg-side-card-img {
      width:60px !important;
    }
}

/* 화면이 1200px 미만으로 작아질 때*/
@media (max-width: 1200px) {
  .gg-wide-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    }
    .gg-col-left {
        width: 100% !important;
        margin-right: 1rem;
    }
    .gg-col-right {
        width: 100% !important;
        padding-top: 1rem !important;
    }
}



.gg-side-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: transform 0.2s;
    cursor: pointer;
}

.gg-side-card:hover {
    transform: translateY(-3px);
    border-color: #dee2e6;
}

.gg-side-card h6 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0;
}
.gg-side-card-btn {
  background: #ededed;
  color: #0173bc;
  padding: 4px 13px;
  border-radius: 1rem;
  font-size: 0.9rem !important;
  font-family: 'NotoSansKR-Medium';
  margin-top: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 화면이 1200px 미만으로 작아질 때*/
@media (max-width: 1200px) {
    .gg-side-card-btn {
      padding: 4px 3px;
      font-size: 0.7rem !important;
      letter-spacing: -1px;
  }
}


/* 화살표 버튼 스타일 */
.btn-arrow {
    background: rgba(0,0,0,0.1);
    border: none;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 50%;
    transform: translateY(-50%);
}

/* 왼쪽 큰 메뉴 카드 */
.gg-menu-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 15px;
    padding: 25px 10px;
    text-decoration: none !important;
    color: #333;
    transition: all 0.2s ease-in-out;
    border: 1px solid transparent;
    height: 100%;
}

.gg-menu-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.gg-menu-card .card-icon {
    width: 60px;
    margin-bottom: 15px;
}

.gg-menu-card .card-icon img {
    width: 100%;
}

.gg-menu-card .card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    word-break: keep-all;
}

/* 오른쪽 SNS 아이콘 그룹 */
.gg-sns-group {
    background: #ffffff;
    border-radius: 15px;
    padding: 20px 5px;
}

.gg-sns-item {
    display: block;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    transition: opacity 0.2s;
    text-align: center;
}

.gg-sns-item:hover {
    opacity: 0.8;
}

.gg-sns-item img {
    width: 65%;
    height: auto;
    object-fit: cover;
}

/* 모바일 대응: 화면이 작아지면 SNS 아이콘을 가로로 배치 */
@media (max-width: 1200px) {
    .gg-sns-group {
        flex-direction: row !important;
        align-items: center !important;
        padding: 10px;
    }
}

/* 모바일 대응: 화면이 작아지면 SNS 아이콘을 세로로 배치 */
@media (max-width: 576px) {
    .gg-sns-group {
        flex-direction: column !important;
        align-items: center !important;
        padding: 10px;
    }
    .gg-sns-item img {
        width: 35%;
        height: auto;
        object-fit: cover;
    }
    .gg-side-card {
      margin-top: 1rem !important;
    }
}

/* 컨테이너 */
.gg-custom-carousel {
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
}
.gg-carousel-inner img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* 하단 페이징 버튼 (인디케이터) 커스텀 */
.gg-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 10%;
    background-color: #000 !important;
    border: none;
    margin: 0 5px;
}

.gg-indicators .active {
    background-color: #2171cb !important; /* 강조색 */
}

/* 좌우 화살표 버튼 커스텀 */
.gg-control-prev, .gg-control-next {
    width: 5%; /* 클릭 영역 최적화 */
}
.carousel-control-next-icon {
    background-image: url(../images/main/ic-carousel-right.png);
    background-size: 50%;
    width: 3rem;
    height: 3rem;
}
.carousel-control-prev-icon {
    background-image: url(../images/main/ic-carousel-left.png);
    background-size: 50%;
    width: 3rem;
    height: 3rem;
}

.gg-control-prev-icon, .gg-control-next-icon {
    background-color: rgba(0, 0, 0, 0.2); /* 화살표 배경 살짝 어둡게 */
    border-radius: 50%;
    background-size: 60%;
    padding: 20px;
}
/* 모바일 대응 */
@media (max-width: 768px) {
    .gg-control-prev, .gg-control-next {
        display: none; /* 작은 화면에서는 화살표 숨기고 스와이프 유도 */
    }
}



.band-white {
  background-color: #fff;
}

/*G-mind 소식 광장*/
.gg-ticker-wrapper {
    background-color: #ccdde3;
    border-radius: 13px;
    height: 50px;
    border: 1px solid #d1d9e0;
    margin-top: 2rem;
}
@media (max-width: 768px) {
  .gg-ticker-wrapper {
      height: inherit !important;
    }
  .gg-ticker-label img {
    margin-bottom:0 !important;
  }
}
.gg-ticker-label img {
  margin-bottom: 23px;
  margin-left: 5px;
}
/* 수직 슬라이드 애니메이션 구현 */
#ggNewsTicker.vertical .carousel-item {
    transition: transform 0.6s ease-in-out;
}

#ggNewsTicker.vertical .carousel-item-next:not(.carousel-item-start),
#ggNewsTicker.vertical .active.carousel-item-end {
    transform: translateY(100%); /* 아래에서 위로 */
}

#ggNewsTicker.vertical .carousel-item-prev:not(.carousel-item-end),
#ggNewsTicker.vertical .active.carousel-item-start {
    transform: translateY(-100%);
}

/* 텍스트 정렬 */
.gg-ticker-wrapper .carousel-item {
    height: 34px;
    line-height: 34px;
}
.gg-ticker-wrapper a {
    font-size: 0.95rem;
    font-weight: 500;
}
/* 우측 버튼 스타일 */
.gg-ticker-btn {
    border: none;
    background: none;
    line-height: 1;
    color: #6c757d;
    padding: 3px;
    font-size: 10px;
}



/* 정신건강정보 */
.gg-info-wrapper {
    border: 1px solid #eee;
    border-radius: 1rem;
    background-color: #fff;
}
.gg-info-title-box {
    flex: 1;
    text-align: center;
}
.gg-info-title-box h3 {
    font-size: 1.5rem;
    color: #333;
    line-height: 1.3;
}
.gg-title-underline {
    width: 60px;
    height: 4px;
    background-color: #5c93e6;
}
.gg-info-item {
    min-width: 80px;
    flex: 1; /* 아이콘들이 균등하게 공간 차지 */
}
.gg-icon-bg {
    width: 5rem;
    height: 4.7rem;
    background-color: #f5f7f9;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: transform 0.2s ease;
}
.gg-icon-bg img {
    width: auto;
    height: 3.2rem;
}
.gg-all-view img {
    width: 15px !important;
    height: 15px !important;
}
.gg-icon-label {
    font-size: 1rem;
    color: #000;
    font-family: 'NotoSansKR-Medium';
    white-space: nowrap; /* 글자 줄바꿈 방지 */
}

/* 전체보기 강조 배경 */
.gg-bg-blue {
    background-color: #5c93e6 !important;
}
/* 호버 효과 */
.gg-info-item:hover .gg-icon-bg {
    transform: translateY(-5px);
}
/* 모바일 반응형 보정 */
@media (max-width: 991px) {
    .gg-info-list {
        gap: 15px; /* 모바일에서 아이콘 간 간격 */
        justify-content: flex-start !important; /* 왼쪽부터 나열 */
    }
    .gg-info-item {
        flex: 0 0 auto; /* 아이콘 크기 고정 후 가로 스크롤 허용 */
    }
    .gg-info-title-box h3 {
    font-size: 1.1rem;
    }
    .gg-icon-bg {
    width: 4rem;
    height: 3.7rem;
    }
    .gg-icon-bg img {
    width: auto;
    height: 2.5rem;
    }
}


/* 주요사업 */
#mh-tab-module {
  padding: 40px 0.75rem;
  box-sizing: border-box;
}

/* 타이틀 + 탭 영역 */
#mh-tab-module .mh-tab-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 30px;
}

#mh-tab-module .mh-title {
  font-size: 1.5rem;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: -1px;
}

/* 탭 스타일 */
#mh-tab-module .mh-tabs {
  border-bottom: none;
}

#mh-tab-module .mh-tabs .mh-nav-link {
  background: #fff;
  border-radius: 3rem;
  border: none;
  font-size: 1.15rem;
  padding: 0.2rem 1.5rem;
  font-family: 'NotoSansKR-700';
  margin-left: 0.8rem;
}

#mh-tab-module .mh-tabs .mh-nav-link.active {
  background: #5993eb !important;
  border-radius: 3rem;
  border: none;
  color:#fff;
  font-size: 1.15rem;
  padding: 0.2rem 1.5rem;
  font-family: 'NotoSansKR-700';
}

/* 하위 메뉴 링크 클릭 시 색상 변경 */
.sub-menu-wrap a.active {
    color: #5993eb !important;
    font-weight: bold;}

#mh-tab-module .mh-tabs li:has(a.active) .mh-nav-link {
    background: #5993eb !important;
    color: #fff !important;
}
#mh-tab-module .mh-nav-link.active {
    background: #5993eb !important;
    color: #fff !important;
}

/* 탭 콘텐츠 중앙 정렬 */
#mh-tab-module .mh-tab-inner {
  display: flex;
  justify-content: center;
}

/* 슬라이더 외부 래퍼 (버튼 잘림 방지) */
#mh-tab-module .mh-slider-wrap {
  position: relative;
  width: 100%;
  overflow: visible;
}

/* 실제 슬라이더 뷰포트 */
#mh-tab-module .mh-slider-viewport {
  overflow: hidden;
  width: 100%;
}

/* 슬라이더 트랙 */
#mh-tab-module .mh-slider-track {
  display: flex;
  gap: 30px;
  transition: transform 0.35s ease;
  will-change: transform;
}

/* 카드 */
#mh-tab-module .mh-card {
  width: 330px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 16px;
  padding: 24px 24px 12px 24px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

#mh-tab-module .mh-card h5 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

#mh-tab-module .mh-card p {
  font-size: 14px;
  color: #666666;
  line-height: 1.4;
  text-align: left;
  height: 110px;
  overflow: hidden;
}

/* 카드 버튼 */
#mh-tab-module .mh-btn {
  margin-top: 12px;
  padding: 0.2rem 3rem;
  font-size: 0.9rem;
  border-radius: 20px;
  border: none;
  color: #ffffff;
  cursor: pointer;
	width: fit-content;
  font-family: 'NotoSansKR-Medium';
  background: #acacac;
}

#mh-tab-module .mh-card-blue h5 { color: #5890f3; }
#mh-tab-module .mh-card-blue button { background: #5890f3; }
#mh-tab-module .mh-card-blue { background: #f6f8fe url('../images/main/mh-card-blue-bg.jpg') bottom repeat-x ; }
#mh-tab-module .mh-card-orange h5 { color: #f79e30; }
#mh-tab-module .mh-card-orange button { background: #f79e30; }
#mh-tab-module .mh-card-orange { background: #fefbfa url('../images/main/mh-card-orange-bg.jpg') bottom repeat-x ; }
#mh-tab-module .mh-card-pink h5 { color: #e3748f; }
#mh-tab-module .mh-card-pink button { background: #e3748f; }
#mh-tab-module .mh-card-pink { background: #fef7fc url('../images/main/mh-card-pink-bg.jpg') bottom repeat-x ; }
#mh-tab-module .mh-card-green h5 { color: #7fae48; }
#mh-tab-module .mh-card-green button { background: #7fae48; }
#mh-tab-module .mh-card-green { background: #f7faf3 url('../images/main/mh-card-green-bg.jpg') bottom repeat-x ; }
#mh-tab-module .mh-card-grey { background: #f7faf3 url('../images/main/mh-card-grey-bg.jpg') bottom repeat-x ; }

/* 슬라이드 버튼 */
#mh-tab-module .mh-slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 20px;
  height: 35px;
  border-radius: 50%;
  background: #ffffff;
  border: solid 1px #cddee4;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

/* 버튼을 슬라이더 양옆에 반만 걸치기 */
#mh-tab-module .mh-slide-btn.left {
  left: -20px;
}

#mh-tab-module .mh-slide-btn.right {
  right: -20px;
}

/* 모바일 반응형 보정 */
@media (max-width: 1440px) {
  #mh-tab-module .mh-slide-btn {
    width: 30px;
    height: 30px;
    padding:0 !important ;
  }
  #mh-tab-module .mh-slide-btn img {
    width: 6px !important;
  }
  #mh-tab-module .mh-slide-btn.left {
    left: 0px;
  }
  #mh-tab-module .mh-slide-btn.right {
    right: 0;
  }
}
@media (max-width: 992px) {
  #mh-tab-module .mh-title {
    font-size: 1.3rem;
  }
  #mh-tab-module .mh-tabs .mh-nav-link {
    font-size: 1rem;
    padding: 0.1rem 1rem;
    margin-left: 0.5rem;
  }
  #mh-tab-module .mh-btn {
    margin-top: 12px;
    padding: 0.2rem 1.5rem;
    font-size: 0.8rem;
  }
}

/* 정신건강 자가검진 */
/* 컨테이너 및 그리드 설정 */
.mh-self-check-container { 
  padding: 50px 10px; 
}
.mh-self-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 20px;
}
.mh-self-title {
  font-size: 1.5rem;
  letter-spacing: -1px;
  font-family: 'NotoSansKR-700';
}
.mh-self-title small {
  color:#777;
  font-family: 'NotoSansKR-regular';
  font-size: 1rem;
}
/* 카드 스타일 */
.mh-self-card {
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  transition: transform 0.2s;
  background: #fff;
  cursor: pointer;
}
.mh-self-card:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }

/* 텍스트 및 레이아웃 */
.mh-self-content h3 { font-size: 18px; margin: 0; font-family: 'NotoSansKR-Medium'; }
.mh-self-content p { font-size: 14px; color: #7a8a9e; margin: 5px 0 0 0; letter-spacing: -1px; }
.mh-self-icon img { height: 36px; width: auto; margin-right: 15px; }
/* 기존 그리드 설정 보완 */
.mh-self-grid {
  display: grid;
  gap: 15px;  
}

/* 태블릿: 2열 */
@media (min-width: 600px) {
  .mh-self-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 데스크탑: 5열 */
@media (min-width: 1024px) {
  .mh-self-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}


/* 카드뉴스 */
.gm-section-container {
  display: grid;
  grid-template-columns: 1fr; /* 모바일: 1열 */
  gap: 20px;
  padding: 20px;
}

/* 태블릿 이상: 3열 */
@media (min-width: 768px) {
  .gm-section-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gm-card {
  display: flex;
  padding: 1.5rem;
  flex-direction: column;
}

.gm-header { font-weight: bold; font-size: 1.5rem; margin-bottom: 15px; }
.gm-body { 
  background: #fff;
  padding: 26px;
  border-radius: 1.5rem;
  flex-grow: 1;  
  margin-bottom: 20px; 
}
.gm-card-img {border:solid 1px #ddd; border-radius: 1.5rem; margin-bottom: 15px; width: 100%; height: auto;}
.gm-body h3 { font-size: 18px; margin: 0 0 10px 0; }
.gm-body p { font-size: 14px; color: #666; }
.gm-link { 
  display: block; 
  text-align: right; 
  text-decoration: none; 
  color: #8d8d8d;
  font-size: 15px;
  align-self: flex-end; 
  background: url(../images/main/ico-side-card-btn.png) no-repeat;
  background-size: 5px;
  background-position: right center;
  padding-right: 10px;
}
@media (max-width: 992px) {
  .gm-card {
    padding: 0;
  }
}

/* G-mind 소식 */
/* 모바일 1열 -> 데스크탑 2열 */
.gmind-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  padding: 40px 0;
  align-items: stretch;
}
@media (min-width: 992px) {
  .gmind-grid { grid-template-columns: 1fr 1fr; }
}

/* 기본 스타일링 */
.gmind-item { border: 1px solid #e0e0e0; border-radius: 16px; padding: 30px; height: 250px; }

/* 라디오 버튼 숨김 */
.gmind-notice-box input[type="radio"] { display: none; }

/* 패널 설정 */
.gmind-tabs-panel { display: none; padding: 20px; }

/* 선택된 라디오에 따라 패널 표시 */
#gmind-tab1:checked ~ .gmind-tabs-body #gmind-panel1,
#gmind-tab2:checked ~ .gmind-tabs-body #gmind-panel2,
#gmind-tab3:checked ~ .gmind-tabs-body #gmind-panel3,
#gmind-tab4:checked ~ .gmind-tabs-body #gmind-panel4 {
  display: block;
}

/* 탭 버튼 스타일 */
.gmind-tabs-header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;}
.gmind-tabs-label {
  padding: 10px 20px;
  cursor: pointer;
  background: #efefef;
  border: 1px solid #efefef;
  border-radius: 0.5rem;
  font-size: 20px;
  flex-grow: 1;
  text-align: center;
  letter-spacing: -1px;
  font-family: 'NotoSansKR-Medium';
}

/* 선택된 버튼 스타일 */
#gmind-tab1:checked ~ .gmind-tabs-header label[for="gmind-tab1"],
#gmind-tab2:checked ~ .gmind-tabs-header label[for="gmind-tab2"],
#gmind-tab3:checked ~ .gmind-tabs-header label[for="gmind-tab3"],
#gmind-tab4:checked ~ .gmind-tabs-header label[for="gmind-tab4"] {
  background: #2362ae;
  color: white;
  border-color: #2362ae;
  position: relative;
  z-index: 1;
}

/* 모바일 대응 */
@media (max-width: 576px) {
  .gmind-tabs-header { flex-direction: column; }
  .gmind-tabs-label { margin-right: 0; margin-bottom: 5px; }
}
.gmind-notice-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
  font-family: 'NotoSansKR-700';
}

/* 리스트 텍스트 스타일 */
.gmind-notice-list li a {
  font-size: 1.05rem;
  color: #333 !important;
  font-family: 'NotoSansKR-Regular', sans-serif;
  transition: color 0.2s;
}

/* 마우스 올렸을 때 효과 */
.gmind-notice-list li a:hover {
  color: #2362ae !important;
  text-decoration: underline !important;
}

/* NEW 배지 폰트 사이즈 조정 */
.gmind-notice-list .badge {
  font-size: 0.75rem;
  padding: 0.4em 0.6em;
  font-weight: 500;
}

.gmind-notice-list .bg-danger { background: #ff0000 !important;}

.gmind-video-player iframe {
  width: 100%;
  height: 100%;
  max-height: 320px;
  aspect-ratio: 16 / 9;
}
.ratio {max-height: 320px !important;}




/* 지역정신건강기관 */
.rgmap-wrap{
background:#fff;
padding:30px;
border-radius:20px;
}

.rgmap-region-title {
  font-size: 1.2rem;
}

.rgmap-card{
background:white;
border-radius:1rem;
margin-bottom:15px;
border:1px solid #d1d6db;
}

.rgmap-title{
background:#e3f0f7;
padding:12px 15px;
font-weight:600;
border-radius:1rem 1rem 0 0;
color: #2362ae;
}

.rgmap-row{
display:flex;
justify-content:space-between;
padding:12px 15px;
font-family: 'NotoSansKR-regular';
align-items: center;
gap: 10px;
}

.rgmap-row span { display: block;}

.rgmap-region{
display:none;
}

.rgmap-region.active{
display:block;
}

.rgmap-map{
position:relative;
}

.rgmap-svg{
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
}

.rgmap-area{
fill:transparent;
cursor:pointer;
}

.rgmap-label{
font-size:14px;
fill:#333;
font-weight:600;
text-anchor:middle;
pointer-events:none;
transition:0.2s;
}

.rgmap-label.hover{
fill:#2f80ed;
}

.rgmap-label.active{
fill:#ff5a3c;
}

.w-10{width:10%;}
.w-15{width:15%;}
.w-20{width:20%;}
.w-25{width:25%;}
.w-30{width:30%;}

.rgmap-address{
  flex:1;
}

.rgmap-btitle { 
  font-size: 1.5rem;
  font-family: 'NotoSansKR-700';
  margin-bottom: 15px;
}
.rgmap-btitle-btn {
  background: #fff url(../images/main/ico-arrow-right.png) no-repeat;
  background-position: right 15px center;
  background-size: auto 13px;
  color: #0d58aa;
  font-size: 1.1rem;
  font-family: 'NotoSansKR-700';
  border: none;
  padding: 0.5rem 3rem 0.5rem 1.5rem;
}
.rgmap-btitle-btn:hover {
  background-image: url(../images/main/ico-arrow-right-w.png);
}