/* 디자인 토큰 정의 */
:root {
    --primary-color: #8cb9d4;
    /* 기본 테마 블루 */
    --secondary-color: #E8F5E9;
    /* 소프트 그린 */
    --bg-color: #FDFCF0;
    /* 크림 베이지 본문 배경 */
    --text-color: #333333;
    --white: #ffffff;
    --header-bg: rgba(255, 255, 255, 0.95);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* 브랜드 컬러 */
    --pogsin-green: #27AF31;
    --pogsin-orange: #F39808;
}

/* 브랜드 타이틀 스타일 */
.pogsin-brand {
    display: inline-flex;
    font-weight: inherit;
    letter-spacing: -0.05em;
}

.pogsin-brand .p { color: var(--pogsin-green); }
.pogsin-brand .o { color: var(--pogsin-orange); }
.pogsin-brand .g { color: var(--pogsin-green); }
.pogsin-brand .s { color: var(--pogsin-orange); }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* 히어로 섹션 */
.hero-section {
    width: 100%;
    height: 70vh;
    min-height: 400px;
    position: relative;
    overflow: hidden;
    margin-top: 70px; /* 헤더 높이만큼 여백 */
}

.hero-image-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.1));
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-content {
    color: var(--white);
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -1px;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 50vh;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
}

/* 헤더 & 내비게이션 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--header-bg);
    box-shadow: var(--shadow);
    z-index: 1000;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: -1px;
}

.logo span {
    color: #F39808;
    /* '폭신폭신' 글자 중 포인트 컬러 */
}

/* 데스크탑 메뉴 */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding-bottom: 5px;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -15px; /* 헤더 하단에 정렬 */
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
    font-weight: 700;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* 햄버거 버튼 (모바일 전용) */
.menu-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    z-index: 1002;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: var(--transition);
    transform-origin: center;
}

.menu-toggle.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* 데스크탑 드롭다운 메뉴 스타일 (가로형 서브바) */
@media (min-width: 1025px) {
    .header {
        height: 70px;
        transition: height 0.3s ease, background-color 0.3s ease;
        overflow: visible;
    }
    
    .dropdown-toggle-btn {
        display: none !important;
    }

    /* 호버 시 또는 활성 서브메뉴가 있을 때 헤더 높이 확장 */
    .header:hover, .header.has-active-submenu {
        height: 120px;
    }

    .nav-container {
        height: 70px;
        padding: 0 20px;
    }

    .nav-menu {
        height: 100%;
    }

    /* 헤더 하단 서브메뉴 배경 바 */
    .header::after {
        content: '';
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        height: 50px;
        background-color: #f8fbff;
        border-top: 1px solid rgba(140, 185, 212, 0.1);
        border-bottom: 1px solid rgba(140, 185, 212, 0.1);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 998;
    }

    .header:hover::after, .header.has-active-submenu::after {
        opacity: 1;
        visibility: visible;
    }

    .nav-item {
        position: static; /* 기본적으로는 헤더 전체 너비 기준 (전체 우측 정렬용) */
        height: 100%;
        display: flex;
        align-items: center;
    }

    .nav-item.first-nav-item {
        position: relative; /* 기관소개만 자기 자신을 기준으로 서브메뉴 배치 (바로 아래 정렬용) */
    }

    .dropdown-menu {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        height: 50px;
        display: flex !important;
        align-items: center;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 1000;
        background: none;
        border: none;
    }

    /* 기관소개 서브메뉴: 부모(li) 넓이에 맞춤 */
    .first-nav-item .dropdown-menu {
        width: auto;
        min-width: 100%;
        left: 0;
    }

    .dropdown-container {
        max-width: 1200px;
        width: 100%;
        margin: 0 auto;
        padding: 0 20px;
        display: flex;
        justify-content: flex-end; /* 기본 우측 정렬 */
    }

    /* 기관소개 컨테이너: 1200px 중앙 정렬 무시하고 왼쪽 시작 */
    .first-nav-item .dropdown-container {
        width: auto;
        max-width: none;
        margin: 0;
        padding: 0;
        justify-content: flex-start;
    }

    .dropdown-list {
        display: flex;
        flex-direction: row;
        gap: 40px;
        list-style: none;
        padding: 0;
        margin: 0;
    }

    /* 해당 메뉴 호버 시 또는 활성 상태일 때 서브메뉴 표시 */
    .nav-item:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
    }
    
    .nav-item.active .dropdown-menu {
        opacity: 1;
        visibility: visible;
        z-index: 999;
    }

    /* 다른 메뉴에 호버 중일 때는 활성 메뉴의 서브메뉴를 숨김 */
    .nav-menu:hover .nav-item.active:not(:hover) .dropdown-menu {
        opacity: 0;
        visibility: hidden;
    }

    .dropdown-item {
        display: block;
        height: auto;
    }

    .dropdown-link {
        text-decoration: none;
        color: #666;
        font-size: 0.95rem;
        font-weight: 500;
        transition: var(--transition);
        padding: 10px 5px; /* 좌우 여백 추가하여 가독성 및 클릭 영역 확보 */
        white-space: nowrap;
        position: relative;
    }

    .dropdown-link:hover, .dropdown-link.active {
        color: var(--primary-color);
        font-weight: 700;
    }
    
    .dropdown-link.active::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 2px;
        background-color: var(--primary-color);
    }
}

/* 모바일 메뉴 스타일 (태블릿 포함 1024px 기준) */
@media (max-width: 1024px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        gap: 0;
        transition: right 0.3s ease-in-out;
        box-shadow: -10px 0 20px rgba(0, 0, 0, 0.1);
        z-index: 1001;
        padding-top: 80px;
        align-items: flex-start;
        overflow-y: auto; /* 항목이 많을 경우 스크롤 허용 */
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-item {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-link-wrapper {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 15px 25px;
        width: 100%;
        font-size: 1rem;
    }

    .dropdown-toggle-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 50px;
        height: 50px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
    }

    .dropdown-toggle-btn .arrow {
        width: 8px;
        height: 8px;
        border-right: 2px solid #ccc;
        border-bottom: 2px solid #ccc;
        transform: rotate(45deg);
        transition: var(--transition);
        margin-bottom: 4px;
    }

    .nav-item.open .dropdown-toggle-btn .arrow {
        transform: rotate(-135deg);
        margin-bottom: -4px;
    }

    .nav-link::after {
        display: none;
    }

    /* 모바일 드롭다운 스타일 조정 */
    .dropdown-menu {
        position: static;
        display: none;
        background-color: #fcfdfe; /* 더 밝고 투명한 배경 */
        box-shadow: none;
        padding: 0;
        width: 100%;
        border-radius: 0;
        border-top: 1px solid #f0f4f8;
    }
    
    .dropdown-container {
        padding: 0;
    }

    .dropdown-list {
        list-style: none; /* 동그라미 제거 */
        padding: 10px 0;
        margin: 0;
    }

    .dropdown-item {
        border-bottom: none;
    }

    .dropdown-link {
        display: block;
        padding: 12px 45px; /* 왼쪽 여백을 늘려 계층 구조 표기 */
        font-size: 0.95rem;
        color: #777;
        text-decoration: none;
        transition: var(--transition);
        position: relative;
    }

    .dropdown-link::before {
        content: '';
        position: absolute;
        left: 25px;
        top: 50%;
        transform: translateY(-50%);
        width: 4px;
        height: 4px;
        background-color: #cbd5e0;
        border-radius: 50%; /* 아주 작은 점으로 구분 */
    }

    .dropdown-link:hover, .dropdown-link.active {
        color: var(--primary-color);
        background-color: #f0f7ff;
    }

    .dropdown-link.active::before {
        background-color: var(--primary-color);
    }

    .nav-item.open .dropdown-menu {
        display: block;
    }
}

/* 본문 영역 */
.main-content {
    margin-top: 80px;
    padding: 40px 20px;
    min-height: 100vh;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

/* Intro Section */
.intro-section {
    padding: 60px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.intro-section h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    text-align: center;
}

.intro-text {
    line-height: 2;
    font-size: 1.1rem;
    color: var(--text-color);
    word-break: keep-all;
    text-align: justify;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--white);
    padding: 35px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(140, 185, 212, 0.1);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-card p {
    color: #666;
    line-height: 1.6;
}

/* Philosophy Section */
.philosophy-section {
    background: var(--secondary-color);
    padding: 60px 20px;
    border-radius: 30px;
    margin: 60px auto;
    max-width: 900px;
    text-align: center;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.02);
}

.philosophy-section h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.philosophy-section p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-color);
    word-break: keep-all;
}

/* Credentials Section */
.credentials {
    padding: 60px 20px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.credentials h4 {
    font-size: 1.6rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.credentials p {
    line-height: 1.8;
    font-size: 1.05rem;
    color: #555;
    word-break: keep-all;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.8rem;
    }

    .intro-text {
        font-size: 1rem;
        text-align: left;
    }

    .philosophy-section {
        padding: 40px 20px;
        border-radius: 15px;
    }

    .philosophy-section p {
        font-size: 1rem;
    }
}

/* Partners Section */
.partners-section {
    padding: 60px 20px;
    background: var(--white);
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 60px;
}

.partners-section h3 {
    text-align: center;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.partners-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    justify-items: center;
    align-items: center;
    margin-bottom: 60px;
}

.partner-card {
    width: 100%;
    height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    transition: var(--transition);
    background: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.partner-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.partner-card img {
    max-width: 90%;
    max-height: 100px;
    object-fit: contain;
    margin-bottom: 15px;
    transition: var(--transition);
}

.partner-card:hover img {
    transform: scale(1.08);
}

.partner-card span {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    text-align: center;
    word-break: keep-all;
}

@media (max-width: 768px) {
    .partners-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 20px;
    }
    
    .partners-section h3 {
        font-size: 1.5rem;
    }
    
    .partner-card {
        height: 150px;
    }
    
    .partner-card img {
        max-height: 80px;
    }
    
    .partner-card span {
        font-size: 1.1rem;
    }
}

/* 게시판 공통 */
.container {
    max-width: 1000px;
    margin: 0 auto;
}

.board-table-container {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 20px;
}

.board-table {
    width: 100%;
    border-collapse: collapse;
}

.board-table th {
    background-color: #f8fbfc;
    padding: 15px;
    border-bottom: 2px solid var(--secondary-color);
    color: var(--primary-color);
    font-weight: 700;
}

.board-table td {
    padding: 15px;
    border-bottom: 1px solid #f1f1f1;
    text-align: center;
    cursor: pointer;
}

.board-table tr:hover td {
    background-color: #fafbfc;
}

.title-cell {
    text-align: left !important;
    font-weight: 500;
}

.board-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

/* 게시판 상세 */
.post-detail {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.post-header {
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.post-title {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

.post-info {
    color: #888;
    font-size: 0.9rem;
    display: flex;
    gap: 20px;
}

.post-content {
    line-height: 1.8;
    min-height: 200px;
}

/* 댓글 섹션 */
.comment-section {
    background: #f9fbfd;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 50px;
}

.comment-list {
    list-style: none;
    margin: 20px 0;
}

.comment-item {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.comment-meta {
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.comment-writer {
    font-weight: 700;
    color: var(--primary-color);
    margin-right: 10px;
}

.comment-date {
    color: #aaa;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 30px;
}

.comment-form textarea {
    width: 100%;
    height: 80px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    resize: none;
    font-family: inherit;
}

.comment-form-row {
    display: flex;
    gap: 10px;
}

.comment-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
}

.comment-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.btn-remove {
    background: none;
    border: none;
    color: #ff6b6b;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 2px 5px;
    border-radius: 4px;
    transition: background 0.2s;
}

.btn-remove:hover {
    background: #fff0f0;
}

/* 버튼 */
.btn {
    padding: 10px 25px;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #76a8c4;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #f1f1f1;
    color: #666;
}

.btn-secondary:hover {
    background-color: #e5e5e5;
    transform: translateY(-2px);
}

.btn-danger {
    background-color: #ff6b6b;
    color: var(--white);
}

.btn-danger:hover {
    background-color: #fa5252;
    transform: translateY(-2px);
}

/* 프리미엄 푸터 스타일 */
.footer-basic {
    background-color: #f7f9fa;
    padding: 60px 0 30px;
    border-top: 1px solid #e1e9ec;
    color: #666;
    font-size: 0.85rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section-title {
    font-size: 1.1rem;
    color: #333;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-center-brand {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.footer-center-brand span {
    color: #F39808;
}

.footer-info-list {
    list-style: none;
    line-height: 1.8;
}

.footer-info-list li {
    display: flex;
    margin-bottom: 5px;
}

.footer-info-list .label {
    font-weight: 700;
    color: #888;
    min-width: 90px;
    display: inline-block;
}

.footer-info-list .value {
    color: #777;
    word-break: keep-all;
}

/* 계좌 정보 박스 */
.account-box {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #eef2f4;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.account-item {
    margin-bottom: 10px;
}

.account-item:last-child {
    margin-bottom: 0;
}

.account-label {
    display: block;
    font-size: 0.75rem;
    color: #aaa;
    margin-bottom: 2px;
}

.account-value {
    font-weight: 600;
    color: #555;
    font-size: 0.95rem;
}

/* SNS 아이콘 */
.footer-sns {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.sns-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #eee;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
    color: #888;
    font-weight: 700;
    font-size: 0.75rem;
}

.sns-icon:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

.footer-note-box {
    margin-top: 20px;
    padding: 12px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 6px;
    font-size: 0.8rem;
    display: inline-block;
}

.footer-bottom {
    border-top: 1px solid #eee;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    color: #aaa;
    font-size: 0.8rem;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .footer-basic {
        padding: 40px 0 20px;
    }
}

/* Therapist Profile */
.therapist-profile {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
}

.therapist-intro {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.therapist-name {
    font-size: 2.22rem;
    margin-bottom: 10px;
    color: #333;
}

.therapist-name span {
    font-size: 1.25rem;
    color: #666;
    font-weight: normal;
    margin-left: 10px;
}

.therapist-title {
    font-size: 1.15rem;
    color: #007bff;
    font-weight: 500;
}

.profile-section {
    margin-bottom: 30px;
}

.profile-section h4 {
    font-size: 1.35rem;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.profile-section h4 .bullet {
    display: inline-block;
    width: 6px;
    height: 20px;
    background-color: #007bff;
    margin-right: 12px;
    border-radius: 3px;
}

.profile-section ul {
    list-style: none;
    padding-left: 18px;
}

.profile-section ul li {
    position: relative;
    margin-bottom: 8px;
    line-height: 1.6;
    color: #555;
}

.profile-section ul li::before {
    content: "•";
    position: absolute;
    left: -18px;
    color: #007bff;
}

/* 갤러리 스타일 (시설안내) */
.gallery-section {
    padding: 80px 0;
    background-color: #fff;
}

.gallery-section .section-title {
    text-align: center;
    font-size: 2.22rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 700;
}

.gallery-section .section-subtitle {
    text-align: center;
    color: #888;
    margin-bottom: 60px;
    font-size: 1.1rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.gallery-item {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
    border: 1px solid #eee;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.gallery-img-wrapper {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.gallery-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-img-wrapper img {
    transform: scale(1.1);
}

.gallery-info {
    padding: 25px;
}

.gallery-info h3 {
    font-size: 1.35rem;
    color: #2c3e50;
    margin-bottom: 12px;
    font-weight: 700;
}

.gallery-info p {
    color: #444; /* 대비 강화 */
    line-height: 1.7;
    font-size: 1.05rem; /* 크기 확대 */
    word-break: keep-all;
}

/* 라이트박스 모달 */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .gallery-section {
        padding: 50px 0;
    }
}

/* 마이그레이션된 리스트 스타일 */
.content-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.content-list {
    list-style: none;
    padding: 0;
}

.content-item {
    margin-bottom: 50px;
    padding: 30px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    border-left: 5px solid var(--primary-color);
    transition: var(--transition);
}

.content-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.item-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.item-title::before {
    content: "";
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    border-radius: 50%;
    margin-right: 15px;
}

.item-body {
    line-height: 1.8;
    color: #555;
    font-size: 1.05rem;
    word-break: keep-all;
}

.item-body p {
    margin-bottom: 15px;
}

.philosophy-box {
    background: #f1f6f9;
    padding: 25px;
    border-radius: 10px;
    margin: 20px 0;
    font-weight: 500;
    color: var(--text-color);
    border: 1px solid rgba(140, 185, 212, 0.2);
    position: relative;
    font-style: italic;
}

.philosophy-box::before {
    content: '"';
    font-size: 3rem;
    color: var(--primary-color);
    position: absolute;
    top: -10px;
    left: 10px;
    opacity: 0.2;
}

/* 상담영역(Counseling Areas) 전용 스타일 */
.counseling-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.counseling-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
    border: 1px solid rgba(140, 185, 212, 0.1);
    display: flex;
    flex-direction: column;
}

.counseling-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.counseling-card-img {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* 이미지 경로를 로컬 파일로 업데이트 */
.img-emotional { background-image: url('../images/counseling/area_emotional.png'); }
.img-interpersonal { background-image: url('../images/counseling/area_interpersonal_v2.png'); }
.img-eating { background-image: url('../images/counseling/area_eating.png'); }
.img-artist { background-image: url('../images/counseling/area_artist.png'); }
.img-korail { background-image: url('../images/counseling/area_korail.png'); }
.img-trauma { background-image: url('../images/counseling/area_trauma.png'); }
.img-personality { background-image: url('../images/counseling/area_personality.png'); }
.img-career { background-image: url('../images/counseling/area_career.png'); }
.img-mentoring { background-image: url('../images/counseling/area_mentoring.png'); }
.img-default { background: linear-gradient(135deg, #f5f5f5 0%, #eeeeee 100%); }

.counseling-card-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.counseling-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.counseling-card-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.counseling-card-text {
    font-size: 1rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 0;
    word-break: keep-all;
}

/* 규정 및 절차 스타일 */
.regulation-guide {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.step-list {
    list-style: none;
    padding: 0;
    counter-reset: step-counter;
}

.step-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 30px;
    border-bottom: 1px dashed #eee;
}

.step-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.step-number {
    counter-increment: step-counter;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    margin-right: 20px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(140, 185, 212, 0.4);
}

.step-content h4 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.step-content p {
    color: #666;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .counseling-grid {
        grid-template-columns: 1fr;
    }
    .regulation-guide {
        padding: 25px;
    }
}


/* 폭신폭신 프로그램 전용 스타일 */
.program-intro {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease-out;
}

.program-main-title {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 20px;
    font-weight: 800;
}

.program-description {
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.program-philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.philosophy-item {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid rgba(140, 185, 212, 0.1);
    transition: var(--transition);
}

.philosophy-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.philosophy-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.philosophy-item h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.program-content-box {
    background: linear-gradient(135deg, #f8fbfc 0%, #f1f6f9 100%);
    padding: 50px;
    border-radius: 25px;
    margin-bottom: 60px;
    text-align: center;
}

.box-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.method-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 25px;
}

.tag {
    background: #fff;
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border: 1px solid rgba(140, 185, 212, 0.2);
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.program-card {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    border-top: 4px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.04);
}

.program-card h4 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 15px;
}

.program-card p {
    font-size: 0.95rem;
    color: #777;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .program-main-title { font-size: 2rem; }
    .program-description { font-size: 1rem; }
    .program-content-box { padding: 30px 20px; }
}

/* 카드뉴스 슬라이더 스타일 */
.card-news-slider {
    position: relative;
    max-width: 600px;
    margin: 0 auto 40px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.slider-container {
    display: flex;
    width: 100%;
    transition: transform 0.5s ease-in-out;
}

.slider-item {
    flex: 0 0 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slider-item img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
    transition: var(--transition);
    z-index: 10;
}

.slider-nav:hover {
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.slider-prev { left: 10px; }
.slider-next { right: 10px; }

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.dot {
    width: 10px;
    height: 10px;
    background: #ddd;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .card-news-slider {
        max-width: 100%;
    }
}

/* Therapist Profile Styles */
.therapist-profile-container {
    padding: 10px 0;
    color: var(--text-color);
}

.therapist-brief h3.quote-text {
    font-size: 1.4rem;
    color: #444; /* Changed from var(--primary-color) for better contrast */
    font-weight: 700;
    line-height: 1.6;
    margin: 0;
    padding: 20px 30px;
    background: #fdf8f5; /* Very subtle warm background */
    border-left: 5px solid var(--accent-color);
    border-radius: 4px;
    display: inline-block;
    word-break: keep-all;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.03);
}

.profile-section {
    margin-bottom: 50px;
    animation: fadeInUp 0.8s ease-out;
}

.section-subtitle {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.profile-content {
    padding-left: 5px;
}

.sub-category {
    font-size: 1.1rem;
    color: #444;
    margin: 30px 0 15px;
    font-weight: 600;
    background: #f8fbfc;
    padding: 8px 15px;
    border-radius: 4px;
    display: inline-block;
}

.profile-list {
    list-style: none !important;
    padding: 0 !important;
    margin-bottom: 20px;
}

.profile-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    line-height: 1.7;
    color: #555;
    font-size: 1.05rem;
}

.profile-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.highlight-list li {
    font-weight: 500;
    color: var(--text-color);
}

.career-list li {
    font-size: 1rem;
}

.paper-list li {
    font-size: 0.95rem;
    margin-bottom: 15px;
    color: #666;
    padding-bottom: 10px;
    border-bottom: 1px dashed #eee;
}

.paper-list li:last-child {
    border-bottom: none;
}

.book-list li {
    font-weight: 600;
    color: var(--primary-color);
    background: #fff;
    padding: 12px 20px 12px 35px;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    border: 1px solid rgba(140, 185, 212, 0.1);
}

.book-list li::before {
    top: 12px;
    left: 15px;
}

@media (max-width: 768px) {
    .therapist-brief h3.quote-text { font-size: 1.25rem; }
    .section-subtitle { font-size: 1.15rem; }
    .profile-list li { font-size: 0.95rem; }
}
