/* title */
h2.business-title { flex-basis: 100%; background: url("/theme/hongeun/img/page/banner_introduce.png"); margin-bottom: 80px; font-size: 80px; font-weight: 700; text-align: center; line-height: 400px; color: #fff; }
.business-area { display: flex; flex-wrap: wrap; gap: 0 80px; max-width: 1440px; margin: 0 auto; }

/* side-box */
.side-box { align-self: flex-start; padding: 20px; flex-basis: 290px; flex-shrink: 0; border-radius: 10px; box-shadow: 3px 3px 8px 0 rgba(0, 0, 0, 0.15); }
.side-box ul li:not(:last-child) { margin-bottom: 10px; }
.side-box ul li a { display: block; padding: 14px 30px; font-size: 20px; font-weight: 600; color: #333; border-radius: 26px; transition: color .3s linear, background-color .3s ease; }
.side-box ul li a.active { color: #fff; background-color: #8FBF75; }

/* main contents */
.main-contents { flex: 1; margin-bottom: 100px; }
.main-contents > ul { display: flex; gap: 0 20px; margin-bottom: 40px; }
.main-contents > ul li { position: relative; font-size: 16px; font-weight: 600; color: #333; transition: color .3s ease; cursor: pointer; }
.main-contents > ul li::after { position: absolute; bottom: -10px; content: ''; display: block; width: 100%; height: 1px; background-color: var(--color-green); transform: scaleX(0); transform-origin: right; transition: transform .3s ease-in; }
.main-contents > ul li.active { color : var(--color-green); }
.main-contents > ul li.active::after { transform: scaleX(1); transform-origin: left; }
.main-contents .tab-contents { border-top: 1px solid #ccc; border-bottom: 1px solid #ccc; padding: 40px 0; }
.main-contents .tab-contents > ul > li ul li img { width: 150px; height: 100px; object-fit: cover; }

/* main-contents 공통 */
.main-contents .tab-contents > * { display: none; }
.main-contents .tab-contents > .active { display: block; } 
.main-contents .tab-contents > ul > li:not(:first-child,:last-child) { padding: 40px 0; }
.main-contents .tab-contents > ul:not(.visit-care,.wash-project) > li:first-child { padding-bottom: 40px; }
.main-contents .tab-contents > ul:not(.visit-care,.wash-project) > li:last-child { padding-top: 40px; }
.main-contents .tab-contents > ul > li:not(:last-child) { border-bottom: 1px solid #ccc; }
.main-contents .tab-contents > ul > li h3 { margin-bottom: 20px; font-size: 22px; font-weight: 600; line-height: 30px; color: #111; }
.main-contents .tab-contents > ul > li h3 b { font-weight: inherit; color: var(--color-green); }
.main-contents .tab-contents > ul > li p { font-size: 18px; font-weight: 400; color: #000; line-height: 30px; }
.main-contents .tab-contents > ul > li p:not(:last-of-type) { margin-bottom: 10px; }
.main-contents .tab-contents > ul > li:last-child p:last-of-type { margin-bottom: 20px; }
.main-contents .tab-contents > ul > li ul { display: flex; gap: 0 10px; }
.main-contents .tab-contents > ul > li ul li img { border-radius: 5px; }
.main-contents .tab-contents > ul > li table { width: 100%; font-size: 18px; font-weight: 400; color: #111; line-height: 30px; border-collapse: collapse; }
.main-contents .tab-contents > ul > li table th,
.main-contents .tab-contents > ul > li table td { border: 1px solid #ccc; padding: 10px; vertical-align: top; }
.main-contents .tab-contents > ul > li table thead tr { background-color: #F5F9F3; }
.main-contents .tab-contents:not(.edu-culture,.neighbor-care) > ul > li table tr :last-child { width: 73%; }
.main-contents .tab-contents > ul > li table:not(:last-child) { margin-bottom: 20px; }

/* 홍은아동가족상담센터 */
.main-contents .tab-contents.child-family .area-tight > div:last-of-type ul li img { width: 100%; max-width: 260px; }
.main-contents .tab-contents.child-family .family-counsel > div h3 { margin-bottom: 40px; font-size: 22px; font-weight: 600; color: #111; line-height: 30px; }
.main-contents .tab-contents.child-family .family-counsel > div:first-of-type { border-bottom: 1px solid #ccc; padding-bottom: 40px; margin-bottom: 40px; }
.main-contents .tab-contents.child-family .family-counsel > div:first-of-type ol { padding-left: 0; list-style: none; }
.main-contents .tab-contents.child-family .family-counsel > div:first-of-type ol li { position: relative; padding-left: 83px; counter-increment: my-counter; }
.main-contents .tab-contents.child-family .family-counsel > div:first-of-type ol li::before { content: counter(my-counter, decimal-leading-zero); position: absolute; left: 0; top: 0; font-size: 50px; font-weight: 700; color: var(--color-green); font-family: "EASTARJET"; line-height: 50px; }
.main-contents .tab-contents.child-family .family-counsel > div:first-of-type ol li:not(:last-child) { margin-bottom: 30px; }
.main-contents .tab-contents.child-family .family-counsel > div:first-of-type ol li h4 { font-size: 20px; font-weight: 600; color: #111; line-height: 30px; }
.main-contents .tab-contents.child-family .family-counsel > div:first-of-type ol li p { font-size: 18px; font-weight: 400; color: #555; line-height: 30px; }
.main-contents .tab-contents.child-family .family-counsel > div:last-of-type h3 { padding-left: 52px; background: url("/theme/hongeun/img/page/camera_paint.svg") no-repeat left; }
.main-contents .tab-contents.child-family .family-counsel > div:last-of-type ul { display: flex; flex-wrap: wrap; gap: 20px 10px; flex-basis: 260px; }
.main-contents .tab-contents.child-family .family-counsel > div:last-of-type ul li img { margin-bottom: 10px; border-radius: 5px; width: 100%; max-width: 260px; }
.main-contents .tab-contents.child-family .family-counsel > div:last-of-type ul li b { display: block; font-size: 16px; font-weight: 400; color: #000; line-height: 30px; text-align: center; }
.main-contents .tab-contents.child-family .introduce-therapist h3 { margin-bottom: 40px; font-size: 30px; font-weight: 600; color: #111; line-height: 30px; }
.main-contents .tab-contents.child-family .introduce-therapist ul li { display: flex; gap: 0 40px; }
.main-contents .tab-contents.child-family .introduce-therapist ul li:not(:last-child) { border-bottom: 1px solid #ccc; }
.main-contents .tab-contents.child-family .introduce-therapist ul li:not(:first-child,:last-child) { padding: 40px 0;}
.main-contents .tab-contents.child-family .introduce-therapist ul li:first-child { padding-bottom: 40px; }
.main-contents .tab-contents.child-family .introduce-therapist ul li:last-child { padding-top: 40px; }
.main-contents .tab-contents.child-family .introduce-therapist ul li h4 { display: flex; align-self: flex-start; min-width: 200px; font-size: 22px; font-weight: 600; color: #111; }
.main-contents .tab-contents.child-family .introduce-therapist ul li h4 b { align-self: center; margin-left: 10px; max-width: 121px; font-size: 18px; font-weight: 500; color: var(--color-green); line-height: 21px; }
.main-contents .tab-contents.child-family .introduce-therapist ul li div span { display: block; font-size: 18px; font-weight: 400; color: #111; line-height: 30px; }

/* 마을소통2팀 */
.main-contents .tab-contents.village2 .child-youth > li > p:last-of-type,
.main-contents .tab-contents.village2 .care-service > li > p:last-of-type { margin-bottom: 20px; }
.main-contents .tab-contents.village2 .care-service table thead tr th { width: 20%; }

/* 이웃돌봄팀 */
.main-contents .tab-contents.neighbor-care > ul > li table tr th { text-align: center; }
.main-contents .tab-contents.neighbor-care > ul > li table tr :nth-child(2n+1) { width: 15%; }
.main-contents .tab-contents.neighbor-care > ul > li table tr :nth-child(2) { width: 56%; }
.main-contents .tab-contents.neighbor-care > ul > li table tr :nth-child(3) { vertical-align: middle; text-align: center; }
.main-contents .tab-contents.neighbor-care > ul > li table tr :nth-child(4) { width: 14%; vertical-align: middle; text-align: center; }

/* 이웃동행팀 */
.main-contents .tab-contents .senior-edu img { width: 100%; max-width: 1070px; }

/* 교육문화 */
.main-contents .tab-contents.edu-culture > ul > li ul { margin-bottom: 10px; }
.main-contents .tab-contents.edu-culture > ul > li table th { vertical-align: middle; }
.main-contents .tab-contents.edu-culture > ul > li table:first-of-type th { text-align: center; background-color: #F5F9F3; width: 8%; }
.main-contents .tab-contents.edu-culture > ul > li table:last-of-type tr > * { width: 20%; vertical-align: middle; text-align: center; }

/* 기타지원사업 */
.main-contents .tab-contents.other-service > ul > li ol { display: flex; justify-content: space-between; margin-bottom: 20px; padding: 15px 25px; border: 1px solid #ccc; list-style: none; }
.main-contents .tab-contents.other-service > ul > li ol li { padding: 15px 10px; font-size: 18px; font-weight: 400; color: #000; background-color: #cdcdcd; border-radius: 10px; }



@media(max-width: 1024px){

    /* side-box */
    .side-box { align-self: auto; padding: 10px; flex-basis: auto; margin: 0 15px; }
    .side-box ul { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 10px 0;}
    .side-box ul li:not(:last-child) {margin-bottom: 0;}
    .side-box ul li a { padding: 5px 20px; font-size: 1rem;}


    h2.business-title { margin-bottom: 50px; font-size: 2rem; line-height: 25vw; background-size: cover;
    }
    .main-contents {margin-top: 50px; margin-bottom: 50px; padding:0 15px;}
    .main-contents > ul{ margin-bottom: 20px;  overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
    .main-contents > ul::-webkit-scrollbar {display:none;}
    .main-contents > ul > li{flex-shrink: 0; }
    .main-contents .tab-contents > ul > li h3{font-size: 18px; line-height: 20px;}
    .main-contents .tab-contents > ul > li p{font-size: 15px; line-height: 20px;}
    .main-contents .tab-contents > ul > li ul{gap: 10px; flex-wrap: wrap;}
    .main-contents .tab-contents.child-family .family-counsel > div:first-of-type ol li{padding-left: 50px;}
    .main-contents .tab-contents.child-family .family-counsel > div:first-of-type ol li::before{font-size: 30px; line-height: 30px;}
    .main-contents .tab-contents.child-family .family-counsel > div h3{font-size: 20px; line-height: 24px;}
    .main-contents .tab-contents.child-family .family-counsel > div:first-of-type ol li h4{font-size: 18px;}
    .main-contents .tab-contents.child-family .family-counsel > div:first-of-type ol li p{font-size: 16px; line-height: 24px;}
    .main-contents .tab-contents > ul > li table{font-size: 14px; line-height: 24px;}
    .main-contents .tab-contents.other-service > ul > li ol{gap: 5px;}
    .main-contents .tab-contents.other-service > ul > li ol li{font-size: 15px;}
    
}

/*@media(max-width: 750px){
    .main-contents .tab-contents .table-wrap {overflow-x: scroll;width: 100%;}
    .main-contents .tab-contents .table-wrap table {width: 750px; border-collapse: collapse; }
    .main-contents .tab-contents .table-wrap table th,
    .main-contents .tab-contents .table-wrap table td{ word-break: break-all;}
}*/

@media(max-width: 620px){
    .main-contents .tab-contents.other-service > ul > li ol{flex-direction: column; text-align: center; flex-wrap: wrap; justify-content: start;}
}