/* 공통 반응형 스타일 설정 */
.byun_content {
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.hanyak_box_box {
    position: relative;
    width: 100%;
    background: #e7e4eb;
    margin-bottom: 40px;
    overflow: hidden; /* 내부 배경 이미지가 삐져나가지 않도록 */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05); /* 은은한 하단 그림자 */
	    background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), 
                url('https://www.okbyun.co.kr/img/byunhom/boyack/boyack_bg.jpg') no-repeat center center;	
    background-size: cover;
}

.hanyak_box {
     position: relative;
    max-width: 1000px;
    min-height: 380px;
    background-size: cover;
    padding: 60px 40px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0 auto;
}

.hanyak_box h1 {	
    font-size: clamp(30px, 4.5vw, 42px); /* 크기 소폭 확대 */
    line-height: 1.2;
    font-weight: 600;
    color: #ffffff; /* 텍스트 흰색으로 변경 */
    margin: 0 0 24px 0;

}

.hanyak_box h1 b { 
	font-weight: 900;
    background-image: linear-gradient(-45deg, #2cb5cd, #d2dd27, #1bc9c6);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    background-size: 400% 400%;
    animation: colorChange 3s ease infinite;	

}

.hanyak_box p {	
    font-size: clamp(16px, 2.2vw, 20px);
    padding-left: 0px;	
    line-height: 1.6;
    color: #e2e8f0; /* 설명글은 약간 부드러운 밝은 그레이 */
    font-weight: 400;
    word-break: keep-all;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* 모바일 화면(768px 이하) 대응 패딩 조정 */
@media (max-width: 768px) {
    .hanyak_box {
        padding: 50px 24px;
        min-height: 320px;
    }
}
	
.boyack_list_box {
   max-width: 900px;
    margin: 0 auto;
}	

#boyack_list {
    display: flex;
    flex-direction: row; /* PC에서는 가로 정렬 */
    background-color: #f4f5f9;
    border-radius: 24px;
    overflow: hidden;
    align-items: stretch;
    margin-bottom: 30px;
}

.boyack-img {
    flex: 1;
    min-height: 250px;
}

.boyack-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.boyack-info {
    flex: 1.2;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.boyack-info h2 {
    font-size: 26px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 12px;
}

.boyack-info .sub-title {
    font-size: 17px;
    color: #444444;
    margin-bottom: 24px;
    word-break: keep-all;
    line-height: 1.4;
}

.recommend-box {
    display: flex;
    flex-direction: column; /* 배지와 리스트 정렬 구조 개선 */
    align-items: flex-start;
    gap: 15px;
}

/* PC 화면에서는 배지와 리스트를 가로로 배치 */
@media (min-width: 768px) {
    .recommend-box {
        flex-direction: row;
    }
}

.recommend-box .badge {
    background-color: #1a938c;
    color: #ffffff;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 15px;
    white-space: nowrap;
    font-weight: 600;
    text-align: center;
}

.recommend-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recommend-list li {
    font-size: 16px;
    color: #111111;
    margin-bottom: 8px;
    position: relative;
    padding-left: 15px;
    line-height: 1.6;
    word-break: keep-all;
}

.recommend-list li::before {
    content: "-";
    position: absolute;
    left: 0;
    color: #111111;
}

.recommend-list li:last-child {
    margin-bottom: 0;
}

/* 2. 첩약 보험 적용 섹션 (chuyack) */ 
.chuyack_box {
    margin-bottom: 60px;
	margin:20px;
}
	
#chuyack {
    background-color: #cbeeff;
    border-radius: 15px;
    padding: 40px;
    display: flex;
    flex-direction: row; /* PC 가로 정렬 */
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.chuyack-left {
    flex: 1;
}

.chuyack-left h3 {
    font-size: 28px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 8px;
    word-break: keep-all;
}

.chuyack-left p {
    font-size: 18px;
    color: #222222;
    font-weight: 500;
    margin: 0;
}

.chuyack-right {
    flex: 1;
    text-align: right;
}
	
.chuyack-right p {
    font-size: 18px;
    font-weight: 600;
    color: #111111;
    line-height: 1.5;
    margin: 0;
    text-align: right;
    word-break: keep-all;
}

/* ★ 모바일 및 태블릿 화면 최적화 (브레이크포인트: 768px) */
@media (max-width: 768px) {


    /* 보약 리스트 세로 배치 */
    #boyack_list {
        flex-direction: column;
    }

    .boyack-img {
        width: 100%;
        min-height: 200px;
    }

    .boyack-info {
        padding: 30px 20px;
    }

    .boyack-info h2 {
        font-size: 22px;
    }

    .boyack-info .sub-title {
        font-size: 15px;
        margin-bottom: 15px;
    }

    .recommend-list li {
        font-size: 15px;
    }

    /* 첩약 보험 박스 세로 배치 및 정렬 변경 */
    #chuyack {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }

    .chuyack-left {
        text-align: center;
        margin-bottom: 10px;
    }

    .chuyack-left h3 {
        font-size: 24px;
    }

    .chuyack-left p {
        font-size: 16px;
    }

    .chuyack-right {
        text-align: center;
        width: 100%;
    }

    .chuyack-right p {
        text-align: center;
        font-size: 15px;
    }
}