/* ==========================================================================
   1. 기본 레이아웃 및 뇌질환 상단 배경 섹션 (뇌호장탕 공통 배경)
   ========================================================================== */
.byun_box h2 b{
background-image: linear-gradient(-45deg, #df0000, #d2dd27);
}

.bar.before {
    height: calc(320px * 0.15);
}

.brain_section1 {    
    background-image: linear-gradient(-45deg, #071e25, #414141, #071e25);
    background-size: 400% 400%;
    animation: colorChange 3s ease infinite;
    width: 100%;
    padding: 60px 20px 80px 20px;
    box-sizing: border-box;
}

@keyframes colorChange {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.brain_box {
    position: relative;
    max-width:900px;
    margin: 0 auto;
    text-align: center;
    box-sizing: border-box;
}

.brain_box h2 {

    text-align: center;
}

.brain_box h3 {

}


/* ==========================================================================
   2. 틱장애 / ADHD 탭 전환 시스템 (PC 기본 가로 배열)
   ========================================================================== */
.ticadhd_tab-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 100%;
    max-width: 900px;
    margin: 30px auto 0 auto;
    box-sizing: border-box;
}

.ticadhd_tab-radio {
    display: none;
}

.ticadhd_tab-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;                  /* 버튼 사이의 미세한 간격 */
    width: 100%;
    max-width: 420px;          /* PC 환경에서 안정감을 주는 가로폭 */
    margin: 0 auto;
    background-color: #f1f5f9; /* 차분하고 정돈된 라이트 그레이 트랙 */
    padding: 6px;
    border-radius: 30px;       /* 부드러운 알약 모양 캡슐 형태 */
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04); /* 안쪽으로 살짝 들어간 입체감 */
    box-sizing: border-box;
}

/* 개별 탭 버튼 스타일 */
.ticadhd_tab-btn {
    width: 50%;                /* 트랙의 정확히 절반을 차지 (이탈 원천 차단) */
    padding: 14px 0;           /* 상하 여백만 주어 좌우 텍스트 삐져나감 방지 */
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.5px;
    border-radius: 24px;       /* 버튼 자체도 둥글게 스퀘어 캡슐화 */
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    text-align: center;
    display: inline-block;
    background-color: transparent; /* 기본 상태는 투명 */
    color: #64748b;            /* 선택 안 된 글자는 미디엄 그레이 */
    border: none;
    box-sizing: border-box;
}

.ticadhd_tab-btn:hover {
    color: #334155;
}


/* CSS 전용 선택 탭 라이브러리 제어 */
#ticadhd_tab-input-tic:checked ~ .ticadhd_tab-buttons .ticadhd_tab-btn-tic {
background-color: #ffffff; /* 선택된 버튼은 하얀색 카드로 부각 */
    color: #252525;            /* 신뢰감을 주는 한의원 브랜드 그린 매칭 */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.02);
}

#ticadhd_tab-input-adhd:checked ~ .ticadhd_tab-buttons .ticadhd_tab-btn-adhd {
background-color: #ffffff; /* 선택된 버튼은 하얀색 카드로 부각 */
    color: #252525;            /* 신뢰감을 주는 한의원 브랜드 그린 매칭 */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.02);
}

.ticadhd_tab-card {
    width: 100%;
    background-color: #ffffff;
    border-radius: 20px;
    display: flex;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
}

.ticadhd_tab-panel {
    display: none;
    width: 100%;
}

#ticadhd_tab-input-tic:checked ~ .ticadhd_tab-card .ticadhd_tab-panel-tic,
#ticadhd_tab-input-adhd:checked ~ .ticadhd_tab-card .ticadhd_tab-panel-adhd {
    display: flex;
}

/* 탭 이미지 비주얼 좌측 배치 영역 */
.ticadhd_tab-visual {
    flex: 1;
    background-color: #f8fafc;
    display: flex;
    justify-content: center;
    align-items: stretch; /* 자식이 높이를 꽉 채우도록 변경 */
    box-sizing: border-box;
    overflow: hidden;
}

.ticadhd_tab-visual img {
    width: 100%;
    height: 100%; /* 부모 높이에 맞춤 */
    object-fit: cover; /* 비율을 유지하면서 공백 없이 박스를 꽉 채움 */
    display: block;
}


/* 탭 내부 설명 우측 텍스트 배치 영역 */
.ticadhd_tab-content {
    flex: 1.3;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
    text-align: left;
    box-sizing: border-box;
}

.ticadhd_tab-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ticadhd_tab-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ticadhd_tab-icon-v {
    width: 20px;
    height: 20px;
    background-color: #000000;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 11px;
    font-weight: bold;
    flex-shrink: 0;
}

.ticadhd_tab-title {
    font-size: 21px;
    font-weight: 700;
    color: #111111;
    margin: 0;
}

.ticadhd_tab-desc {
    font-size: 17px;
    color: #555555;
    line-height: 1.5;
    border-top: 1px solid #cbcbcb;
    padding-top: 10px;
    margin: 0;
    font-weight: 500;
    word-break: keep-all;
}

/* ==========================================================================
   3. 소장에 의한 뇌 염증 서브 헤더 및 원인 이미지 매칭
   ========================================================================== */
#ticadhd_bgbox {
    position: relative;
    background: #f3f4f8;
    display: inline-block;
    width: 100%;
    padding-bottom: 50px;
    box-sizing: border-box;
}   

.ticadhd_header {
    max-width: 1100px;
    margin: 50px auto 45px auto;
    text-align: center;
}   

.ticadhd_header h1 {
    font-weight: 700;
    color: #000000;
    font-size: 40px;
    margin: 0 0 10px 0;
}

.ticadhd_header p { 
    color: #000000; 
    font-size: 40px;
    font-weight: 700;
    margin: 0;
}

.ticadhd_header b { 
    color: #c50a0a; 
}   

#tic_yum, #adhd_yum {    
    position: relative;
    max-width: 700px;
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 28px 20px;
    margin: 0 auto;
    box-sizing: border-box;
}   

#tic_yum img, #adhd_yum img { 
    width: 400px; 
    max-width: 100%;
    height: auto;
    border-radius: 20px; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease;
    cursor: default;
    display: block;
}

#tic_yum img:hover, #adhd_yum img:hover {
    transform: translateY(-5px);
}

.ticadhd_img { 
    position: relative;
}   

.ticadhd_txt {
    flex: 1;
    text-align: left;
}

.ticadhd_txt h3 {   
    font-size:25px;
    font-weight: 700;
    margin: 0 0 16px 0;
    line-height: 1.4;
}

.ticadhd_txt h3 strong {
    font-weight: 700;
    color: #c72a2a;
}

.ticadhd_txt span { 
    display: inline-block;
    background: #c72a2a;
    color: #fff;
    font-size: 20px;
    font-weight: 500;
    padding: 4px 44px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.ticadhd_list {
    margin: 10px 0 0 0;
    padding: 0;
    list-style: none;
}

.ticadhd_list li {  
    font-size: 20px;
    line-height: 1.8;
    font-weight: 500;
    color: #333;
}

/* ==========================================================================
   4. 기저핵 / 전두엽 깜빡이는 뇌 염증 하이라이트 애니메이션
   ========================================================================== */
.highlight {
    position: absolute;
    border-radius: 50%;
    animation: blink 2s infinite; 
    
    /* 뇌 이미지가 100%로 커져도 그에 비례해서 포인트 크기가 유연하게 조절되도록 설정 */
    width: 22%;            
    height: 0;
    padding-bottom: 22%;   
    filter: blur(15px);    
    
    /* 중심점을 중앙으로 잡아 위치 오차 완전히 방지 */
    transform: translate(-50%, -50%); 
}

/* [기저핵 하이라이트] 부모가 100%일 때 대응하는 정확한 % 좌표 */
.highlight.gijur {
    top: 38%;             
    left: 50%;            
    background-color: rgba(255, 0, 0, 0.5);
}

/* [전두엽 하이라이트] 부모가 100%일 때 대응하는 정확한 % 좌표 */
.highlight.jundu {  
    top: 30%;             
    left: 30%;            
    background-color: rgba(255, 0, 0, 0.5);
}

@keyframes blink {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* ==========================================================================
   5. 장-뇌 축 메인 정의 박스 및 다이어그램 배치
   ========================================================================== */
#definition-box {
    border-radius: 20px;
    text-align: center;
    max-width: 700px;
    margin: 30px auto 0 auto;
    border: 2px solid #f0f5fa;
    overflow: hidden;
}

.definition-title {
    font-size: 23px;
    font-weight: 700;
    color: #1e3a45;
    padding: 15px;
    background: #f0f5fa;
    margin: 0;
}

.definition-desc {
    font-size: 18px;
    color: #4a5568;
    line-height: 1.6;
    word-break: keep-all;
    font-weight: 600;
    padding: 20px;
    margin: 0;
}

/* 다이어그램 메인 컨테이너 (PC 기본형: 가로 flex 배치) */
.diagram-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
    box-sizing: border-box;
    position: relative;
padding-bottom: 20px;
}

/* 좌측 연결선 영역 */
.connecting-line {
    flex: 1;
    max-width: 380px;
    position: relative;
    padding-top: 0; /* 기존 상단 패딩 제거 */
    display: flex;
    justify-content: center;
    align-items: center;
}

.connecting-line img {
    width: 100%;
    height: auto;
    display: block;
}

/* 우측 뇌 & 장 요소 묶음 영역 */
.diagram-parts-wrap {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 500px;
    position: relative;
}

/* 개별 파트 스타일 보정 (절대좌표 해제 및 그림자 유지) */
#brain-part, #gut-part {
    position: relative;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    display: block;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    overflow: hidden;
    z-index: 2;
}

#brain-part img, #gut-part img {
    width: 100%;
    height: auto;
    display: block;
}

/* 장뇌축 폭탄 애니메이션 효과 요소 고정 */
.jangsun {
    width: 50px;
    height: 100px;
    background: #ff1313;
    border-radius: 100px;
    animation: motion 3s linear 0s infinite alternate;
    position: absolute;
    left: 45%;
    top: 420px;
    z-index: 2;
    filter: blur(15px);
}

@keyframes motion {
    0% { margin-top: -350px; } 
    100% { margin-top: 0px; } 
}


/* ==========================================================================
   9. 모바일 반응형 미디어 쿼리 내 추가 (768px 이하 해상도 변환)
   ========================================================================== */
@media screen and (max-width: 768px) {
    /* 모바일에서는 위에서 아래로 순서 변경 (뇌 -> 연결선 -> 장) */
    .diagram-container {
        flex-direction: column;
        gap: 20px;
        margin: 20px auto;
    }

    /* 래퍼 구조를 해제하여 순서(order) 제어 활성화 */
    .diagram-parts-wrap {
        display: contents; 
    }

    /* 순서 배치 스위칭 핵심 */
    #brain-part {
        order: 1;
        max-width: 70%;
    }

    .connecting-line {
        order: 2;
        max-width: 180px; /* 모바일에서는 연결선이 너무 크지 않게 조절 */
        margin: 10px 0;
    }

    #gut-part {
        order: 3;
        max-width: 70%;
    }
  .jangsun {
        width: 16px;          /* 폭을 얇게 줄임 */
        height: 35px;         /* 길이를 줄여 둔탁해 보이지 않게 함 */
        filter: blur(8px);    /* 크기에 맞게 번짐 효과도 줄임 */
        animation: motion 2s linear infinite alternate; /* 모바일 전용 애니메이션 */
margin-top: 180px;

    }
@keyframes motion {
    0% { top: 0px; } 
    100% { top: -100px; } 
}


}




/* ==========================================================================
   6. 변한의원 자체 개발 발효 한약 & 자율신경계 박스 (추가 통합)
   ========================================================================== */
.hanyack_sun_box {   
    margin-top: 70px;
}

.byunbi-list {
    padding-top: 20px;
    padding-bottom: 0px;
}


.byunbi-list h2{
margin-bottom: 0px;
    font-size: 40px;
    margin-top: 40px;
}

@media screen and (max-width: 768px) {
.byunbi-list h2 {
       font-size: 27px;
    }
}

@media (min-width: 200px) and (max-width: 376px) {
    
.byunbi-list h2 {
       font-size: 24px;
    }
}



.byun_box {
    padding-bottom: 0px; 

}
.byun_box h2{

}

.byun_box h2, .byun_box h3 {   
    color: #fff;
padding-bottom:10px;
text-align: center;
}

.chogam {
    max-width: 700px;
    margin: 0 auto;
}

#jg-sub-title {
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    background: #eff6fe;
    margin: 20px auto 40px auto;
    padding: 15px 20px;
    border-radius: 10px;
    max-width: 1200px;
    line-height: 1.5;
    word-break: keep-all; 
}

#jayul_gyogam {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

#jayul_gyogam .jg-content {
    display: flex;
    position: relative;
    align-items: stretch; 
}

#jayul_gyogam .jg-card {
    flex: 1;
    border-radius: 12px;
    padding: 35px 25px;
    text-align: center;
    color: #ffffff;
    box-sizing: border-box;
}

#jayul_gyogam .jg-sympathetic { background-color: #9e2316; }
#jayul_gyogam .jg-parasympathetic { background-color: #e53935; }

#jayul_gyogam .jg-card-title {
    font-size: 25px;
    font-weight: bold;
    margin: 0 0 20px 0;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

#jayul_gyogam .jg-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    gap: 12px;
    max-width: 380px;
    display: flex;
    flex-direction: column;
}

#jayul_gyogam .jg-list li {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.5px;
    text-align: left;
}

#jayul_gyogam .jg-list li::before {
    content: '•';
    margin-right: 8px;
    opacity: 0.7;
}

#jayul_gyogam .jg-badges {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 10;
}

#jayul_gyogam .jg-badge {
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

#jayul_gyogam .badge-balance {
    background-color: #ffffff;
    color: #111111;
    border: 1px solid #dddddd;
}

#jayul_gyogam .badge-imbalance {
    background-color: #37474f;
    color: #ffffff;
}

#jayul_gyogam .jg-footer {
    text-align: center;
    margin-top: 30px;
    color: #666666;
    font-size: 18px;
    font-weight: 500;
}

/* 뇌질환 치료 마스터 래퍼 */
#brain_chiro {
    background-image: linear-gradient(-45deg, #071e25, #414141, #071e25);
    background-size: 400% 400%;
    animation: colorChange 3s ease infinite;
}

#brain_hanyack {
    width: 100%;
    max-width: 1000px;
    height: 450px;
    margin: 0 auto;
    background-image: url(https://byun60072.godomall.com/data/skin/front/pure/img/byunhom/jayulsin/mhanyack_brain1.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-color: #ffffff;
    position: relative;
    box-sizing: border-box;
}

#brain_hanyack .brainhan_list {
    position: absolute;
    text-align: left;
    left: 180px;
    top: 100px;
}

#brain_hanyack .brainhan_list h2 {
    font-size: 34px;
    font-weight: 700;
    color: #1c2a38;
    margin: 0 0 12px 0;
    letter-spacing: -1px;
}

#brain_hanyack .brainhan_list p {
    font-size: 19px;
    color: #4a5568;
    margin: 0 0 30px 0;
    font-weight: 500;
}

#brain_hanyack .brainhan_list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#brain_hanyack .brainhan_list ul li {
    font-size: 16px;
    color: #555555;
    position: relative;
    padding-left: 18px;
    margin-bottom: 10px;
    font-weight: 500;
}

#brain_hanyack .brainhan_list ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: #555555;
    font-weight: bold;
}

/* 미주신경 레이아웃 */
.vagus_box {
    position: relative;
    margin-top: 20px;
    margin-bottom: 20px;
}

.vagus-title-wrap {
    text-align: center;
    margin-bottom: 30px;
}

.vagus-main-title { 
    font-size: 40px;
}

.jayulsin_content {
    display: flex;
    flex-direction: row;        
    justify-content: center;
    align-items: center;
    gap: 40px;                  
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.image-placeholder-2 {
    position: relative;
    width: 100%;
    max-width: 450px;           
    display: flex;
    justify-content: center;
    flex: 1;
}

.image-placeholder-2 img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

#symptom-card {
    border: 3px solid #5bc68d;
    border-radius: 15px;
    padding: 25px 30px;
    background-color: #effbf2;
    max-width: 700px;
    box-sizing: border-box;
    flex: 1;
}

.symptom-item {
    margin-bottom: 18px;
}

.symptom-item:last-child {
    margin-bottom: 0;
}

.symptom-name {
    font-size: 20px;
    font-weight: 700;
    color: #0b6535;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
}

.symptom-name::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #5bc68d;
    border-radius: 50%;
    margin-right: 8px;
    flex-shrink: 0;             
}

.symptom-detail {
    font-size: 17px;            
    color: #666666;
    padding-left: 18px;
    line-height: 1.4;
    word-break: keep-all;       
}

/* ==========================================================================
   7. 3단 영양/산소/자극 자원 주입 구조 및 만족도 수치 서브 레이아웃
   ========================================================================== */
.brain_3dan-container {
    max-width: 700px;
    margin: 0 auto;
    box-sizing: border-box;
}

.brain_3dan-title {
    text-align: center;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 40px;
    color: #333333;
    line-height: 1.4;
    letter-spacing: -1px;
    word-break: keep-all; 
}

.brain_3dan-title span {
    color: #00a37b;
}

.brain_3dan-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 25px; 
}

#brain_dan1, #brain_dan2, #brain_dan3 {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0,0,0,0.06); 
    background-color: #ffffff;
    position: relative; 
    display: flex;
    flex-direction: column; 
}

#brain_dan1 .brain_3dan-header { background-color: #1cb375; }
#brain_dan2 .brain_3dan-header { background-color: #37a678; }
#brain_dan3 .brain_3dan-header { background-color: #198e5e; }

.brain_3dan-header {
    color: #ffffff;
    text-align: center;
    padding: 10px;
    font-size: 20px;
    font-weight: bold;
    letter-spacing: -0.5px;
}

.brain_3dan-image-box {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 0;
    padding-bottom: 68%; 
}

.brain_3dan-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: transform 0.4s ease; 
}

#brain_dan1:hover .brain_3dan-image,
#brain_dan2:hover .brain_3dan-image,
#brain_dan3:hover .brain_3dan-image {
    transform: scale(1.05);
}

.brain_man-container {
    width: 100%;
    margin: 0 auto;
    color: #ffffff;
    padding: 40px 0px 0px 0px; 
    text-align: center;
    box-sizing: border-box;
}

.brain_man-header h2 {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.5;
    margin: 0 0 60px 0;
    letter-spacing: -1px;
    word-break: keep-all;
}

.brain_man-stats {
    display: flex;
    justify-content: center;
    align-items: stretch; 
    max-width: 1000px;
    margin: 0 auto;
}

.brain_man-stat-item {
    flex: 1;
    position: relative;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between; 
}

.brain_man-stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 10%;
    width: 1px;
    height: 80%; 
    background-color: rgba(255, 255, 255, 0.25);
}

.brain_man-label {
    font-size: 20px;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: 500;
    letter-spacing: -0.5px;
    word-break: keep-all;
}

.brain_man-number-box, .brain_man-award-box {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.brain_man-counter, .brain_man-award {
    font-size: 54px;
    font-weight: 700;
    line-height: 1;    

} /*color: #fff42e;*/

.brain_man-award {
    font-size: 42px;
    color: #ffffff;
    letter-spacing: -1px;
}

.brain_man-unit {
    font-size: 54px;
    font-weight: 700;

}/*color: #fff42e;*/

.brain_man-subtext {
    font-size: 16px;
    color: #b0b8c1;
    margin-top: 5px;
}

.brain_man-subtext.gold {
    color: #e7e06a; 
}

/* ==========================================================================
   8. 중형 태블릿 해상도 대응 반응형 미디어 쿼리 (1024px ~ 1280px)
   ========================================================================== */
@media (min-width: 1024px) and (max-width: 1280px) {
    #symptom-card {
        width: 100%;
    }
}

@media screen and (max-width: 1024px) {
    #jayul_gyogam .jg-card {
        width: 100%;
        max-width: 600px; 
        padding: 25px 20px;
    }

    #jayul_gyogam .jg-list {
        display: flex;
        flex-direction: column;
        max-width: none;            
        width: fit-content;         
        margin: 0 auto;             
        text-align: left;           
        gap: 12px;
    }

    #jayul_gyogam .jg-badges {
        position: relative;
        left: 0;
        top: 0;
        transform: none;
        flex-direction: row; 
        justify-content: center;
        gap: 10px;
        width: 100%;
        margin: 0 0 15px 0;
    }

    #jayul_gyogam .jg-badge {
        font-size: 20px;
        padding: 8px 20px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    }

    #jayul_gyogam .jg-list li {
        font-size: 20px;
    }

    .brain_3dan-title {
        font-size: 34px;
        margin-bottom: 25px;
    }
    .brain_3dan-header {
        font-size: 21px;
        padding: 15px 10px;
    }
    .brain_3dan-grid {
        gap: 15px; 
        padding: 20px;
    }

    .brain_man-header h2 {
        font-size: 32px;
    }
    .brain_man-counter, .brain_man-unit {
        font-size: 46px;
    }
    .brain_man-award {
        font-size: 36px;
    }
    .brain_man-label {
        font-size: 18px;
    }
}

/* ==========================================================================
   9. 모바일 및 미디엄 스마트폰 완벽 호환 레이아웃 (991px / 768px 이하)
   ========================================================================== */
@media screen and (max-width: 991px) {
    .jayulsin_content {
        flex-direction: column;
        gap: 25px;
        padding: 15px;
    } 
    
    .image-placeholder-2 {
        max-width: 250px;        
        width: 55%;              
        margin: 0 auto;          
    }

    .image-placeholder-2 img {
        width: 100%;
        height: auto;
    }
    
    #symptom-card {
        width: 100%;
        margin: 0 auto;
    }

    .vagus-main-title {
        font-size: 28px;         
        line-height: 1.4;
    }
}

@media screen and (max-width: 768px) {
    /* 모바일 브레인 섹션 1 줄임 설정 및 탭 카드를 수직 배열로 전면 변환 */
    .brain_section1 {
        padding: 40px 20px;
    }

    .brain_box h2 {

    }


    .ticadhd_tab-buttons {
        gap: 10px;
    }

    .ticadhd_tab-btn {
        padding: 10px 0;
        font-size: 16px;
    }

    .ticadhd_tab-card {
        flex-direction: column;
        min-height: auto;
        border-radius: 15px;
    }

    .ticadhd_tab-panel {
        flex-direction: column;
    }

    .ticadhd_tab-visual {
        width: 100%;
        padding: 30px 20px 10px 20px;
        background-color: #ffffff;
    }

    .ticadhd_tab-visual img {
        max-width: 240px;
    }

    .ticadhd_tab-content {
        width: 100%;
        padding: 20px 20px 30px 20px;
        gap: 20px;
    }

    .ticadhd_tab-title {
        font-size: 18px;
    }

    .ticadhd_tab-desc {
        font-size: 15px;
    }

    /* 뇌 염증 유발 소장파트 모바일 전환 */
    #tic_yum, #adhd_yum {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    #tic_yum img, #adhd_yum img {
        width: 100%;
    }

    .ticadhd_txt {   
width: 100%;
    }

    .ticadhd_txt h3 {
        font-size: 24px;
		text-align: left;	
    }

    .ticadhd_list li {
        font-size: 18px;
    }

    /* 한약 및 3단 치료요법 모바일 대응 */
    #brain_hanyack {
        max-width: 100%;
        height: 0;
        padding-bottom: 95%;                
        margin: 25px auto 0 auto;
        background-image: url('https://byun60072.godomall.com/data/skin/front/pure/img/byunhom/jayulsin/mhanyack_brain.jpg');
        background-position: bottom center;   
        background-size: 100% auto;
    }

   #brain_hanyack .brainhan_list {
	position: absolute;
        top: 3%;
        right: 5%;
        left: auto;
        transform: none;
        padding: 10px 20px;
        background: #ffffffad;
        border-radius: 10px;
        box-shadow: rgb(0 0 0 / 11%) 0px 4px 8px;
    }

    #brain_hanyack .brainhan_list h2 { font-size: 30px; }
    #brain_hanyack .brainhan_list p {         font-size: 16px; }
    #brain_hanyack .brainhan_list ul li { font-size: 15px; }

    .brain_3dan-title {
        font-size: 26px; 
        line-height: 1.4;
        margin-bottom: 25px;
    }

    .brain_3dan-grid {
        grid-template-columns: 1fr; 
        gap: 15px;
        max-width: 100%;
        margin: 0 auto;
    }

    .brain_3dan-header {
        width: 60%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center; 
        font-size: 17px; 
        padding: 0 15px;
        text-align: center;
        word-break: keep-all;
        flex: 4;
    }

    #brain_dan1, #brain_dan2, #brain_dan3 {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        height: 90px; 
        border-radius: 10px;
    }

    .brain_3dan-image-box {
        width: 40%;
        height: 100%;
        padding-bottom: 0; 
        flex: 6;
    }

    /* 통계치 및 진료 만족도 모바일 대응 */
    .brain_man-container {
        padding: 20px 0 0 0;
    }

    .brain_man-header h2 {
        font-size: 24px;
        margin-bottom: 40px;
    }

    .brain_man-stats {
        flex-direction: column;
        gap: 30px; 
        max-width: 600px;
        margin: 0 auto;
    }

    .brain_man-stat-item {
        width: 100%;
        padding: 10px 0 25px 0;
        box-sizing: border-box;
    }

    .brain_man-stat-item:not(:last-child)::after {
        position: absolute;
        right: 10%;
        bottom: 0;
        top: auto; 
        width: 80%; 
        height: 1px;
        background-color: rgba(255, 255, 255, 0.15);
    }

    .brain_man-label {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .brain_man-number-box, .brain_man-award-box {
        min-height: auto; 
        margin-bottom: 5px;
    }

    .brain_man-counter, .brain_man-unit { font-size: 44px; }
    .brain_man-award { font-size: 34px; }
    .brain_man-subtext { font-size: 14px; }
}

/* ==========================================================================
   10. 초소형 화면 스마트폰 대응 레이아웃 (480px / 360px 이하)
   ========================================================================== */



@media screen and (max-width: 430px) {   
#brain_hanyack .brainhan_list h2 {
        font-size: 24px;
        margin-bottom: 6px;
    }

    #brain_hanyack .brainhan_list p {
        font-size: 14px;
        margin-bottom: 15px;
        line-height: 1.3;
    }

    #brain_hanyack .brainhan_list ul li {
        font-size: 13px;
        margin-bottom: 5px;
        padding-left: 12px;
    }
}


@media screen and (max-width: 480px) {
    .image-placeholder-2 {
        max-width: 200px;        
        width: 60%;
    }
    #symptom-card {
        padding: 20px 18px;      
    }
    .symptom-name {
        font-size: 18px;
    }
    .symptom-detail {
        font-size: 15px;
    }
    #jayul_gyogam .jg-list li {
        text-align: left;
    }
}

@media screen and (max-width: 600px) {
    #jg-sub-title { font-size: 16px; padding: 12px 15px; }
    #jayul_gyogam .jg-card-title { font-size: 20px; }
    #jayul_gyogam .jg-list {
        max-width: 200px;
        gap: 5px;
    }
    #jayul_gyogam .jg-list li {
        font-size: 17px;       
        text-align: left;
        white-space: nowrap;
    }
    #jayul_gyogam .jg-badges {
        justify-content: left;
        margin: 0 0 20px 0;
        flex-wrap: wrap;
        gap: 8px;
        font-size: 15px;
        flex-direction: column;
    } 
    .ticadhd_tab-visual img {
        max-width: 500px;
    }

}


@media screen and (max-width: 360px) {
    .brain_box h2 { }
    .ticadhd_tab-btn { font-size: 15px; }
    .brain_3dan-title { font-size: 22px; }
    .brain_3dan-header { font-size: 15px; flex: 4; }
    .brain_3dan-image-box { flex: 6; }
}