/* 파일 경로: SimriCare1/wwwroot/css/pages/index.css */

/* =========================================
   심리1번지 디자인 토큰 — 「자연 안식처」 컨셉
   세이지 그린 + 테라코타 + 웜 크림
   레거시 호환을 위해 --s1-navy / --s1-gold 별칭도 그대로 둠 (값만 갈아끼움)
   ========================================= */
:root {
    /* ── 메인 브랜드 ── */
    --s1-sage:        #87A878;  /* 메인 — 세이지 그린 */
    --s1-sage-deep:   #6B8B5E;  /* 호버·진한 강조 */
    --s1-sage-soft:   #B5CCA9;  /* 연한 배경·뱃지 */
    --s1-sage-bg:     #EFF4EA;  /* 아주 연한 톤 (필 영역) */

    --s1-terra:       #C97D5C;  /* 테라코타 액센트 */
    --s1-terra-soft:  #E0A88C;  /* 라이트 테라코타 */
    --s1-terra-deep:  #A05D40;  /* 다크 테라코타 */

    /* ── 베이스 ── */
    --s1-cream:       #F5EFE6;  /* 웜 크림 (메인 배경) */
    --s1-cream-soft:  #FBF7F0;  /* 더 밝은 크림 */
    --s1-surface:     #FFFFFF;
    --s1-border:      #E5E0D5;
    --s1-border-soft: #F0EBE0;

    /* ── 텍스트 ── */
    --s1-text:        #2C3D31;  /* 딥 포레스트 */
    --s1-text-muted:  #5C6E5F;  /* 무드 그린 그레이 */
    --s1-text-dim:    #8B9A8E;

    /* ── 시맨틱 ── */
    --s1-success:     #4A8B5C;
    --s1-danger:      #B8534B;
    --s1-warn:        #D4A65A;

    /* ── 효과 ── */
    --s1-shadow-sm:   0 1px 3px rgba(44, 61, 49, 0.06);
    --s1-shadow-md:   0 4px 12px rgba(44, 61, 49, 0.10);
    --s1-shadow-lg:   0 8px 28px rgba(44, 61, 49, 0.14);
    --s1-radius-sm:   6px;
    --s1-radius:      10px;
    --s1-radius-lg:   16px;

    /* ── 레거시 별칭 (이미 작성된 .s1-* 룰 호환) ── */
    --s1-navy:        var(--s1-sage);
    --s1-navy-deep:   var(--s1-sage-deep);
    --s1-navy-soft:   var(--s1-sage-soft);
    --s1-gold:        var(--s1-terra);
    --s1-gold-soft:   var(--s1-terra-soft);
    --s1-gold-deep:   var(--s1-terra-deep);
}

/* =========================================
   상단 고정 영역 — 추천 섹션 + 검색바 묶음
   ========================================= */
/* [심리1번지 변경 2026-05-08] sticky 해제 — 추천 + 검색이 본문과 함께 위로 스크롤되도록 */
.s1-pinned-top {
    background: var(--s1-cream);
    padding: 6px 0 12px;
    margin: 0 -10px 14px;
    padding-left: 10px;
    padding-right: 10px;
    box-shadow: 0 6px 12px -8px rgba(44, 61, 49, 0.15);
}
.s1-pinned-top .s1-recommend-wrap { margin-bottom: 10px; }
.s1-pinned-top .search-row { margin: 0; }

/* =========================================
   심리1번지 — 「오늘의 큐레이션」 추천 섹션
   원형 프로필 + 절제된 타이포 + 세이지/테라코타 액센트
   ========================================= */
.s1-recommend-wrap {
    margin: 12px 0 16px;
    padding: 14px 14px 12px;
    background:
        radial-gradient(circle at top right, var(--s1-sage-bg) 0%, transparent 60%),
        var(--s1-surface);
    border: 1px solid var(--s1-border);
    border-radius: var(--s1-radius);
    box-shadow: var(--s1-shadow-sm);
    position: relative;
    overflow: hidden;
}
.s1-recommend-wrap::before {
    content: "";
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg,
        var(--s1-sage-deep) 0%,
        var(--s1-sage) 30%,
        var(--s1-terra-soft) 70%,
        var(--s1-terra) 100%);
}

/* 헤더 — 한 줄 컴팩트 */
.s1-rec-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 10px; flex-wrap: wrap; gap: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--s1-border-soft);
}
.s1-rec-title-block {
    display: inline-flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
}
.s1-rec-eyebrow {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em;
    color: var(--s1-sage-deep);
    text-transform: uppercase;
}
.s1-rec-eyebrow::before {
    content: ""; width: 14px; height: 1.5px;
    background: var(--s1-sage); display: inline-block;
}
.s1-rec-title {
    font-family: 'Noto Serif KR', 'Nanum Myeongjo', ui-serif, serif;
    font-size: 1rem; font-weight: 700; color: var(--s1-text);
    letter-spacing: -0.01em; line-height: 1.2;
    margin: 0;
}
.s1-rec-title .accent {
    color: var(--s1-terra-deep);
    font-style: italic;
}
.s1-rec-sub {
    font-size: 0.7rem; color: var(--s1-text-muted);
    text-align: right; line-height: 1.3;
    font-style: italic;
}

/* 카테고리 버튼 — 더 작게 */
.s1-cat-row {
    display: flex; gap: 5px; flex-wrap: wrap;
    margin-bottom: 10px;
}
.s1-cat-btn {
    flex: 0 0 auto;
    padding: 4px 10px;
    background: transparent;
    border: 1px solid var(--s1-border);
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 500;
    color: var(--s1-text-muted);
    cursor: pointer;
    transition: all 0.18s ease;
    display: inline-flex; align-items: center; gap: 4px;
    user-select: none;
    line-height: 1.5;
}
.s1-cat-btn:hover {
    border-color: var(--s1-sage);
    color: var(--s1-sage-deep);
    background: var(--s1-sage-bg);
}
.s1-cat-btn.active {
    background: var(--s1-sage-deep);
    border-color: var(--s1-sage-deep);
    color: #FFFFFF;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(107, 139, 94, 0.25);
}
.s1-cat-btn .emoji { font-size: 0.85rem; opacity: 0.9; }

/* 추천 카드 그리드 — 4컬럼으로 확대 (가로 압축) */
.s1-rec-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    min-height: 0;
    transition: opacity 500ms ease;
    opacity: 1;
}
.s1-rec-cards.s1-rec-fading { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
    .s1-rec-cards { transition: none; }
}
.s1-rec-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 18px 10px;
    color: var(--s1-text-dim);
    font-size: 0.78rem;
    font-style: italic;
    background: var(--s1-cream-soft);
    border-radius: var(--s1-radius-sm);
    border: 1px dashed var(--s1-border);
}

/* ── 카드 본체 — 슬림 명함 ── */
.s1-rec-card {
    background: var(--s1-surface);
    border: 1px solid var(--s1-border-soft);
    border-radius: 10px;
    padding: 7px 9px;
    transition: all 0.18s ease;
    position: relative;
    text-decoration: none;
    color: var(--s1-text);
    display: flex; flex-direction: row;
    align-items: center;
    gap: 9px;
    overflow: visible;
    min-height: 0;
}
.s1-rec-card:hover {
    border-color: var(--s1-sage);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(44, 61, 49, 0.10);
    text-decoration: none;
    color: var(--s1-text);
}
.s1-rec-card:hover .rec-thumb {
    box-shadow: 0 0 0 2px var(--s1-sage-bg), 0 2px 6px rgba(44, 61, 49, 0.12);
}

/* 추천 뱃지 — 카드 우상단 */
.s1-rec-card .rec-badge {
    position: absolute; top: 5px; right: 6px;
    background: linear-gradient(135deg, var(--s1-terra) 0%, var(--s1-terra-deep) 100%);
    color: #FFFFFF;
    font-size: 0.55rem; font-weight: 700;
    padding: 1px 6px; border-radius: 999px;
    letter-spacing: 0.06em;
    box-shadow: 0 1px 4px rgba(160, 93, 64, 0.22);
    white-space: nowrap;
    line-height: 1.4;
}

/* 원형 프로필 사진 */
.s1-rec-card .rec-thumb {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--s1-cream);
    flex-shrink: 0;
    position: relative;
    border: 1.5px solid var(--s1-surface);
    box-shadow: 0 0 0 1.5px var(--s1-sage-soft), 0 2px 5px rgba(44, 61, 49, 0.08);
    transition: box-shadow 0.18s ease;
}
.s1-rec-card .rec-thumb img {
    width: 100%; height: 100%; object-fit: cover;
}

/* 상태 점 — 사진 우상단 */
.s1-rec-card .rec-status {
    position: absolute;
    top: -1px; right: -1px;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--s1-success);
    border: 1.5px solid var(--s1-surface);
}
.s1-rec-card .rec-status.busy { background: var(--s1-danger); }
.s1-rec-card .rec-status.wait { background: var(--s1-warn); }
.s1-rec-card .rec-status:not(.busy):not(.wait)::after {
    content: ""; position: absolute; inset: -2px;
    border-radius: 50%;
    animation: s1Pulse 2s infinite;
}
@keyframes s1Pulse {
    0%   { box-shadow: 0 0 0 0 rgba(74, 139, 92, 0.6); }
    70%  { box-shadow: 0 0 0 6px rgba(74, 139, 92, 0); }
    100% { box-shadow: 0 0 0 0 rgba(74, 139, 92, 0); }
}

/* 우측 정보 영역 */
.s1-rec-card .rec-info {
    flex: 1; min-width: 0;
    display: flex; flex-direction: column;
    gap: 1px;
    padding-right: 30px;  /* 뱃지 자리 */
}

/* 상담사 이름 */
.s1-rec-card .rec-name {
    font-family: 'Noto Serif KR', 'Nanum Myeongjo', ui-serif, serif;
    font-size: 0.95rem; font-weight: 700;
    color: var(--s1-text);
    letter-spacing: -0.01em;
    line-height: 1.2;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* 한 줄 소개 (1줄, 더 짧게) */
.s1-rec-card .rec-desc {
    font-size: 0.74rem;
    color: var(--s1-text-muted);
    line-height: 1.3;
    font-style: italic;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.s1-rec-card .rec-desc::before { content: '\201C'; opacity: 0.55; margin-right: 1px; }
.s1-rec-card .rec-desc::after  { content: '\201D'; opacity: 0.55; margin-left: 1px; }

/* 메타 — 한 줄 인라인 (ID 생략, 상태 + 좋아요만) */
.s1-rec-card .rec-meta {
    display: flex; align-items: center;
    gap: 5px;
    font-size: 0.7rem;
    color: var(--s1-text-dim);
    margin-top: 1px;
    line-height: 1.3;
}
.s1-rec-card .rec-meta-item {
    display: inline-flex; align-items: center; gap: 2px;
}
.s1-rec-card .rec-meta .rec-status-label {
    font-weight: 600;
    color: var(--s1-success);
}
.s1-rec-card .rec-meta .rec-status-label.busy { color: var(--s1-danger); }
.s1-rec-card .rec-meta .rec-status-label.wait { color: var(--s1-warn); }
.s1-rec-card .rec-meta .rec-divider {
    color: var(--s1-border);
    margin: 0 1px;
}
.s1-rec-card .rec-heart {
    color: var(--s1-terra);
    font-weight: 600;
}

/* 반응형 */
@media (max-width: 1024px) {
    .s1-rec-cards { grid-template-columns: repeat(4, 1fr); }
}

/* ── 모바일: 4 마이크로 카드 한 줄 ── */
@media (max-width: 768px) {
    .s1-recommend-wrap { padding: 10px 10px 8px; margin: 8px 0 12px; }
    .s1-rec-head {
        margin-bottom: 8px; padding-bottom: 6px;
        gap: 4px;
    }
    .s1-rec-title { font-size: 0.88rem; }
    .s1-rec-title-block { gap: 6px; }
    .s1-rec-eyebrow { font-size: 0.56rem; letter-spacing: 0.08em; }
    .s1-rec-eyebrow::before { width: 10px; }
    .s1-rec-sub { font-size: 0.6rem; line-height: 1.25; }

    .s1-cat-row { gap: 5px; margin-bottom: 8px; }
    .s1-cat-btn { padding: 5px 11px; font-size: 0.78rem; }
    .s1-cat-btn .emoji { font-size: 0.85rem; }

    /* 카드 그리드 — 4열 한 줄 */
    .s1-rec-cards { grid-template-columns: repeat(4, 1fr); gap: 5px; }

    /* 카드 — 세로 마이크로 (사진 위, 텍스트 밑) */
    .s1-rec-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 4px;
        padding: 5px 3px 4px;
        border-radius: 8px;
    }
    .s1-rec-card .rec-thumb {
        width: 58px; height: 58px;
        border-width: 1.5px;
        box-shadow: 0 0 0 1.5px var(--s1-sage-soft), 0 1px 3px rgba(44, 61, 49, 0.06);
    }
    .s1-rec-card .rec-status {
        width: 11px; height: 11px;
        border-width: 1.5px;
        top: -1px; right: -1px;
    }
    .s1-rec-card .rec-info {
        flex: 0 0 auto;
        padding-right: 0;
        gap: 1px;
        align-items: center;
        width: 100%;
    }
    .s1-rec-card .rec-name {
        font-size: 0.86rem;
        max-width: 100%;
    }
    .s1-rec-card .rec-desc { display: none; }   /* 모바일은 숨김 */
    .s1-rec-card .rec-meta {
        font-size: 0.7rem;
        gap: 3px;
        justify-content: center;
        line-height: 1.2;
    }
    .s1-rec-card .rec-meta .rec-divider { display: none; }  /* 줄임표 단순화 */
    .s1-rec-card .rec-badge {
        position: absolute; top: -5px; left: 50%;
        right: auto;
        transform: translateX(-50%);
        font-size: 0.48rem; padding: 1px 5px;
        letter-spacing: 0.04em;
    }
}
@media (max-width: 360px) {
    /* 아주 작은 폰 */
    .s1-rec-card .rec-name { font-size: 0.78rem; }
    .s1-rec-card .rec-thumb { width: 50px; height: 50px; }
    .s1-rec-card .rec-meta { font-size: 0.64rem; }
}

/* =========================================
   Modern Hero Section (Simri1 Custom)
   ========================================= */
.hero-section {
    position: relative;
    width: 100%;
    margin: 15px 0;
    border-radius: 16px;
    background: linear-gradient(270deg, #1F2A23, #3A5240, #87A878, #2C3D31);
    background-size: 600% 600%;
    animation: MidnightAurora 15s ease infinite;
    padding: 1.5rem 1.5rem 0.5rem 1.5rem;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.25);
    overflow: hidden;
    z-index: 1;
}

/* [심리1번지 변경 2026-05-08] sticky 해제 — 카피본 옛 잔재 클래스도 같이 풀기 */
.hero-sticky {
    /* position: sticky 제거 — 일반 흐름 */
}

@keyframes MidnightAurora {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0) 70%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    letter-spacing: -1px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
    word-break: keep-all; 
}

.hero-subtitle {
    font-size: 1.35rem;
    font-weight: 400;
    margin-bottom: 0px;
    color: #e2d9eb;
    letter-spacing: -0.5px;
    word-break: keep-all;
}

.hero-text-container {
    min-height: 8rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 0.8rem; 
    flex-wrap: wrap;
}

.hero-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1; 
    min-width: 130px; 
    padding: 1rem 1.2rem; 
    font-size: 1.4rem; 
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
    white-space: nowrap; 
}

.hero-btn-primary {
    background-color: #ffffff;
    color: #6B8B5E;
}

.hero-btn-primary:hover {
    background-color: #f8f9fa;
    color: #f07167;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.hero-btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.8); 
}

.hero-btn-secondary:hover {
    background-color: rgba(255,255,255,0.1);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

/* Mobile Responsiveness optimizations */
@media (max-width: 768px) {
    .hero-section {
        padding: 1.5rem 1rem; 
        margin: 10px auto; 
        width: calc(100% - 20px); 
    }
    .hero-title {
        font-size: 1.7rem; 
        margin-bottom: 1.2rem;
    }
    .hero-buttons {
        gap: 0.6rem;
        flex-direction: row; 
    }
    .hero-btn {
        width: auto;
        padding: 0.9rem;
        font-size: 1.3rem; 
    }
}

.taro_btn {
    padding: 20px 0;
    display: flex;
    justify-content: center;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    /* 스크롤바 숨기기 (선택) */
    scrollbar-width: none; 
}
.taro_btn::-webkit-scrollbar {
    display: none;
}

    .taro_btn .fnav {
        text-align: center;
        width: auto;
        /* 넘치는 경우 강제로 컨테이너 길이를 아이템에 맞춤 */
        min-width: max-content; 
    }

        .taro_btn .fnav ul {
            background: rgba(255, 255, 255, 0.96);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.6);
            border-radius: 25px;
            padding: 4px;
            display: inline-flex;
            gap: 2px;
            box-shadow: 0 4px 14px rgba(0,0,0,0.18);
        }

        .taro_btn .fnav li {
            width: auto;
            margin: 0;
        }

            .taro_btn .fnav li a {
                background: transparent;
                border: none;
                border-radius: 20px;
                color: #5C6E5F;
                text-shadow: none;
                cursor: pointer;
                display: block;
                font-size: 1.6rem;
                font-weight: 600;
                letter-spacing: -0.5px;
                line-height: 1.2;
                margin: 0;
                padding: 10px 22px;
                position: relative;
                text-align: center;
                transition: all 0.25s ease-in-out;
                white-space: nowrap;
            }

                .taro_btn .fnav li a:hover {
                    background: rgba(107, 139, 94, 0.08);
                    color: #2C3D31;
                }

                .taro_btn .fnav li a.active, .taro_btn .fnav li a.reservation-alert-tab.active {
                    background: linear-gradient(135deg, #6B8B5E 0%, #4F6B45 100%);
                    color: #ffffff;
                    font-weight: 700;
                    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
                    box-shadow: 0 3px 8px rgba(79, 107, 69, 0.35);
                }

/* Live Badge */
.live-badge {
    flex: 0 0 auto;
    background: linear-gradient(135deg, #6B8B5E 0%, #4F6B45 100%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    height: 36px;
    padding: 0 14px;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(79, 107, 69, 0.25);
    box-sizing: border-box;
}

.live-dot {
    width: 6px;
    height: 6px;
    background-color: #24ca2e;
    border-radius: 50%;
    box-shadow: 0 0 6px #24ca2e;
    animation: liveBlink 1.5s infinite;
}

@keyframes liveBlink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

@media (max-width: 768px) {
    .live-badge {
        height: 32px;
        padding: 0 12px;
        font-size: 1.05rem;
        border-radius: 16px;
        gap: 5px;
    }
    .search-row {
        padding: 0 10px;
        gap: 6px;
    }
    .hero-search-row {
        padding: 0 6px;
        margin-top: 8px;
    }
    .modern-search {
        height: 32px;
        padding: 0 12px;
        border-radius: 16px;
    }
    .search-icon {
        font-size: 1.25rem;
        margin-right: 6px;
    }
    .modern-input {
        font-size: 1.1rem;
    }
    /* 탭바 공간 최대 확보 */
    .hero-sticky.hero-section,
    .hero-section {
        padding-left: 0.3rem !important;
        padding-right: 0.3rem !important;
        width: calc(100% - 10px) !important;
    }
    .taro_btn {
        padding: 5px 0 10px 0 !important;
        justify-content: center !important;
        overflow: visible !important;
        margin: 0 !important;
        width: 100% !important;
    }
    .taro_btn .fnav {
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    /* Grid로 3등분 (Flex보다 균등 분배 보장) */
    .taro_btn .fnav ul {
        display: grid !important;
        grid-template-columns: 1fr 1fr 1fr !important;
        gap: 1px !important;
        padding: 3px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .taro_btn .fnav li {
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
    }
    .taro_btn .fnav li a,
    .taro_btn .fnav li a:link,
    .taro_btn .fnav li a:visited,
    .taro_btn .fnav li a.js-charge-link {
        font-size: 1.2rem !important;
        font-weight: 600 !important;
        padding: 10px 1px !important;
        letter-spacing: -1px !important;
        width: 100% !important;
        height: 100% !important;
        box-sizing: border-box !important;
        text-align: center !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: clip !important;
        border-radius: 16px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        line-height: 1.2 !important;
        text-decoration: none !important;
        color: #5C6E5F !important;
        margin: 0 !important;
    }
    /* span 내부 텍스트도 동일하게 */
    .taro_btn .fnav li a span {
        font-size: inherit !important;
        font-weight: inherit !important;
        line-height: inherit !important;
        letter-spacing: inherit !important;
        display: inline !important;
    }
    /* active: 배경만 변경, 크기/굵기는 동일 */
    .taro_btn .fnav li a.active,
    .taro_btn .fnav li a.reservation-alert-tab.active {
        font-size: 1.2rem !important;
        font-weight: 600 !important;
        color: #ffffff !important;
        text-shadow: none !important;
        box-shadow: none !important;
    }
    .hero-text-container {
        min-height: 7.5rem; /* 글자가 두 줄이 되어도 전체 배너 크기가 흔들리지 않도록 고정 */
    }
}

.search-row {
    max-width: 600px;
    margin: 0 auto 20px auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 배너 안에 들어간 검색 행 */
.hero-search-row {
    margin: 10px auto 0 auto;
    padding: 0 10px;
}

/* 배너 안 live badge: 흰 반투명 스타일로 전환 */
.hero-search-row .live-badge {
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: none;
}

.modern-search {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 16px;
    display: flex;
    align-items: center;
    border-radius: 20px;
    background-color: #ffffff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.05);
    height: 36px;
    position: relative;
    transition: box-shadow 0.3s;
}

.search-icon {
    font-size: 1.4rem;
    color: #a0a0a0;
    margin-right: 8px;
}

.modern-input {
    font-size: 1.2rem;
}

.modern-search:focus-within {
    box-shadow: 0 6px 20px rgba(107, 139, 94, 0.15);
    border-color: rgba(107, 139, 94, 0.3);
}

.search-icon {
    font-size: 2rem;
    color: #a0a0a0;
    margin-right: 15px;
}

.search-input-container {
    flex-grow: 1;
    display: flex;
    align-items: center;
    height: 100%;
}

.modern-input {
    border: none !important;
    background: transparent;
    padding: 0;
    font-size: 1.5rem;
    width: 100%;
    height: 100%;
    outline: none !important;
    box-shadow: none !important;
    color: #333;
    font-weight: 500;
}

.modern-input::placeholder {
    color: #bbb;
    font-weight: 400;
}

.clear-icon {
    font-size: 2rem;
    color: #d0d0d0;
    cursor: pointer;
    transition: color 0.2s;
    padding: 10px;
    margin-right: -10px;
}

.clear-icon:hover {
    color: #a0a0a0;
}


.teacher_list ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0 -4px;
    justify-content: flex-start;
}

.teacher_list li {
    box-sizing: border-box;
    flex: 0 0 25%;
    margin: 0;
    display: flex;
    min-width: 0;
    padding: 4px;
}

    .teacher_list li[data-status="0"] .box {
        background-color: #fdf5e6;
        border-color: #e6ddc9;
    }

.box {
    width: 100%;
    height: 100%;
    border: 1px solid #dcdcdc;
    border-radius: 12px;
    padding: 2px 8px 8px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out, background-color 0.3s ease-out;
    overflow: hidden;
}

    .box:hover {
        transform: translateY(-3px);
        box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.12);
    }

    .box .tname {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 6px;
        margin-bottom: 0;
        line-height: 1.1;
    }
    
    .tname-text {
        font-size: 1.6rem;
        font-weight: 800;
        color: #1F2A23; /* 다크 보랏빛 프리미엄 텍스트 */
    }
    
    .tname-badge {
        background-color: #EFF4EA;
        color: #6B8B5E;
        font-size: 1.25rem;
        font-weight: 700;
        padding: 2px 6px;
        border-radius: 6px;
        letter-spacing: 0.5px;
    }

.thumb {
    text-align: center;
}

    .thumb .img-frame {
        position: relative;
        display: block;
        width: 100%;
        max-width: 100%;
        aspect-ratio: 11 / 14;
        border-radius: 8px;
        border: 2px solid #fff;
        box-shadow: 0 3px 8px rgba(0,0,0,0.1);
        overflow: hidden;
        margin: 0 auto 2px auto;
    }

        .thumb .img-frame img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

.photo-status-banner {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 4px 0;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
    transition: background-color 0.3s;
    z-index: 10;
}

    .photo-status-banner.ready {
        background-color: rgba(20, 117, 119, 0.8);
    }

    .photo-status-banner.on {
        background: linear-gradient(45deg, rgba(217, 30, 24, 0.85), rgba(192, 57, 43, 0.9));
    }

    .photo-status-banner.appointment-alert {
        background-color: rgba(255, 140, 0, 0.85);
    }

/* ===== 전문분야 마퀴(흐르는 태그) ===== */
.spec-marquee {
    overflow: hidden;
    width: 100%;
    margin: 4px 0 2px;
    mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
}
.spec-track {
    display: flex;
    gap: 5px;
    width: max-content;
    animation: specMarquee 12s linear infinite;
}
.spec-tag {
    flex-shrink: 0;
    padding: 2px 8px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 10px;
    white-space: nowrap;
    letter-spacing: -0.3px;
}
/* 카테고리별 고정 색상 */
.spec-tag[data-cat="우울·불안"]    { color: #1a73e8; background: #e8f0fe; }
.spec-tag[data-cat="연애·이별"]    { color: #d81b60; background: #fde8ef; }
.spec-tag[data-cat="부부·가족"]    { color: #e65100; background: #fef3e0; }
.spec-tag[data-cat="직장·스트레스"] { color: #f9a825; background: #fff8e1; }
.spec-tag[data-cat="자존감"]       { color: #2e7d32; background: #e8f5e9; }
.spec-tag[data-cat="대인관계"]     { color: #00838f; background: #e0f7fa; }
.spec-tag[data-cat="트라우마"]     { color: #283593; background: #e8eaf6; }
.spec-tag[data-cat="중독·습관"]    { color: #c62828; background: #fbe9e7; }
.spec-tag[data-cat="진로·적성"]    { color: #7b1fa2; background: #f3e5f5; }
.spec-tag[data-cat="육아·양육"]    { color: #558b2f; background: #f1f8e9; }
.spec-tag[data-cat="성격·성향"]    { color: #4e342e; background: #efebe9; }
.spec-tag[data-cat="감정조절"]     { color: #e91e63; background: #fce4ec; }
@keyframes specMarquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
/* 호버 시 애니메이션 일시 정지 */
.spec-marquee:hover .spec-track {
    animation-play-state: paused;
}

.tdesc {
    display: block;
    width: 100%;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
    text-align: center;
    padding: 4px 6px;
    margin: 0;
    font-style: normal;
    font-size: 1.25rem;
    font-weight: 500;
    color: #555;
    background-color: #f8f8f8;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.call-buttons {
    margin-top: 3px;
    display: flex;
    gap: 3px;
    justify-content: center;
}

.call-btn, .appointment-alert-btn, .unsubscribe-btn {
    border: none;
    padding: 8px 2px;
    text-align: center;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
}

.modern-prepaid {
    background: #ebf8f2;
    color: #059669;
    border: 1px solid rgba(5,150,105,0.2);
}

.modern-postpaid {
    background: #F5EFE6;
    color: #6B8B5E;
    border: 1px solid rgba(107, 139, 94,0.2);
}

.modern-prepaid:hover, .modern-postpaid:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.appointment-alert-btn {
    background-color: #ff8c00;
    color: white;
}

.unsubscribe-btn {
    background-color: #6c757d;
    color: white;
}

/* 사진 하단 프로필 링크 영역 */
.thumb-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2px;
}

.heart-btn {
    position: absolute;
    bottom: 30px; /* 상태 배너 바로 위 */
    left: 5px;
    background: rgba(0, 0, 0, 0.55);
    border: none;
    border-radius: 12px;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    color: #fff;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 15;
    transition: background-color 0.2s, transform 0.1s;
}

.heart-btn:hover {
    background: rgba(0, 0, 0, 0.75);
}

.heart-btn:active, .heart-btn.heart-pop {
    transform: scale(1.1);
}

.heart-btn.hearted .heart-icon {
    color: #ff4757;
}

.heart-icon {
    font-size: 1.3rem;
    line-height: 1;
}

.heart-count {
    font-size: 1.1rem;
    font-weight: 500;
}

.profile-link-btn {
    display: inline-block;
    padding: 4px 14px;
    font-size: 1.15rem;
    border: 1.5px solid #8080c0;
    background: #8080c0;
    border-radius: 20px;
    color: white;
    text-decoration: none;
    transition: all 0.2s;
}

.profile-link-btn:hover {
    background: #6a6ab0;
    border-color: #6a6ab0;
}

.fitem_wrap {
    overflow-x: hidden; /* 음수 마진으로 인한 가로 스크롤/흔들림 완벽 차단 */
}

.fitem-content {
    display: none;
}

    .fitem-content.active {
        display: block;
    }

.call-btn.disabled {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.7;
    flex: 1;
}

/* 버튼이 하나뿐일 때 (상담중, 알림신청 등) 전체 너비 사용 */
.call-buttons .appointment-alert-btn,
.call-buttons .unsubscribe-btn {
    flex: 1;
}

.tname-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.box .tname {
    transition: background-color 0.2s ease-in-out;
}

.tname-link:hover .tname {
    background-color: #f0f0f0;
}

@media (max-width: 1024px) {
    .teacher_list li {
        flex-basis: 33.333%;
    }
}

@media (max-width: 768px) {
    .teacher_list li {
        flex-basis: 50%;
    }
}

@media (max-width: 480px) {
    .teacher_list li {
        flex-basis: 50%;
    }
}

/* =========================================
   로딩 버튼 스타일
   ========================================= */
.call-btn.is-loading, .appointment-alert-btn.is-loading, .unsubscribe-btn.is-loading {
    color: transparent !important; /* 기존 텍스트 숨기기 */
    pointer-events: none;
    position: relative;
}

    .call-btn.is-loading::after, .appointment-alert-btn.is-loading::after, .unsubscribe-btn.is-loading::after {
        content: '';
        display: block;
        position: absolute;
        width: 16px;
        height: 16px;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        margin: auto;
        border: 3px solid rgba(255, 255, 255, 0.5);
        border-top-color: white;
        border-radius: 50%;
        animation: button-loading-spinner 1s ease infinite;
    }

@keyframes button-loading-spinner {
    from {
        transform: rotate(0turn);
    }

    to {
        transform: rotate(1turn);
    }
}

/* =========================================
   토스트 알림 메시지 스타일
   ========================================= */
.toast-notification {
    position: fixed;
    bottom: -100px; /* 처음에는 화면 아래에 숨김 */
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 20px;
    border-radius: 8px;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 500;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.4s ease, bottom 0.4s ease;
}

    .toast-notification.show {
        opacity: 1;
        bottom: 20px; /* 화면에 나타날 때의 위치 */
    }

    .toast-notification.success {
        background-color: #28a745; /* 초록색 */
    }

    .toast-notification.error {
        background-color: #dc3545; /* 빨간색 */
    }

    .toast-notification.info {
        background-color: #17a2b8; /* 청록색 */
    }
