/* 기본 레이아웃 스타일 초기화 및 개선 */
.byun_content {
    color: #333333;
    background-color: #ffffff;
    line-height: 1.6;
    margin: 0 auto;
    box-sizing: border-box;
}
.top_title p{
padding: 0px 20px;
}
.mobih2_txt {
  color: #878787;
	    font-weight: 400;
}	
/* ==========================================================================
   [디자인 고도화] 메인 비주얼 영역 (byun_gumtoptxt)
   ========================================================================== */
.byun_gumtoptxt {
    text-align: center;
    background: #f7f8f9;
    padding: 60px 20px;
    margin-bottom: 20px;
}
.byun_gumtoptxt h1 {
    font-size: 38px;
    color: #1c5c3a;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -1px;
}
.byun_gumtoptxt p {
    font-size: 25px;
    color: #555;
    margin-bottom: 35px;
    font-weight: 400;
}
.byun_gumtoptxt img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
#byun_sum_txt {
    font-size: 30px;
    color: #444;
    margin-top: 35px;
    line-height: 1.6;
}
#byun_sum_txt b {
    color: #1c5c3a;
    font-weight: 700;
    position: relative;
    z-index: 1;
}
#byun_sum_txt b::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(28, 92, 58, 0.15);
    z-index: -1;
}

/* ==========================================================================
   [디자인 고도화] 타이틀 영역 (초진/추가 검사 타이틀)
   ========================================================================== */
#byun_chojin_txt, #byun_chojin_txt2 {
    text-align: center;
    margin-bottom: 30px;
}
#byun_chojin_txt h2, #byun_chojin_txt2 h2 {
    font-size: 28px;
    font-weight: 400;
    color: #333333;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
	    line-height: 1.4;
}
	
#byun_chojin_txt h2 b, #byun_chojin_txt2 h2 b{
	color: #1c5c3a;
    font-size: 27px;
    font-weight: bold;
	
	}
#byun_chojin_txt h2::after, #byun_chojin_txt2 h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 4px;
    background-color: #1c5c3a;
    border-radius: 2px;
}

/* ==========================================================================
   [디자인 고도화] 초진 검사 그리드 (byun_jindan_grid)
   ========================================================================== */
.byun_jindan {   
	max-width: 1000px;   
	padding-bottom: 80px;
}
	   
	
.byun_jindan2_box {   	
	background: #f7f8f9;
}
.byun_jindan2 {   
	position:relative;	
	max-width: 1000px;
    margin: 0 auto;
    padding: 20px;   
padding-bottom: 70px;
    padding-top: 60px;

}	
	
.byun_jindan_grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 20px;
}
.byun_jindan_grid > div {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.grid_item_txt {
    padding: 30px 20px;
    text-align: center;
    flex-grow: 1;
	background: #f7f8f9;
}
.grid_item_txt h4 {
    font-size: 19px;
    color: #111;
    margin-bottom: 12px;
    font-weight: 700;
}
.grid_item_txt p {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
    word-break: keep-all;
}
.byun_jindan_grid img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-top: 1px solid #f0f0f0;
}
	
.ps_txt3 {
    text-align: center;
    font-size: 14px;
    color: #616775;
    border-radius: 10px;
    margin: 20px;
	
}	
.ps_txt{	
background: #fffffffc;;
}
	
#ps_txt, .byun_sajindan_notice {
    font-size: 13px;
    color: #888;
    text-align: center;
    margin-top: 25px;
}

/* 추가 검사 카드 영역 */
.byun_sajindan_grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}
.byun_sajindan_card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    box-sizing: border-box;
}
.byun_sajindan_title {
    font-size: 20px;
    font-weight: 700;
    color: #1c5c3a;
    margin-bottom: 8px;
}
.byun_sajindan_desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}
.byun_sajindan_img_box {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}
.byun_sajindan_img_box img {
    width: 50%;
    height: auto;
    border-radius: 6px;
    border: 1px solid #f0f0f0;
}


/* ==========================================================================
   [디자인 고도화] 근본 원인 치료법 배너 (byun_gunchiro)
   ========================================================================== */


.byun_gunchiro h1 {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.4;
    margin-bottom: 15px;
	text-align:center;
}
.byun_gunchiro p {
    font-size: 16px;
    color: #e2e8f0;
    font-weight: 300;
    line-height: 1.6;
	text-align:center;
}

/* 치료법 상세 리스트 */
.byun_chiro_gum{
	    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
	background: #f7f8f9;
}

	#byun_hanyack{   
		
		box-shadow: none;
	}
	
.byun_hanyack_right {

    background: #fff;
}/*	background: #f7f8f9;*/
	
	
#byun_chirobub ul li{
	background: #fff;
	box-shadow: none;
} /*	background: #f7f8f9;*/
	

/* 후기 인터페이스 탭 제어용 핵심 CSS */
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}

#byun_jinmum {   
    position: relative;
    margin-bottom: 100px;
    margin-top: 40px;
}

/* ==========================================================================
   [반응형 미디어 쿼리] 모바일 화면 최적화 (1024px / 768px 이하)
   ========================================================================== */
@media (max-width: 1024px) {
    .byun_jindan_grid {
        grid-template-columns: repeat(2, 1fr);
    }
    #byun_chirobub ul {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .byun_gumtoptxt { padding: 40px 20px; }
    .byun_gumtoptxt h1 { font-size: 26px; }
    .byun_gumtoptxt p { font-size: 20px; }
    #byun_sum_txt { font-size: 21px; }

    #byun_chojin_txt h2, #byun_chojin_txt2 h2 { font-size: 24px; }

    .byun_jindan_grid {
        grid-template-columns: 1fr;
    }
    .byun_jindan_grid img { height: auto; }

    .byun_sajindan_grid {
        grid-template-columns: 1fr;
    }
    .byun_gunchiro h1 { font-size: 24px; }



    #byun_chirobub ul {
        grid-template-columns: 1fr;
    }
}
	
.byun_gunchiro_box { 
    background: #6e6b67;
    max-width: 1000px;
    overflow: hidden;
    border-radius: 20px;
    margin: 0 auto;
    margin-top: 50px;
}

.byun_gunchiro {
    position: relative;
    max-width: 1000px; /* 다른 섹션들과 통일감 있는 라인 유지 */
    min-height: 200px;
    background: url(https://www.okbyun.co.kr/img/byunhom/gumsa/byun_jingunbg.jpg) no-repeat center center;
    background-size: cover; /* 이미지가 배경에 꽉 차도록 설정 */
    margin: 0 auto;
    padding: 80px 24px; /* 내부 여백으로 높이 확보 및 글자 배치 */
    box-sizing: border-box;
}

/* 어두운 배경 이미지 위에서 텍스트가 잘 보이도록 반투명 오버레이 추가 */
.byun_gunchiro::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
        background: rgb(0 0 0 / 25%); /* 이미지에 따라 밝기 조절 가능 */
    z-index: 1;
}

/* 오버레이 위로 콘텐츠 올리기 */
.byun_gunchiro h1, 
.byun_gunchiro p {
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3); /* 텍스트 시인성 향상 */
}

.byun_gunchiro h1 { 
    color: #ffffff; 
    font-size: 38px; 
    font-weight: 800;
    line-height: 1.35; 
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.byun_gunchiro p { 
    font-size: 18px; 
    color: #f1f5f9; 
    font-weight: 400; 
    line-height: 1.6;
    word-break: keep-all;
}

/* 모바일 및 태블릿 대응 미디어 쿼리 */
@media (max-width: 768px) {
    .byun_gunchiro_box {
        margin-top: 40px;
    }
    .byun_gunchiro {
        min-height: 200px;
        padding: 50px 20px;
        align-items: center; /* 모바일에서는 중앙 정렬이 더 안정적 */
    }
    .byun_gunchiro h1, 
    .byun_gunchiro p {
        text-align: center;
    }
    .byun_gunchiro h1 { 
        font-size: 26px; 
        margin-bottom: 15px;
    }
    .byun_gunchiro p { 
        font-size: 15px; 
    }
}
	
	
.review_more_btn {
display: block;
    width: 100%;
    max-width: 300px; /* 너무 길어지지 않게 제한 */
    margin: 30px auto 0; /* 중앙 정렬 */
    padding: 15px 0;
    text-align: center;
    background: #1c5c3a; /* 변한의원 포인트 컬러 */
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.review_more_btn:hover {
    background: #1c5c3a;
    color: #ffffff;
}