@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;700&display=swap');

@font-face {
    font-family: 'Pretendard-Regular';
    src: url('https://fastly.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important; /* 터치 반응 제거 */

}

button{
    all: unset;
}

html, body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-y: scroll;
}

body{
    font-family: 'Pretendard-Regular', 'Noto Sans KR', sans-serif;
    overflow: auto;
}

ul {
    padding: 0;
    margin: 0;
}

a {
    text-decoration: none;
    color: black;
}


/* 메인 배너*/
.main-banner{
    background: url("../images/img_top.png") no-repeat center center;
    width: 100%;
    max-height: 240px;
    height: auto;
    aspect-ratio: 4 / 1; /* 가로:세로 비율 설정 */
    background-size: cover;
}

/* header 영역 */
.page-content{
    height: 140px;
}

header{
    position: relative;
    display:block !important;
}

.header-container{
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    background-color: #FFFFFF;
    width: 100%;
    transition: box-shadow 0.3s ease; /* 부드러운 쉐도우 전환 */
    /* 렌더링 최적화 */
    will-change: transform; /* 스크롤 성능 최적화 */
    -webkit-backface-visibility: hidden; /* Webkit 브라우저에서 렌더링 버그 방지 */
    backface-visibility: hidden;
}

/* ✅ 스크롤될 때 그림자 추가 */
.header-container.scrolled {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 플랫폼 바로가기 start */
.header-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.platform-link-group{
    padding: 16px 36px;
    background-color: #A52A2A;
}

.platform-link {
    font-size: 16px;
    color: white;
    text-decoration: none;
    background-color: #A52A2A;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.8px;
}


.platform {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}


.platform-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-search-container{
    display: none;
}

/*search img*/
.search-container {
    cursor: pointer;
}

.search-container img{
    width: 24px;
    height: 24px;
}

.platform-header-login {
    font-size: 20px;
    color: #222222;
    margin-right: 12px;
    cursor: pointer;
    transition: color 0.2s ease-in-out;
}

.platform-header-login:hover {
    color: #800000;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: #800000;
    text-underline-offset: 6px;
}

.user-container img{
    display: none;
}


.platform-underline-line {
    border: 2px solid #A52A2A;
}

/* 플랫폼 바로가기 끝 end */

/* logo 라인 헤더 start */
.page-menubar-container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    /*padding: 12px;*/
    padding: 12px 12px 12px 0;
}

.page-header {
    position: relative;
}

.page-menubar {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
    flex: 1;
}

.page-logo{
    /*width: clamp(250px, 132vw, 280px);*/
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    text-align: center;
}

.page-logo img{
    width: 100%;
}

/* 기본적으로 모바일 아이콘 숨김 */
.icon-container{
    display: none;
}

/* nav 부모 메뉴 */
.parent-menu-bar {
    width: 75%;
    display: flex;
    padding-left: 50px;
    justify-content: space-evenly;
    align-items: center;
}

.parent-menu-bar li{
    position: relative;
    display: block;
    width: 100%;
}

.parent-menu {
    position: relative;
    width: 100%;
    font-size: 20px;
    color: #222222;
    cursor: pointer;
    z-index: 40;
}

/* PC에서 부모 메뉴 클릭 시 및 마우스 오버 시 색상 유지 */
.parent-menu-item.active .parent-menu,
.parent-menu-item:hover .parent-menu,
.parent-menu-item:hover .sub-menu:hover .parent-menu {
    /*color: #A52A2A !important; !* 빨간색 *!*/
    font-weight: 700 !important; /* 굵게 */

}

.parent-menu,
.parent-menu-item {
    /*background: transparent !important;*/
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    outline: none !important;
    -webkit-appearance: none !important;
    transition: none !important; /* 애니메이션 제거 */

    /* 부트스트랩 기본 스타일 무효화 */
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
    border: none !important;
}

.parent-menu:active,
.parent-menu:focus,
.parent-menu.active,
.parent-menu-item:active,
.parent-menu-item:focus {
    /*background: transparent !important;*/
    outline: none !important;
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
    border: none !important;
}

/* 부트스트랩 nav-link 스타일 방지 (예방 차원) */
.parent-menu.nav-link,
.parent-menu-item.nav-item {
    background: transparent !important;
}

/*서브메뉴 영역*/
.sub-menu-bg{
    height: 245px;
    background: white;
    backdrop-filter: blur(8px); /* 블러 효과 추가 */
    position: absolute;
    top: 98%;
    left: 0;
    width: 100%;
    z-index: 8;
    box-shadow: 0 8px 8px rgba(0, 0, 0, 0.3);
    opacity: 0; /* 기본적으로 숨김 */
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

/* ✅ hover 했을 때 parent + submenu 묶어서 배경 */
.parent-menu-item:hover .parent-menu,
.parent-menu-item:hover .sub-menu ,
.parent-menu-item:hover .sub-menu li a{
    color: white;
    font-weight: bold;
    display: block;

}

.sub-menu::after {
    content: '';
    position: absolute;
    top: -58px;
    left: 0;
    width: 100%;
    /*z-index: 3;*/
    background-color: #A52A2A;
}

/* PC에서 서브메뉴가 열리면 배경도 표시 */
/*.parent-menu-item:hover ~ .sub-menu-bg {*/
/*    display: block;*/
/*}*/

.parent-menu-item {
    position: relative;
    width: 100%;
    overflow: visible;
    text-align: center;
}

.parent-menu-item:hover  .sub-menu::after{
    height: 337px;
    background-color: #A52A2A;
}

@media (max-width: 1380px) {
    .sub-menu::after {
        top : -55px;
    }
    .parent-menu-item:hover  .sub-menu::after{
        height: 331px;
        background-color: #A52A2A;
    }
}

@media (max-width: 1260px) {
    .sub-menu::after {
        top : -53px;
    }
    .parent-menu-item:hover  .sub-menu::after{
        height: 327px;
        background-color: #A52A2A;
    }
}

@media (max-width: 1100px) {
    .sub-menu::after {
        top : -51px;
    }
    .parent-menu-item:hover  .sub-menu::after{
        height: 323px;
        background-color: #A52A2A;
    }
}



.sub-menu {
    position: absolute;
    top: 100%; /* 부모 아래로 바로 붙이기 */
    left: 0;
    z-index: 9;
    display: flex;
    width: 100%;
    padding: clamp(20px, 5vw, 20px) 0; /* 패딩 반응형 적용 */
}

/* 서브메뉴 항목 */
.sub-menu li {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
    /*padding: clamp(4px, 2vw, 14px) 0;*/
    z-index: 12;
}

/* 서브메뉴 링크 스타일 */
.sub-menu li a {
    width: 100%;
    color: #555;
    /*color: white;*/
    font-size: 16px;
    text-decoration: none;
    display: block;
    /*padding-bottom: 1px; !* 글자와 밑줄 간격 조정 *!*/
    /*border-bottom: 2px solid transparent;*/
    padding: 16px 0;
}

.child-menu-name {
    color: #555;
    text-decoration: none;
    font-size: 18px;
}

.child-menu-name:hover {
    text-decoration: underline;
    text-decoration-thickness: 2px;

}

.parent-menu-item.no-submenu:hover .parent-menu {
    background-color: #A52A2A;
    color: white;
    font-weight: bold;
}

/* main-chart-page start */
.chart-wrap-box {
    max-width: 1400px;
    margin: 40px auto;
}

.chart-container {
    display: grid;
    grid-template-columns: 35% 65%;
    width: 100%;
    height: 100%;
}

/* 도넛차트 wrap */
.chart-content-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    position: relative;
}

.chart-content-box:before{
    content: "";
    width: 1px;
    height: 100%;
    background-color: #EAEAEA;
    position: absolute;
    right: 0;
    top: 0;
}

.chart-wrap-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    max-height: 600px;
    width: 100%;
    height: 100%;
}

.chart-wrap {
    width: 100%;
    max-width: 360px;
    height: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
}

.doughut-chart-wrap {
    width: 90vw;
    max-width: 100%;
    max-height: 600px;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}

.doughut-chart-wrap #myChart-2,
#myChart-1 {
    max-height: 230px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.chart-title {
    font-size: 20px;
    color: #A52A2A;
    font-weight: 700;
}

.title-2 {
    margin-bottom: 8px;
}

.chart-text {
    font-size: 14px;
    color: #969696;
    align-items: start;
}

.line-chart-title {
    font-size: 26px;
    text-align: center;
    font-weight: 700;
    color: #444444;
    margin-top: 10px;
}

.line-chart-text {
    text-align: right;
    margin: 5px 0;
    color: #444444;
    font-size: 16px;
    padding-right: 4px;
}

/* ✅ Swiper Wrapper */
.swiper-container {
    max-width: 840px;
    height: 100%;
    display: flex;
    overflow-x: hidden;
}

.swiper-wrapper {
    display: flex;
    align-items: center;
    height: 100%;
    width: 100%;
}

.line-chart-wrap{
    width: 100%;
    height: 100%;
    flex-grow: 1;
}

.line-chart-content-box {
    width: 100%;
    height: 100%;
    position: relative;
}

.swiper-slide {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-pagination {
    position: absolute;
    bottom: 0 !important;
    left: 50% !important;
    transform: translateX(-50%);
    width: auto !important;
    text-align: center;
    z-index: 3;
    display: flex;
    justify-content: center;
}

/* 해당페이지 active */
.swiper-pagination .swiper-pagination-bullet-active {
    background-color: #A52A2A;
}

.line-chart {
    width: 100%;
    height: 100%;
    max-height: 390px;
    min-height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
}

#myChart-3 {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
    min-height: 350px !important;
}

.line-chart-text-wrap {
    display: flex;
    justify-content: end;
    width: 100%;
}

.line {
    border-bottom: 1px solid lightgray;
    width: 82%;
    margin-right: 10px;
    margin-bottom: 12px;
}

.chart-data-text {
    text-align: right;
    margin-top: 16px;
    color: #969696;
    font-size: 14px;
    padding-right: 8px;
}


/* main-chart-page end */

/* main-section2 start */
.section-container2 {
    align-items: stretch;
    background-color: #F7F7F7;
    padding: 40px 10px;
}

.main-section2 {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 25% auto;
    align-items: stretch;
    gap: 24px;
}

.section-header{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.section-header h3{
    font-size: 18px;
    font-weight: 700;
}

.section-header a {
    font-size: 24px;
}

.notice {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

.notice-title-wrap{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
}

.notice-title-wrap h3{
    font-size: 20px;
    font-weight: 700;
}

.notice-title-wrap a{
    font-size: 30px;
}

.main-notice-list{
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
    width: 100%;
}

.main-notice-list li {
    overflow: hidden;
    width: 100%;
    max-width: 270px;
}

.main-notice-list li a{
    display: block;
    color: #444444;
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* 메인 하단쪽 사업안내 응급처치교육*/
.section-group {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.section-group-list {
    display: flex;
    justify-content: space-evenly;
    border: 4px solid #A52A2A;
    border-radius: 20px;
    background-color: white;
    padding: 22px 20px 14px 40px;
    flex-grow: 1;
    gap: 20px;
}


/* 개별 섹션 (사업안내 & 응급처치교육)  공통*/
.business-info-container,
.emergency-edu-container {
    display: inline-flex;
    align-items: end;
    justify-content: end;
}


.business-info,
.emergency-edu {
    flex-grow: 1;
}


/* 사업안내 */
.business-info{
    display: inline-flex;
    flex-direction: column;
    /*padding-left: 20px;*/
    position: relative;
    width: 100%;
}
.business-info h3{
    font-size: 20px;
    font-weight: 700;
}

.hos-img-wrap{
    width: 100%;
    position: relative;
}

.hos-img-wrap img{
    position: absolute;
    bottom: 10px;
    left: 0;
    height: 136px;
    width: 176px;
}

.business-info-list{
    font-size: 14px;
    width: 100%;
    display: inline-flex;
    justify-content: flex-end;
    align-items: flex-end;
    flex-direction: column;
    flex-grow: 0;
    margin-right: 24px;
}

.business-info-list li{
    background-color: #F7F7F7;
    border-radius: 100px;
    display: inline-flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 6px 12px;
    margin-bottom: 10px;
}

.business-info-list li a{
    text-align: center;
    color: #444444;
    font-weight: 500;
}

.border-line-2{
    display: block;
    border: 1px solid  #E3E3E3;
    align-self: stretch;
}

/* 응급처치교육 */
.emergency-edu{
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding:0 32px;
}

.emergency-edu-container{
    display: flex;
    justify-content: flex-end;
    align-items: start;
}

.section-header{
    display: flex;
    width: 100%;
}

.emc-title-wrap{
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 8px;
}

.section-header h3{
    font-size: 20px;
}

.section-header span{
    font-size: 16px;
    font-weight: 500;
    color: #BEBEBE;
}

.emEdu-btn-wrap{
    display: flex;
    justify-content: flex-start;
    align-items: start;
}

.section-header .emEdu-btn{
    background-color: #A52A2A;
    color: #FFFFFF;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 16px;
}

.emergency-edu-container{
    display: flex;
    position: relative;
    width: 100%;
    height: 100%;
    margin-top: 10px;
}

.emergency-edu-list{
    font-size: 14px;
    width: 100%;
    display: inline-flex;
    align-items: flex-end;
    justify-self: flex-end;
    flex-direction: column;
}

.emergency-edu-list li{
    background-color: #F7F7F7;
    border-radius: 100px;
    display: inline-flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 6px 12px;
    margin-bottom: 10px;
}

.emergency-edu-list li a{
    text-align: center;
    color: #444444;
}

.em-img-wrap {
    width: 100%;
    max-width: 220px;
    height: 100%;
}

.em-img-wrap img {
    width: 190px;
    height: 150px;
}

/* main-section2 end */

/* footer 영역 */
.page-footer {
    width: 100%;
    height: 100%;
    background-color: #444444;
    color: #DDDDDD;
}

.footer-group {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    line-height: 1.5;
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 10px;
}

.footer-info b{
    color:#FFFFFF;
    font-weight: 700;
    letter-spacing: 1.2px;
}

.footer-info div br{
    display: none;
}

.footer-link{
    font-size: 14px;
}

/*관련사이트 메뉴*/
.footer-menu {
    background-color: white;
    border-radius: 8px;
    color: black;
    width: 180px;
    height: 36px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.footer-btn{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    width: 100%;
}

.check img{
    width: 14px;
    height: 12px;
}

/* ✅ 푸터 메뉴 리스트 (아래로 정렬) */
.footer-menu-list {
    display: none;
    position: absolute;
    bottom: 105%; /* 부모 요소의 위쪽에 붙임 */
    left: 0;
    background-color: white;
    padding: 10px;
    z-index: 10;
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
}

/* 메뉴가 열릴 때 */
.footer-menu-list.show {
    display: flex; /* 보이게 하기 */
}



