


.section-title { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 15px; }
.section-title h2 { font-size: 20px; font-weight: 700; color: #000; }
.section-title .more { font-size: 16px; color: var(--text-color-light); text-decoration: none; }
.section-title .more {display: flex;align-items: center; gap:5px;}
.section-title .title-group { display: flex; align-items: baseline; gap: 10px; }
.section-title .title-group span { font-size: 16px; color: var(--text-color-light); }


.info-card { display: flex; gap: 20px;align-items: center; justify-content: space-between; }
.info-card-text p { font-size: 16px; line-height: 1.3; color: var(--text-color-primary); margin: 0 0 5px 0;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.info-card-text .more { font-size: 14px; color: var(--text-color-light); text-decoration: none;  }
.info-card-text .more {display: flex;align-items: center; gap:5px;}

.info-card-img {width: 100px; aspect-ratio: 1/1; background: url(../img/doctor2.png) no-repeat center center / contain; border-radius: 10px; flex-shrink: 0; }

.video-card {aspect-ratio: 16 / 9; border-radius: 10px; box-shadow: var(--card-shadow); background-color: #CCCCCC; overflow:hidden;}
.exercise-cards-container { display: grid; grid-template-columns: 1fr; gap: 10px; }
.video-card iframe {
    width:100%;
    height:100%;
}
.dyspnea-card { text-align: center; }
.dyspnea-card h3 { font-size: 18px; font-weight: 700; margin: 0 0 15px 0; }
.dyspnea-card-content { display: flex; align-items: center; gap: 20px; }
.progress-bar { width:50%;flex-grow: 1; height: 20px; background-color: var(--progress-bg-color); border-radius: 10px; overflow: hidden; }
.progress-bar-inner { width: 50%; height: 100%; background-color: var(--primary-color); border-radius: 10px 0 0 10px; }
.score {width:50%;text-align: right; }
.score .score-label { font-size: 16px; color: var(--text-color-light); }
.score .score-value { font-size: 16px; font-weight: 500; color: var(--text-color-primary);border-bottom: 1px solid var(--border-color);}
.score em {
    padding-left:10px;
    color:var(--primary-color);
    font-size:20px;
    font-weight:700;
}

.exercise-card { text-align: center; }
.exercise-card h3 { font-size: 18px; font-weight: 700; margin: 0 0 15px 0; }
.exercise-card-content { display: flex; align-items: center; justify-content: space-between; }
.circular-progress { position: relative; width: 100px; height: 100px; border-radius: 50%; background: conic-gradient(var(--primary-color) 75%, var(--progress-bg-color) 75%); flex-shrink: 0; }
.circular-progress::before { content: ''; position: absolute; top: 10px; left: 10px; right: 10px; bottom: 10px; background: #fff; border-radius: 50%; }
.circular-progress-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px;}
.circular-progress-icon img {width:100%;height:100%;object-fit: contain;}

.stats { text-align: right; flex-grow: 1; margin-left: 20px; } 
.stats .stat-main .value { font-size: 20px; font-weight: 700; color: var(--primary-color); }
.stats .stat-main .unit {font-size: 16px; font-weight: 500; color: var(--primary-color);color:var(--text-color-primary)}
.stats hr { width:150px;border: 0; border-top: 1px solid var(--border-color); margin: 0;margin-left: auto; margin-right: 0;  margin-bottom: 6px; }
.stats .stat-sub { display:flex;flex-direction: column;gap:5px;font-size: 16px; color: var(--text-color-secondary); margin-top: 6px;}
.stats .stat-sub .stat-wrap {
    display:flex;
    gap:10px;
    justify-content: space-between;
    width: 95%;
    margin-right: 0;
    margin-left: auto;
    word-break: keep-all;
    line-height: 1.1;
}
.view-records-btn { background-color: var(--primary-color); color: #fff; font-size: 16px; font-weight: 700; margin-top: 10px; }
.stats .stat-main h4 {font-size:16px;font-weight:500;}

.message-container { display: flex; flex-direction: column; gap: 10px; }
.message-card { display: flex; justify-content: space-between; align-items: center; color: #fff;  cursor: pointer;position:relative;z-index: 1;}
.message-card.cheer { background-color: var(--primary-color); }
.message-card.empty { background-color: var(--inactive-color); justify-content: center; cursor: default; }
.message-card .arrow i { font-size: 12px; transition: transform 0.3s ease-out; }
.message-card span{display:flex;align-items: center;gap:5px;line-height:1.3;word-break:keep-all;}

/* 아코디언 내용 부분 (평소에는 숨겨져 있음) */
.cheer-content {
    padding: 30px 20px 20px;
    font-size: 16px;
    color: #000;
    border-radius: 0 0 10px 10px;
    margin-top: -10px;
    position:relative;
    z-index: 0;
    
    /* 애니메이션 속성 */
    display: none;
    overflow: hidden;
}

/* --- 아코디언 아이템이 열렸을 때(.open)의 스타일 --- */

/* 화살표 회전 */
.message-item.open .message-card .arrow i {
    transform: rotate(180deg);
}

/* 숨겨둔 내용 펼치기 */
.message-item.open .cheer-content {
    display: block;
}


/* 
@media (max-width: 767px) {
    main { padding-bottom: 100px; }
    nav.bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
        border-top: 1px solid #eee;
    }
}
@media (min-width: 768px) {
    .app-container { max-width: 768px; }
    .exercise-cards-container { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .app-container { max-width: 1024px; }
    .exercise-cards-container { grid-template-columns: repeat(3, 1fr); }
    .dyspnea-card { grid-column: 1 / -1; }
} */



@media all and (min-width: 768px) and (max-width: 1023px) {
    /** Tablet  */


    .exercise-cards-container { grid-template-columns: repeat(2, 1fr); }



}










