/* 기본 스타일 */
:root {
    --primary-color: #418080;
    --secondary-color: #418080;
    --accent-color: #418080;
    --text-color: #000000;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --brand-green: #418080;
    --brand-black: #000000;
    --brand-white: #ffffff;
}

/* 질병색인표 클릭 효과 */
.disease-item {
    transition: all 0.2s ease;
    padding: 0.1875rem 0.5rem;
    border-radius: 0.25rem;
    display: inline-block;
}

.disease-item:hover {
    background-color: #f0f8f8;
    color: #2d5555 !important;
    transform: translateY(-1px);
    box-shadow: 0 0.125rem 0.25rem rgba(65, 128, 128, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    word-break: keep-all;
    word-wrap: break-word;
}

/* 반응형 이미지 기본 설정 */
img {
    max-width: 100%;
    height: auto;
}

/* 추가 반응형 이미지 처리 */
.responsive-img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.aspect-ratio-16-9 {
    aspect-ratio: 16/9;
}

.aspect-ratio-4-3 {
    aspect-ratio: 4/3;
}

.aspect-ratio-1-1 {
    aspect-ratio: 1/1;
}

/* 모바일 메뉴 버튼 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
    min-width: 2.75rem;
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
}

.mobile-menu-btn:active {
    transform: scale(0.95);
}

/* 햄버거 메뉴 아이콘 */
.hamburger {
    display: flex;
    flex-direction: column;
    width: 1.5rem;
    height: 1.125rem;
    justify-content: space-between;
}

.hamburger span {
    display: block;
    height: 0.125rem;
    width: 100%;
    background-color: var(--text-color);
    border-radius: 0.0625rem;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover .hamburger span {
    background-color: var(--primary-color);
}

/* 햄버거 메뉴 애니메이션 */
.mobile-menu.active ~ .header .mobile-menu-btn .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(0.3125rem, 0.3125rem);
}

.mobile-menu.active ~ .header .mobile-menu-btn .hamburger span:nth-child(2) {
    opacity: 0;
}

.mobile-menu.active ~ .header .mobile-menu-btn .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(0.3125rem, -0.3125rem);
}

/* 문단 기본 스타일 - 상하 여백 통일 */
p {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.container {
    max-width: 75rem;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* 헤더 스타일 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 0.125rem 0.3125rem rgba(0,0,0,0.1);
    z-index: 1000;
}

.header-top {
    padding: 1.25rem 0;
}

.header-top .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    min-height: 5.625rem;
}

.logo {
    flex: 0 0 auto;
    margin-right: 2rem;
    display: flex;
    align-items: center;
}

.logo img {
    height: 4rem;
    width: auto;
    display: block;
}

.main-nav {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.main-nav ul {
    margin-left: 0;
}

/* 네비게이션 드롭다운 메뉴 */
.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2rem;
}
.main-nav > ul > li {
    position: relative;
}
.main-nav > ul > li > a {
    display: block;
    padding: 1.125rem 1.375rem 1rem 1.375rem;
    font-size: 1.08rem;
    font-weight: 600;
    color: var(--brand-black);
    border-radius: 0.625rem 0.625rem 0 0;
    transition: all 0.3s ease;
    transform: translateY(0);
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li:hover > a {
    background: var(--brand-green);
    color: var(--brand-white);
    transform: translateY(-0.125rem);
    box-shadow: 0 0.25rem 0.5rem rgba(65, 128, 128, 0.2);
}
.main-nav .sub-menu {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 10.625rem;
    background: #fff;
    box-shadow: 0 0.5rem 1.5rem rgba(80,60,120,0.10);
    border-radius: 0 0 0.75rem 0.75rem;
    padding: 0.625rem 0;
    z-index: 100;
}
.main-nav .has-sub:hover .sub-menu,
.main-nav .has-sub:focus-within .sub-menu {
    display: block;
}
.main-nav .sub-menu li a {
    display: block;
    padding: 10px 22px;
    color: var(--brand-black);
    font-size: 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    transform: translateX(0);
}
.main-nav .sub-menu li a:hover {
    background: var(--brand-green);
    color: var(--brand-white);
    transform: translateX(0.3125rem);
}
@media (max-width: 900px) {
    .header-top .container {
        flex-direction: column;
        align-items: stretch;
        min-height: unset;
        padding: 0 0.5rem;
    }
    .logo {
        justify-content: flex-start;
        margin: 0 0 0.625rem 0;
    }
    .main-nav {
        justify-content: flex-start;
    }
    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }
    .main-nav > ul > li > a {
        padding: 0.875rem 1rem;
        font-size: 1.05rem;
    }
    .main-nav .sub-menu {
        position: static;
        box-shadow: none;
        border-radius: 0 0 0.625rem 0.625rem;
        padding: 0;
        background: #f7f6fb;
    }
    .main-nav .sub-menu li a {
        padding: 0.625rem 1.125rem;
        font-size: 0.98rem;
    }
}

/* 메인 비주얼 이미지 한 화면 가득 채우기 */
.main-visual {
    width: 100vw;
    background: #f5f5f5;
    height: auto;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 110px;
}

/* 섹션 공통 스타일 */
section {
    padding: 80px 0;
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--brand-black);
    position: relative;
}

/* 자율신경 치료 히어로 섹션의 h2는 흰색으로 표시 */
section.autonomic-stress h2 {
    color: #fff;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--brand-green);
}

/* no-underline 클래스로 자동 밑줄 제거 */
section h2.no-underline::after {
    display: none !important;
}

/* 자율신경 집중 치료 섹션 버튼 호버 효과 */
.autonomic-focus-section a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.autonomic-focus-section a:first-child:hover {
    background: #f8f9fa;
    color: #418080;
}

.autonomic-focus-section a:last-child:hover {
    background: #fff;
    color: #418080;
}

/* 의료진 섹션 */
.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* 진료분야 섹션 */
.specialty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* 커뮤니티 섹션 */
.community-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* 푸터 */
.footer {
    background: #f8f9fa;
    padding: 60px 0 120px;
    color: #333;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 100px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.footer-info h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #418080;
    margin-bottom: 20px;
}

.footer-info p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #418080;
}

.footer-bottom {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.footer-bottom p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.footer-right {
    height: 100%;
    min-height: 350px;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-right {
        min-height: 300px;
    }
}

/* 버튼 스타일 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--brand-green);
    color: var(--brand-white);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-weight: 600;
    border: 2px solid var(--brand-green);
    transform: translateY(0);
}

.btn:hover {
    background: var(--brand-white);
    color: var(--brand-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(65, 128, 128, 0.3);
}

.btn.btn-outline {
    background: transparent;
    color: var(--brand-green);
    border: 2px solid var(--brand-green);
}

.btn.btn-outline:hover {
    background: var(--brand-green);
    color: var(--brand-white);
}

/* 카드 스타일 */
.card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

/* 애니메이션 */
/* 모션 애니메이션 */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(30px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
        transform: translate3d(0, 0, 0);
    }
    40%, 43% {
        animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
        transform: translate3d(0, -30px, 0);
    }
    70% {
        animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
        transform: translate3d(0, -15px, 0);
    }
    90% {
        transform: translate3d(0, -4px, 0);
    }
}

/* 애니메이션 클래스 */
.fade-in {
    animation: fadeIn 0.8s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

.slide-in-up {
    animation: slideInUp 0.8s ease-out;
}

.scale-in {
    animation: scaleIn 0.6s ease-out;
}

.bounce-in {
    animation: bounce 1s;
}

/* Intersection Observer를 위한 초기 상태 */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll.animate {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll.slide-left {
    transform: translateX(-50px);
}

.animate-on-scroll.slide-left.animate {
    transform: translateX(0);
}

.animate-on-scroll.slide-right {
    transform: translateX(50px);
}

.animate-on-scroll.slide-right.animate {
    transform: translateX(0);
}

.animate-on-scroll.scale {
    transform: scale(0.8);
}

.animate-on-scroll.scale.animate {
    transform: scale(1);
}

/* 슬라이더 스타일 */
.slider {
    width: 100vw;
    height: auto;
    min-height: 70vh;
    position: relative;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(100%);
    transition: all 500ms ease;
    z-index: 0;
}

.slide:first-child {
    opacity: 1;
    transform: translateX(0%);
    z-index: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    max-width: none;
}

.slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10;
}

.slider-control {
    width: 3.125rem;
    height: 3.125rem;
    border: none;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: all 0.3s;
}

.slider-control:hover {
    background: var(--white);
    transform: scale(1.1);
}

.slider-nav {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.625rem;
    z-index: 10;
}

.slider-dot {
    width: 0.75rem;
    height: 0.75rem;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.slider-dot.active {
    background: var(--white);
    transform: scale(1.2);
}

/* 슬라이더 콘텐츠 */
.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
    z-index: 5;
    width: 80%;
    max-width: 800px;
}

.slide-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* 메인 카드형 섹션 한 줄 배치 */
.main-cards-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
    margin: 0 auto;
    max-width: 1400px;
}
@media (max-width: 1200px) {
    .main-cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}
@media (max-width: 900px) {
    .main-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}
@media (max-width: 600px) {
    .main-cards-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}
.main-card {
    background: var(--brand-white);
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    padding: 36px 24px 32px 24px;
    text-align: left;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    border: 2px solid transparent;
}
.main-card:hover {
    box-shadow: 0 12px 32px rgba(65, 128, 128, 0.2);
    background: var(--brand-white);
    transform: translateY(-10px) scale(1.02);
    border: 2px solid var(--brand-green);
}
.main-card-icon {
    font-size: 2.5rem;
    color: var(--brand-green);
    margin-bottom: 18px;
    transition: all 0.3s ease;
}
.main-card:hover .main-card-icon {
    transform: scale(1.1) rotate(5deg);
    color: var(--brand-green);
}
.main-card h3 {
    font-size: 1.25rem;
    color: var(--brand-black);
    margin-bottom: 10px;
    transition: color 0.3s ease;
}
.main-card p {
    color: var(--brand-black);
    font-size: 1rem;
    margin-bottom: 18px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}
.main-card:hover p {
    opacity: 1;
}
.main-card-more {
    color: var(--brand-green);
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}
.main-card:hover .main-card-more {
    color: var(--brand-green);
    transform: translateX(5px);
}
.main-card-more span {
    opacity: 0;
    margin-left: 2px;
    transition: opacity 0.3s, margin-left 0.3s;
}
.main-card:hover .main-card-more span {
    opacity: 1;
    margin-left: 8px;
}

/* 유튜브 섹션 */
.youtube-section {
    background: #f7f6fb;
    padding: 60px 0 40px 0;
    text-align: center;
}
.youtube-section h2 {
    color: #6c4edb;
    margin-bottom: 30px;
}
.youtube-embed {
    display: flex;
    justify-content: center;
    align-items: center;
}
.youtube-embed iframe {
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(80,60,180,0.10);
    max-width: 100%;
}

/* 하단 고정 상담신청 배너 */
.quick-consult-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    background: linear-gradient(135deg, #418080 0%, #5a9a9a 100%);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 20px rgba(65, 128, 128, 0.15);
    display: flex;
    align-items: center;
    padding: 15px 32px 10px 24px;
    max-width: 1200px;
    margin: 0 auto;
    width: calc(100% - 32px);
    gap: 24px;
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* 배너 높이가 화면 높이의 15% 이상일 때 숨기기 */
.quick-consult-banner.hidden {
    transform: translateY(100%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
}
.quick-consult-banner .qc-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 120px;
}
.quick-consult-banner .qc-icon {
    display: none;
}
.quick-consult-banner .qc-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: -1px;
}
.quick-consult-banner .qc-form {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}
.quick-consult-banner .qc-form input[type="text"] {
    height: 42px;
    border: none;
    border-radius: 10px;
    padding: 0 16px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.95);
    min-width: 120px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}
.quick-consult-banner .qc-form input[type="text"]:focus {
    outline: none;
    background: #fff;
    box-shadow: 0 4px 12px rgba(65, 128, 128, 0.2);
    transform: translateY(-1px);
}
.quick-consult-banner .qc-privacy {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    gap: 4px;
    white-space: nowrap;
}
.quick-consult-banner .qc-privacy input[type="checkbox"] {
    accent-color: #fff;
    margin-right: 2px;
    transform: scale(1.1);
}
.quick-consult-banner .qc-privacy a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
    font-size: 0.93em;
    transition: color 0.3s ease;
}
.quick-consult-banner .qc-privacy a:hover {
    color: #fff;
}
.quick-consult-banner .qc-submit {
    background: #fff;
    color: var(--brand-green);
    border: 2px solid #fff;
    border-radius: 12px;
    padding: 0 24px;
    height: 44px;
    font-size: 0.95rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateY(0);
    white-space: nowrap;
}
.quick-consult-banner .qc-submit:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--brand-green);  
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}
@media (max-width: 900px) {
    .quick-consult-banner {
        flex-direction: column;
        align-items: stretch;
        padding: 10px 8px 8px 8px;
        gap: 10px;
        width: calc(100% - 8px);
    }
    .quick-consult-banner .qc-form {
        flex-direction: column;
        gap: 8px;
    }
    .quick-consult-banner .qc-form input[type="text"] {
        min-width: 0;
        width: 100%;
    }
    .quick-consult-banner .qc-submit {
        width: 100%;
        padding: 0 16px;
        font-size: 0.9rem;
    }
}
@media (max-width: 600px) {
    .quick-consult-banner {
        border-radius: 12px 12px 0 0;
        padding: 10px 2vw 8px 2vw;
        width: 100vw;
        max-width: 100vw;
    }
    .quick-consult-banner .qc-left {
        min-width: 0;
        gap: 6px;
    }
    .quick-consult-banner .qc-title {
        font-size: 1rem;
    }
    .quick-consult-banner .qc-icon {
        display: none;
    }
}

/* 성과 수치(키비주얼) 섹션 */
.main-stats-section {
    position: relative;
    background: #2d5a5a center/cover no-repeat;
    color: #fff;
    padding: 80px 0 40px 0;
    z-index: 1;
}
.stats-bg {
    background: rgba(45,90,90,0.7);
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
}
.stats-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 60px;
    flex-wrap: wrap;
}
.stat-item {
    flex: 1 1 220px;
    min-width: 220px;
    max-width: 320px;
    text-align: center;
    padding: 24px 10px 32px 10px;
    position: relative;
}
.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: 2px;
}
.stat-label {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 10px;
    color: #a0c4c4;
    letter-spacing: 1px;
}
.stat-icon {
    font-size: 2rem;
    color: #5a9999;
    margin-bottom: 10px;
}
.stat-desc {
    font-size: 1rem;
    color: #c4e0e0;
    margin-top: 8px;
    line-height: 1.5;
}
@media (max-width: 900px) {
    .stats-grid {
        flex-direction: column;
        gap: 30px;
    }
}

/* 의료진 프로필 카드 섹션 */
.main-doctors-section {
    padding: 60px 0;
    margin: 0;
}
.doctors-profile-grid {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
}
.doctor-profile-card {
    background: var(--brand-white);
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    overflow: hidden;
    width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    border: 2px solid transparent;
}
.doctor-profile-card:hover {
    box-shadow: 0 12px 32px rgba(65, 128, 128, 0.2);
    transform: translateY(-10px) scale(1.02);
    border: 2px solid var(--brand-green);
}
.doctor-profile-img {
    width: 100%;
    height: 260px;
    background: #fff;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
}
.doctor-profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.doctor-profile-info {
    padding: 24px 18px 28px 18px;
    text-align: center;
}
.doctor-profile-title {
    color: var(--brand-green);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 6px;
}
.doctor-profile-desc {
    color: var(--brand-black);
    font-size: 0.98rem;
    margin-bottom: 10px;
    opacity: 0.8;
}
.doctor-profile-name {
    color: var(--brand-black);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 18px;
}
.doctor-profile-btn {
    background: #418080;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 22px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.doctor-profile-btn:hover {
    background: #2d5a5a;
}
@media (max-width: 900px) {
    .doctors-profile-grid {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }
    .doctor-profile-card {
        width: 90%;
        max-width: 340px;
    }
}

/* 플로팅 메뉴 */
.floating-menu {
    position: fixed;
    top: 50%;
    right: 3px;
    transform: translateY(-50%);
    z-index: 3000;
    background: #ffffff;
    border-radius: 32px;
    box-shadow: 0 4px 24px rgba(80,60,180,0.13);
    padding: 20px 0 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    min-width: 80px;
    width: 100px;
}
.floating-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    outline: none;
    box-shadow: none;
    padding: 18px 0 12px 0;
    color: #666666;
    font-size: 0.98rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    position: relative;
}
.floating-item:not(:last-child)::after {
    content: '';
    display: block;
    width: 60%;
    height: 1px;
    background: #e0e0e0;
    position: absolute;
    left: 20%;
    bottom: 0;
}
.floating-item i, .floating-item img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #fff;
    border-radius: 50%;
    font-size: 1.5rem;
    box-shadow: 0 2px 8px rgba(65,128,128,0.15);
    margin-bottom: 4px;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}
.floating-item:hover i, .floating-item:hover img {
    background: #f0f0f0;
    transform: scale(1.05);
}
.floating-item.naver i {
    color: #fff;
    background: #418080;
}
.floating-item.naver:hover i {
    color: #fff;
    background: #418080;
}
.floating-item.kakao:hover i {
    color:#418080;
}
.floating-item.phone:hover i {
    color: #418080 ;
    
}
.floating-item.phone span {
    line-height: 1.2;
    
}

/* 브랜드 컬러 SVG 아이콘 - 필터 불필요 */

/* 한글 줄바꿈 최적화 */
p, h1, h2, h3, h4, h5, h6, div, span, li {
    word-break: keep-all;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* 동적 밑줄 애니메이션 */
.animated-underline {
    position: relative;
    display: inline-block;
}

.animated-underline::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 4px;
    background: #418080;
    transition: width 2s ease-out;
}

.animated-underline.animate::after {
    width: 100%;
}
.floating-item span {
    font-size: 0.98rem;
    color: #418080;
    margin-top: 2px;
    text-align: center;
    font-weight: 500;
    letter-spacing: -0.5px;
}
.floating-item:hover span {
    color: #2d5a5a;
}
@media (max-width: 900px) {
    .floating-menu {
        right: 10px;
    }
}
@media (max-width: 600px) {
    .floating-menu {
        top: auto;
        bottom: 90px;
        right: 6px;
        transform: none;
        min-width: 0;
        width: 56px;
        padding: 8px 0;
        border-radius: 24px;
    }
    .floating-item {
        padding: 10px 0 6px 0;
    }
    .floating-item span {
        display: none;
    }
    .floating-item i, .floating-item img {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
}

/* 네비게이션 밑줄 제거 */
.main-nav a {
    text-decoration: none !important;
}

@media (max-width: 900px) {
    .main-visual, .slider, .slide {
        min-height: 70vh;
    }
    .slide img {
        height: 100%;
        max-height: none;
        object-fit: cover;
    }
}
@media (max-width: 600px) {
    .main-visual, .slider, .slide {
        min-height: 60vh;
    }
    .slide img {
        height: 100%;
        max-height: none;
        object-fit: cover;
    }
}

/* about.html UI/UX 맞춤 스타일 */

.about-greeting-section {
    padding: 120px 0 0 0;
    margin: 0;
}

.about-greeting-flex {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
}

.about-greeting-title {
    min-width: 140px;
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

.about-greeting-title h1 {
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 0;
    color: #111;
}

.about-greeting-content {
    flex: 1;
    font-size: 1.25rem;
    color: #222;
    line-height: 2.1;
    font-weight: 400;
    padding: 0 100px;
}

.about-autonomic-section {
    padding: 0;
    margin: 0;
}

.about-autonomic-bg {
    padding: 60px 0;
    margin: 0;
    background-color: var(--light-gray);
}

.about-autonomic-section h2,
.about-start-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 18px;
}

.about-autonomic-section p,
.about-start-section p {
    font-size: 1.25rem;
    margin-bottom: 32px;
}

.about-autonomic-btns, .about-start-btns {
    display: flex;
    justify-content: center;
    gap: 18px;
}

.about-autonomic-btns .btn, .about-start-btns .btn {
    background: #fff;
    color: #388080;
    border: 2px solid #fff;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 12px 36px;
    transition: background 0.2s, color 0.2s;
}

.about-autonomic-btns .btn.btn-outline, .about-start-btns .btn.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.about-autonomic-btns .btn:hover, .about-start-btns .btn:hover {
    background: #fff2;
    color: #fff;
}

.about-autonomic-detail-section {
    padding: 60px 0;
    margin: 0;
}

.about-autonomic-detail-grid {
    display: flex;
    gap: 40px;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.about-autonomic-detail-item {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(80,60,120,0.08);
    padding: 38px 32px 32px 32px;
    flex: 1 1 0;
    text-align: center;
    min-width: 220px;
}

.about-autonomic-detail-icon {
    font-size: 2.5rem;
    color: #388080;
    margin-bottom: 18px;
}

.about-autonomic-detail-item h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.about-autonomic-detail-item p {
    font-size: 1.08rem;
    color: #444;
}

.about-philosophy-section {
    background: #fff;
    padding: 70px 0 40px 0;
}

.about-philosophy-flex {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-philosophy-title h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #388080;
    margin-bottom: 18px;
}

.about-philosophy-title span {
    border-bottom: 4px solid #388080;
}

.about-philosophy-content p {
    font-size: 1.18rem;
    color: #333;
    margin-bottom: 0;
}

.about-cases-section {
    padding: 60px 0;
    margin: 0;
    background-color: var(--light-gray);
}

.about-cases-section h2 {
    font-size: 2.1rem;
    font-weight: 800;
    margin-bottom: 18px;
}

.about-cases-section .btn {
    margin-bottom: 32px;
    background: #fff;
    color: #388080;
    border: 2px solid #388080;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 10px 32px;
    transition: background 0.2s, color 0.2s;
}

.about-cases-section .btn:hover {
    background: #388080;
    color: #fff;
}

.about-cases-grid {
    display: flex;
    gap: 32px;
    justify-content: center;
    margin-top: 18px;
}

.about-cases-item {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(80,60,120,0.08);
    padding: 0 0 24px 0;
    flex: 1 1 0;
    min-width: 260px;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-cases-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 18px 18px 0 0;
    margin-bottom: 18px;
}

.about-cases-item h3 {
    font-size: 1.18rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.about-cases-item p {
    font-size: 1.05rem;
    color: #444;
    margin-bottom: 18px;
    padding: 0 18px;
}

.about-cases-item .btn {
    margin-bottom: 0;
    margin-top: auto;
}

.about-start-section {
    padding: 0;
    margin: 0;
}

/* 반응형 */
@media (max-width: 1100px) {
    .about-greeting-flex, .about-autonomic-detail-grid, .about-cases-grid {
        flex-direction: column;
        gap: 32px;
        align-items: stretch;
    }
    .about-cases-item {
        max-width: 100%;
    }
}
@media (max-width: 700px) {
    .about-greeting-title h1, .about-autonomic-section h2, .about-start-section h2, .about-philosophy-title h2, .about-cases-section h2 {
        font-size: 1.5rem;
    }
    .about-greeting-content, .about-autonomic-section p, .about-start-section p, .about-philosophy-content p, .about-cases-item p {
        font-size: 1rem;
    }
    .about-autonomic-btns .btn, .about-start-btns .btn, .about-cases-section .btn {
        font-size: 0.98rem;
        padding: 8px 18px;
    }
    .about-autonomic-detail-item {
        padding: 22px 10px 18px 10px;
    }
    .about-cases-item img {
        height: 140px;
    }
}

/* contact us, footer는 index와 동일하게 유지 */

/* 푸터 내 지도 배치 */
.footer-info .map-container {
    margin: 32px 0 0 0;
    width: 100%;
    max-width: 400px;
    height: 220px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    background: #fff;
}
.footer-info #about-map {
    width: 100%;
    height: 220px;
    border: none;
    border-radius: 12px;
}
.footer-links {
    grid-column: 1 / span 2;
    margin-top: 24px;
}
@media (max-width: 900px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
    .map-container {
        max-width: 100%;
        height: 180px;
        margin: 24px 0 0 0;
    }
    #about-map {
        height: 180px;
    }
    .footer-links {
        grid-column: 1;
    }
}

/* 의료진 소개 섹션 스타일 */
.doctor-profile-education {
    margin-top: 15px;
    margin-bottom: 20px;
    text-align: left;
}

.doctor-profile-education h4 {
    color: var(--brand-green);
    font-size: 1rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.doctor-profile-education ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.doctor-profile-education li {
    color: var(--brand-black);
    font-size: 0.9rem;
    margin-bottom: 5px;
    padding-left: 15px;
    position: relative;
    opacity: 0.8;
}

.doctor-profile-education li:before {
    content: '•';
    color: var(--brand-green);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* 의료진 진료 분야 섹션 */
.doctors-detail-section {
    background: #f8f8f8;
    padding: 60px 0;
    margin-top: 40px;
}

.doctors-specialty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.specialty-item {
    background: var(--brand-white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid transparent;
}

.specialty-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(65, 128, 128, 0.2);
    border: 2px solid var(--brand-green);
}

.specialty-item h4 {
    color: var(--brand-green);
    font-size: 1.3rem;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 700;
}

.specialty-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.specialty-item li {
    color: var(--brand-black);
    font-size: 1rem;
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
    transition: color 0.3s ease;
}

.specialty-item li:before {
    content: '✓';
    color: var(--brand-green);
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.1rem;
}

.specialty-item:hover li {
    color: var(--brand-black);
}

.doctors-detail-section h3 {
    text-align: center;
    color: var(--brand-black);
    font-size: 2rem;
    margin-bottom: 20px;
    position: relative;
}

.doctors-detail-section h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--brand-green);
    border-radius: 2px;
}

/* 치료과목 탭 네비게이션 */
.treatment-tabs {
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    padding: 0;
    margin: 130px 0 0 0;
    width: 100%;
    position: relative;
    z-index: 100;
}

/* 상담예약 페이지 전용 margin-top (동일하게 130px) */
.consult-page .treatment-tabs {
    margin-top: 130px !important;
}

/* 탭 요소 통일 - button과 a 태그 모두 동일한 스타일 적용 */
.treatment-tab,
.treatment-tabs button.treatment-tab,
.treatment-tabs a.treatment-tab {
    padding: 20px 40px;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    position: relative;
    font-family: inherit;
}

.treatment-tab:hover,
.treatment-tab.active,
.treatment-tabs button.treatment-tab:hover,
.treatment-tabs button.treatment-tab.active,
.treatment-tabs a.treatment-tab:hover,
.treatment-tabs a.treatment-tab.active {
    color: #418080;
    border-bottom: 3px solid #418080;
    background: rgba(65, 128, 128, 0.05);
}

.treatment-tabs .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.treatment-tabs .tab-buttons {
    display: flex;
    justify-content: center;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* 스트레스성 질환 섹션 버튼 호버 효과 */
.stress-section a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* 온라인 상담 버튼 호버 */
a[href*="consult"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* 탭 콘텐츠 스타일 */
.tab-content {
    display: none;
}

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

@media (max-width: 768px) {
    .treatment-tab,
    .treatment-tabs button.treatment-tab,
    .treatment-tabs a.treatment-tab {
        padding: 15px 20px;
        font-size: 1rem;
        border-bottom: 1px solid #e0e0e0;
        border-radius: 0;
    }
    
    .treatment-tabs .tab-buttons {
        flex-wrap: wrap;
        flex-direction: column;
    }
    
    .treatment-tab.active,
    .treatment-tabs button.treatment-tab.active,
    .treatment-tabs a.treatment-tab.active {
        border-bottom: 3px solid #418080;
    }
}

/* 의료진 칼럼 카드 스타일 */
.column-item {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.column-image {
    height: 300px;
    position: relative;
    overflow: hidden;
    flex: 0 0 auto;
}

.column-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.column-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255,255,255,0.9);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.column-content {
    padding: 24px;
    flex: 1 1 auto;
}

.column-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--brand-black);
    margin-bottom: 12px;
    line-height: 1.4;
}

.column-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 16px;
}

.column-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(65, 128, 128, 0.2);
}

/* 게시판 카드 공통 스타일 */
.post-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.post-card-image-wrapper {
    height: 200px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.post-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
}

.post-card-badge {
    position: absolute;
    top: 15px;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.post-card-badge.notice-badge {
    left: 15px;
    background: #ff4757;
    color: white;
}

.post-card-no-image-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
}

.post-card-no-image-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.4;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

.post-card-no-image-content i {
    font-size: 2.5rem;
    opacity: 0.8;
}

.post-card-title {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    color: white;
    z-index: 2;
}

.post-card-title h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

.post-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.post-card-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.post-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #888;
    font-size: 0.85rem;
    margin-top: auto;
} 