@import url('https://fonts.googleapis.com/css2?family=Nanum+Gothic&family=Nanum+Pen+Script&family=Noto+Sans+KR:wght@100..900&display=swap');


:root {
    --bg-surface: #FFFFFF;
    --bg-canvas: #FFFFFF;
    --bg-subtle: #F6FBF8;
    --text-main: #1D3628;
    --text-muted: #537160;
    --emerald: #2D6A4F;
    --leaf-green: #52B788;
    --kakao: #FEE500;
    --kakao-text: #222222;
    --radius-luxury: 24px;
    --transition-luxury: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* font-family: 'Pretendard', sans-serif; */
    font-family: "Noto Sans KR", sans-serif;
    /* font-family: "Nanum Pen Script", cursive; */
    /* font-family: "Nanum Gothic", sans-serif; */

    scroll-behavior: smooth;

}

body {
    width: 100%;
    color: var(--text-main);
    background-color: var(--bg-canvas);
    line-height: 1.9;
    overflow-x: hidden;
    letter-spacing: -0.3px;
}

/* 컨테이너 간격 공통 */
header {
    padding: 0 24px;
}

section#about,
section#programs,
section#contact {
    padding: 180px 24px;
}

footer {
    padding: 0 24px;
}

.footer-inner {
    padding: 42px 0;
}

/* 🌟 헤더 (PC 기준 기본 스타일) */
header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    transition: var(--transition-luxury);
}

/* 서브 페이지 헤더 변경 */
header.nav_other {
    background-color: #e3b9b9;
    background-color: #fff;
}

header.nav_other .nav-links>li>a {
    color: #1d3628;
}

header.nav_other .logo {
    color: #2d6a4f;
}

header.nav_other .menu-toggle i {
    color: #000;
}

/* 서브 페이지 헤더 변경 끝 */
.header-inner {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header.scrolled {
    /* position: fixed; */
    position: sticky;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    box-shadow: 0 10px 35px rgba(45, 106, 79, 0.05);
    border-bottom: 1px solid rgba(82, 183, 136, 0.25);
}

header.scrolled .logo {
    color: var(--emerald);
    text-shadow: none;
}

header.scrolled .nav-links>li>a {
    color: var(--text-main);
    text-shadow: none;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: #FFFFFF;
    text-decoration: none;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: color 0.3s;
}

.logo span {
    color: var(--leaf-green);
    font-weight: 700;
    margin-left: 6px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-links>li {
    position: relative;
}

.nav-links>li>a {
    padding: 24px 0;
    text-decoration: none;
    color: #FFFFFF;
    font-weight: 500;
    font-size: 1.15rem;
    letter-spacing: 0.5px;
    transition: color 0.3s;
    display: block;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.nav-links>li>a:hover {
    color: var(--leaf-green);
}

/* PC 드롭다운 메뉴 */
.dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--bg-surface);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    list-style: none;
    padding: 12px 0;
    width: 180px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-luxury);
    border: 1px solid rgba(82, 183, 136, 0.15);
}

.nav-links>li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown li a {
    display: block;
    padding: 10px 24px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 1.05rem;
    text-shadow: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.dropdown li a:hover {
    background-color: rgba(82, 183, 136, 0.1);
    color: var(--emerald);
    padding-left: 28px;
}

/* 📱 모바일 햄버거 메뉴 버튼 */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #FFFFFF;
    cursor: pointer;
    z-index: 1001;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s;
}

.menu-toggle.is-active {
    transform: rotate(90deg);
}

header.scrolled .menu-toggle {
    color: var(--text-main);
}

/* 🌟 히어로 섹션 */
.hero {
    /* position: relative; */
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #FFFFFF;
    padding: 0 24px;
    overflow: hidden;
}


.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;

}

.hero-video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); */
}

.hero-content {
    position: relative;
    z-index: 3;
    pointer-events: none;
    /* 헤더크기만큼 */
    top: -83px;
}

.hero-content a {
    pointer-events: auto;
}

.hero-tag {
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 3px;
    margin-bottom: 40px;
    color: #FFFFFF;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 30px;
    padding: 8px 20px;
    display: inline-block;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 500;
    /* line-height: 1.5 !important; */
    /* letter-spacing: -1.5px; */
    line-height: 1.5;
    color: #FFFFFF;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.12rem;
    margin-bottom: 45px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.92);
    max-width: 580px;
    letter-spacing: -0.2px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* 🌟 공통 섹션 레이아웃 */
.container-section {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    background-color: var(--bg-canvas);
}

.section-header {
    margin-bottom: 70px;
    text-align: center;
}

.section-header span {
    color: var(--leaf-green);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 14px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-main);
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.35;
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: var(--transition-luxury);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal.reveal-main {
    transition: 0.75s ease-in-out;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text h3 {
    font-size: 1.9rem;
    color: var(--text-main);
    margin-bottom: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.4;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 1.02rem;
    font-weight: 400;
}

.about-image {
    height: 480px;
    background: url('https://images.unsplash.com/photo-1577896851231-70ef18881754?auto=format&fit=crop&w=900&q=80') center/cover;
    border-radius: var(--radius-luxury);
    box-shadow: 0 25px 50px rgba(45, 106, 79, 0.08);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

#programs .container-section {
    background: transparent;
}

.program-card {
    background: var(--bg-subtle);
    padding: 50px 40px;
    border-radius: var(--radius-luxury);
    text-align: left;
    transition: all 0.3s ease;
    border: 1px solid #edf2f7;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.program-card .icon-box {
    font-size: 1.6rem;
    color: var(--emerald);
    margin-bottom: 24px;
}

.program-card h3 {
    font-size: 1.35rem;
    margin-bottom: 15px;
    color: var(--text-main);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.program-card p {
    color: var(--text-muted);
    font-size: 0.98rem;
    font-weight: 400;
}

.contact-container {
    background: var(--bg-subtle);
    color: var(--text-main);
    border-radius: var(--radius-luxury);
    padding: 80px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    border: 1px solid rgba(82, 183, 136, 0.2);
}

.contact-info h3 {
    font-size: 2rem;
    color: var(--text-main);
    margin-bottom: 18px;
    font-weight: 700;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 1.02rem;
    font-weight: 400;
}

.contact-list {
    list-style: none;
}

.contact-list li {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 1rem;
    color: var(--text-main);
    font-weight: 400;
}

.contact-list li i {
    color: var(--emerald);
    width: 22px;
}

.kakao-box {
    background: #FFFFFF;
    padding: 45px 35px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(82, 183, 136, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.03);
}

.kakao-box h4 {
    font-size: 1.3rem;
    color: var(--text-main);
    margin-bottom: 10px;
    font-weight: 700;
}

.kakao-box p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    font-weight: 400;
}

.btn-kakao {
    background-color: var(--kakao);
    color: var(--kakao-text);
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(254, 229, 0, 0.3);
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition-luxury);
}

.btn-kakao:hover {
    background-color: #f1da00;
    box-shadow: 0 15px 35px rgba(254, 229, 0, 0.4);
}

/* 🌟 푸터 */
footer {
    background-color: #111111;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: -0.2px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-brand {
    font-size: 0.95rem;
    font-weight: 600;
    color: #FFFFFF;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.footer-info-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 32px;
    line-height: 1.6;
}

.footer-info-item span {
    color: rgba(255, 255, 255, 0.85);
    margin-left: 4px;
    font-weight: 400;
}

.footer-bottom {
    margin-top: 10px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.scroll-down-indicator {
    position: absolute;
    bottom: 2rem;
    animation: bounce 2s infinite;
    color: #ffffff;
    font-size: 2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}






/* 🌟🌟🌟🌟🌟🌟🌟🌟  서브페이지 전용 추가 스타일  🌟🌟🌟🌟🌟🌟🌟🌟 */


/* 1. 상단 서브 히어로 배너 */
.sub-hero {
    position: relative;
    height: 420px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #FFFFFF;
    padding: 0 24px;
    margin-top: 0;
    overflow: hidden;
    /* 확대될 때 영역 밖으로 튀어나가는 것 방지 */
}

/* 🌟 배경 이미지와 확대 애니메이션을 담당할 가상 요소 */
.sub-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 기존 배경 디자인 그대로 유지 */
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('./bg4.jpg') no-repeat center center / cover;
    z-index: 1;

    /* 애니메이션 설정: 처음에 1.15배(15% 확대) 상태로 시작 */
    transform: scale(1.15);
    animation: heroZoomIn 2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* 🌟 키프레임 애니메이션 정의 (1.15배 -> 1배로 축소) */
@keyframes heroZoomIn {
    0% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1.0);
    }
}

/* 글자 콘텐츠가 배경(::before) 위에 보이도록 z-index 설정 */
.sub-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.sub-hero-content span {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--leaf-green);
    text-transform: uppercase;
    display: block;
    margin-bottom: 12px;
}

.sub-hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 15px;
    color: #FFFFFF;
}

.sub-hero-content p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 300;
}

/* 2. LNB (Local Navigation Bar) - 현재 위치 표시바 */
.sub-lnb {
    background-color: var(--bg-subtle);
    border-bottom: 1px solid rgba(82, 183, 136, 0.15);
    padding: 0 24px;
}

.lnb-inner {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    height: 50px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.lnb-inner a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.lnb-inner a:hover {
    color: var(--emerald);
}

.lnb-arrow {
    font-size: 0.75rem;
    color: #b0c4b8;
}

.lnb-category {
    color: var(--text-muted);
}

.lnb-current {
    color: var(--emerald);
    font-weight: 600;
}

/* 3. 본문 공통 여백 고정 */
.sub-content-section {
    padding: 120px 24px;
    background-color: var(--bg-canvas);
}

/* 4. 인사말 페이지(Greeting) 전용 스타일 */
.greeting-container {
    display: grid;
    /* grid-template-columns: 1fr 1.2fr; */
    gap: 80px;
    align-items: center;
    margin-bottom: 140px;
}

.greeting-image {
    height: 560px;
    background: url('https://images.unsplash.com/photo-1544717305-2782549b5136?auto=format&fit=crop&w=900&q=80') center/cover;
    border-radius: var(--radius-luxury);
    box-shadow: 0 25px 50px rgba(45, 106, 79, 0.08);
}

.tag-small {
    color: var(--leaf-green);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 12px;
}

.greeting-text h2 {
    text-align: center;
    font-size: 2.1rem;
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 25px;
    letter-spacing: -0.5px;
    padding-top: 36px;
    padding-bottom: 36px;
}

.greeting-text p {
    color: var(--text-muted);
    font-size: 1.02rem;
    margin-bottom: 20px;
    line-height: 1.8;
}

.ceo-sign {
    margin-top: 35px;
    padding-top: 20px;
    border-top: 1px solid rgba(82, 183, 136, 0.2);
}

.ceo-sign p {
    color: var(--text-main);
    font-size: 1.05rem;
    margin-bottom: 0;
    text-align: right;
}

/* 철학 그리드 카드 */
.philosophy-wrapper {
    background-color: var(--bg-subtle);
    padding: 80px 60px;
    border-radius: var(--radius-luxury);
    border: 1px solid rgba(82, 183, 136, 0.15);
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.phil-card {
    background: #FFFFFF;
    padding: 40px 30px;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid #edf2f7;
    position: relative;
    transition: transform 0.3s ease;
}

.phil-card:hover {
    transform: translateY(-8px);
}

.phil-num {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--leaf-green);
    opacity: 0.6;
    margin-bottom: 15px;
}

.phil-card h3 {
    font-size: 1.25rem;
    color: var(--text-main);
    margin-bottom: 12px;
    font-weight: 700;
}

.phil-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}


/* 5. 오시는 길 페이지(Location) 전용 스타일 */
.location-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 50px;
    align-items: stretch;
}

.map-box {
    background: var(--bg-subtle);
    border-radius: var(--radius-luxury);
    height: 480px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(82, 183, 136, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.map-placeholder {
    text-align: center;
    color: var(--text-muted);
}

.map-placeholder i {
    font-size: 3rem;
    color: var(--emerald);
    margin-bottom: 15px;
}

.map-placeholder p {
    font-size: 1rem;
    margin-bottom: 15px;
}

.map-address-badge {
    background: #FFFFFF;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(82, 183, 136, 0.2);
}

.transport-info {
    background: var(--bg-subtle);
    padding: 45px;
    border-radius: var(--radius-luxury);
    border: 1px solid rgba(82, 183, 136, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.transport-info h3 {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 25px;
    font-weight: 700;
}

.transport-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.transport-list li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.t-icon {
    width: 40px;
    height: 40px;
    background: #FFFFFF;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--emerald);
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(82, 183, 136, 0.15);
}

.transport-list strong {
    display: block;
    font-size: 1.02rem;
    color: var(--text-main);
    margin-bottom: 4px;
}

.transport-list p {
    font-size: 0.92rem;
    color: var(--text-muted);
}








/* 1. 좌측 사이드바 + 우측 본문을 감싸는 2단 그리드 래퍼 */
.sub-layout-wrapper {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 60px;
    align-items: start;
    position: relative;
}

.snb-container {
    /* display: none; */
    position: sticky;
    top: 120px;
}

/* 2. 좌측 사이드 내비게이션 박스 (스크롤 시 따라오도록 sticky 적용) */
.sub-side-nav {
    /* position: sticky;
    top: 120px; */
    /* 헤더 아래에서 멈춰서 스크롤을 따라 내려옴 */
    background: #F4F8F5;
    /* 아주 은은하고 화사한 연한 민트빛 미색 배경 */
    border: 1px solid #D8E7DF;
    /* 부드럽고 화사한 세이지 그린 테두리 */
    border-radius: 18px;
    padding: 35px 24px;
    box-shadow: 0 10px 30px rgba(52, 120, 91, 0.05);
}

.sub-side-nav h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #2D6A4F;
    /* 맑고 신뢰감 있는 딥 그린 텍스트 */
    padding-bottom: 18px;
    margin-bottom: 20px;
    border-bottom: 1px solid #D8E7DF;
    letter-spacing: -0.3px;
}

.sub-side-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sub-side-nav ul li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 18px;
    font-size: 0.96rem;
    font-weight: 500;
    color: #4A6B5D;
    /* 칙칙하지 않고 맑고 차분한 중간톤 그린-그레이 */
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.sub-side-nav ul li a i {
    font-size: 0.7rem;
    color: #87A997;
    /* 은은한 파스텔 그린 아이콘 */
    transition: transform 0.25s;
}

/* 마우스 호버 시: 부드럽고 가벼운 피드백 */
.sub-side-nav ul li a:hover {
    background-color: #E6F0EB;
    color: #1B4332;
    padding-left: 22px;
}

.sub-side-nav ul li a:hover i {
    color: #2D6A4F;
    transform: translateX(3px);
}

/* 🌟 현재 열려있는 페이지 (Active State): 확실하게 진하고 싱그러운 파스텔 그린 포인트! */
.sub-side-nav ul li a.active {
    background-color: #2D6A4F;
    /* 촌스럽지 않고 깊이감 있는 세련된 파스텔 포레스트 그린 */
    background-color: #597ee3;
    color: #FFFFFF;
    /* 선명한 화이트 텍스트 */
    font-weight: 600;
    padding-left: 22px;
    /* 우측으로 살짝 밀려나는 인터랙션 */
    box-shadow: 0 8px 20px rgba(45, 106, 79, 0.22);
    /* 입체감을 주는 은은한 초록 그림자 */
}

.sub-side-nav ul li a.active i {
    color: #FFFFFF;
    transform: translateX(3px);
}



/* 치료사 안내 페이지 */
/* ==========================================
   🌟 모든 이력 리스트의 점(마커) 및 기호 제거 버전
   ========================================== */

/* 1. 대표원장 시그니처 블록 */
.edge-director-box {
    display: grid;
    /* grid-template-columns: 1fr 1.3fr; */
    grid-template-columns: 1fr 0fr;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 60px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.edge-d-photo {
    background-size: cover;
    background-position: center;
    min-height: 340px;
    filter: grayscale(15%);
}

.edge-d-content {
    padding: 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.edge-badge {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--emerald);
    margin-bottom: 8px;
}

.edge-director-box h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}

.edge-role {
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 20px;
}

/* 🌟 대표원장 이력 리스트 (점 제거 및 정렬) */
.edge-list {
    list-style: none !important;
    padding-left: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 7px;
    border-top: 1px solid #F1F5F9;
    padding-top: 15px;
}

.edge-list li {
    font-size: 0.87rem;
    color: var(--text-muted);
    line-height: 1.5;
    list-style: none !important;
}


/* 2. 일반 팀원 섹션 */
.edge-team-section {
    border-top: 1px solid #E2E8F0;
    padding-top: 40px;
}

.edge-section-header {
    margin-bottom: 30px;
}

.edge-section-header h3 {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--emerald);
    margin-bottom: 4px;
}

.edge-section-header p {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
}

.edge-team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.edge-team-grid.address {
    grid-template-columns: repeat(1, 1fr);
}

.edge-member-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 4px;
    padding: 30px;
    transition: all 0.25s ease;
}

.edge-member-card:hover {
    border-color: var(--emerald);
    transform: translateY(-3px);
}

.em-header-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 4px;
}

.em-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--leaf-green);
    letter-spacing: 0.5px;
}

.edge-member-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.3px;
}

/* 박서연 팀장 이름 색상 */
.edge-member-card h4.highlight-name {
    color: #0F5132;
}

.em-sub {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 18px;
    font-weight: 500;
}

/* 🌟 팀원 이력 리스트 (점 제거 및 정렬) */
.edge-clean-list {
    list-style: none !important;
    padding-left: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 14px;
    border-top: 1px solid #F1F5F9;
    padding-top: 15px;
}

.edge-clean-list li {
    font-size: 0.87rem;
    color: var(--text-muted);
    line-height: 1.5;
    list-style: none !important;
}





.map-overlay-card {
    position: absolute;
    top: 24px;
    left: 24px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-width: 380px;
    width: calc(100% - 48px);
    z-index: 10;
    text-align: left;
}

.map-overlay-card h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #222;
    margin: 8px 0;
}

.map-overlay-card .map-addr {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.5;
}

.map-card-btns {
    display: flex;
    gap: 10px;
}

.btn-map-link {
    flex: 1;
    padding: 10px 0;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-map-link.naver {
    background: #03c75a;
    color: #fff;
}

.btn-map-link.naver:hover {
    background: #02b350;
}

.btn-map-link.kakao {
    background: #fee500;
    color: #3c1e1e;
}

.btn-map-link.kakao:hover {
    background: #f5dc00;
}









/* 둘러보기 페이지  */
.sub-main-content {
    /* overflow:hidden; */
    /* overflow-x: auto; */
}

.sub-main-content.gallery {
    overflow: auto;
}


/* 카카오 맵  */
/* 지도를 담을 영역의 크기 */
#map {
    width: 100%;
    height: 450px;
    /* max-width: 800px; */
    /* margin: 20px auto 15px auto; */
    /* border-radius: 12px; */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* 은은하고 고급스러운 길찾기 버튼 박스 */
.map-btn-box {
    text-align: center;
    margin-top: 40px;
}

.modern-map-btn {
    background-color: #2b2b2b;
    /* 고급스러운 차콜 컬러 */
    color: #ffffff;
    padding: 12px 28px;
    text-decoration: none;
    font-weight: 500;
    border-radius: 8px;
    display: inline-block;
    font-size: 14px;
    letter-spacing: -0.5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease-in-out;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modern-map-btn:hover {
    background-color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

h2 {
    /* font-family: 'Apple SD Gothic Neo', sans-serif; */
    color: #333;
    letter-spacing: -0.5px;
}


.snb-info-card-light {
    background-color: #fcfcfc;
    /* 아주 부드러운 미백/아이보리 톤 */
    color: #2b2b2b;
    border-radius: 12px;
    padding: 24px 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    /* 은은하고 부드러운 그림자 */
    box-sizing: border-box;
    margin-top: 40px;
    border: 1px solid #eaeaea;
    /* 깔끔한 테두리 */
}

/* 섹션 타이틀 */
.snb-info-card-light .info-title {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.3px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eaeaea;
    color: #555555;
}

/* 전화번호 영역 */
.snb-info-card-light .info-phone {
    margin-bottom: 20px;
}

.snb-info-card-light .info-phone .label {
    font-size: 14px;
    color: #888888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.snb-info-card-light .info-phone a {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    text-decoration: none;
    letter-spacing: -0.3px;
    transition: color 0.2s;
}

.snb-info-card-light .info-phone a:hover {
    color: #0066cc;
    /* 마우스 올렸을 때 은은한 블루 포인트 */
}

/* 영업시간 영역 */
.snb-info-card-light .info-hours .label {
    font-size: 14px;
    color: #888888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.snb-info-card-light .hours-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.snb-info-card-light .hours-item {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #444444;
    letter-spacing: -0.3px;
}

.snb-info-card-light .hours-item .day {
    font-weight: 500;
}

.snb-info-card-light .hours-item .time {
    color: #666666;
}





/* 본문 단락과 리스트 폰트 크기를 16px로 상향 */
.edge-clean-list li,
.edge-member-card .em-sub,
.sub-main-content p {
    font-size: 16px !important;
}

/* 부가 설명이나 캡션류는 14px 허용 */
.edge-clean-list small,
.sub-hero-content p {
    font-size: 14px !important;
}

.br_mobile {
    display: none;
}



/* ==========================================
   📱 미디어 쿼리 (모바일 화면 대응: 1024px 이하)
   ========================================== */
@media(max-width: 1032px) {
    header {
        padding: 14px 24px;
    }

    .programs-grid {
        grid-template-columns: 1fr;
    }

    .about-grid,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero h1 {
        font-size: 2.3rem;
    }

    .contact-container {
        padding: 40px 25px;
    }

    .menu-toggle {
        display: block;
    }

    /* 배경 오버레이 (블러) */
    body::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.2s ease, visibility 0.2s ease;
        z-index: 998;
    }

    body.menu-open::after {
        opacity: 1;
        visibility: visible;
    }

    /* 모바일 네비게이션 창 */
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-surface);
        flex-direction: column;
        align-items: flex-start;
        padding: 0 24px;
        gap: 0;
        box-shadow: 0 25px 40px rgba(0, 0, 0, 0.12);
        border-bottom: 1px solid rgba(82, 183, 136, 0.2);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.25s ease, opacity 0.2s ease, padding 0.25s ease;
        z-index: 999;
    }

    .nav-links.active {
        max-height: 700px;
        opacity: 1;
        padding: 24px;
        gap: 12px;
    }

    .nav-links>li {
        width: 100%;
    }

    .nav-links>li>a {
        color: var(--text-main) !important;
        text-shadow: none !important;
        font-size: 1.05rem;
        padding: 10px 0;
        border-bottom: 1px solid rgba(82, 183, 136, 0.08);
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* 대메뉴 아코디언 화살표 아이콘 */
    .nav-links>li:has(.dropdown)>a::after {
        content: '\f078';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 0.8rem;
        color: var(--emerald);
        transition: transform 0.2s ease;
    }

    .nav-links>li.dropdown-open>a::after {
        transform: rotate(180deg);
    }

    /* 모바일 서브메뉴(뎁스) 스타일: PC 호버 완전 격리 및 display 즉시 제어 */
    .nav-links .dropdown {
        position: static !important;
        transform: none !important;
        box-shadow: none !important;
        border: none !important;
        background: var(--bg-subtle) !important;
        width: 100% !important;
        margin-top: 12px !important;
        border-radius: 12px !important;
        padding: 0 !important;
        display: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        max-height: none !important;
    }

    /* PC 호버가 모바일에 간섭하는 것 원천 차단 */
    .nav-links>li:hover .dropdown {
        display: none !important;
    }

    /* JS로 dropdown-open 클래스가 붙었을 때만 노출 */
    .nav-links>li.dropdown-open .dropdown {
        display: block !important;
    }

    .dropdown li a {
        padding: 8px 16px !important;
        font-size: 0.95rem !important;
        border-bottom: none !important;
        color: var(--text-muted) !important;
        white-space: normal !important;
        border-radius: 8px;
    }

    .dropdown li a:hover {
        color: var(--emerald) !important;
        background: rgba(82, 183, 136, 0.08) !important;
        padding-left: 16px !important;
        /* PC 호버의 밀림 효과 제거 */
    }

    .nav-links>li>a {
        font-size: 24px;
    }

    .dropdown li a {
        font-size: 20px !important;
    }
    
}

/* ==========================================
   📱 모바일 화면 대응 (1024px 이하)
   ========================================== */
/* 📱 모바일 화면 대응 (1024px 이하) */
@media(max-width: 1032px) {
    .sub-layout-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .sub-side-nav {
        position: relative;
        top: 0;
        padding: 24px;
    }
}

@media(max-width: 1032px) {

    .greeting-container,
    .location-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .philosophy-grid {
        grid-template-columns: 1fr;
    }

    .philosophy-wrapper {
        padding: 40px 24px;
    }

    .sub-hero {
        height: 320px;
    }

    .sub-hero-content h1 {
        font-size: 2rem;
    }

    .greeting-image,
    .map-box {
        height: 360px;
    }
}

/* 📱 반응형 대응 */
@media(max-width: 1032px) {
    .snb-container {
        position: static;
    }

    .edge-director-box {
        grid-template-columns: 1fr;
    }

    .edge-d-photo {
        min-height: 260px;
    }

    .edge-team-grid {
        grid-template-columns: 1fr;
    }
}

@media(max-width: 768px) {

    .map-overlay-card {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        max-width: 100%;
        border-radius: 0;
        box-shadow: none;
        background: #fff;
    }

    .wide-map-container {
        height: auto !important;
        flex-direction: column;
    }

    section#about,
    section#programs,
    section#contact {
        padding: 120px 24px;
    }

    .program-card .icon-box {
        margin-bottom: 14px;
    }

    .kakao-box {
        padding: 32px 24px;
    }

    .btn-kakao {
        padding: 10px 24px;
    }

    .program-card {
        padding: 36px 24px;
    }
    .sub-content-section {
        padding: 60px 24px;
    }
}

@media(max-width: 500px) {
    * {
        word-break: keep-all;
    }
    .hero-video-container video {
        height: calc(100% + 1px);
    }
    .nav-links>li>a {
        font-size: 20px;
    }
    .hero-tag {
        font-size:16px;
    }
    .hero h1 {
        font-size: 26px;
    }
    section#about,
    section#programs,
    section#contact {
        padding: 82px 24px;
    }
    .section-header h2 {
        font-size: 26px;
    }
    .about-text h3 {
        font-size: 20px;
    }
    .about-image {
        height: 250px;
    }
    .section-header {
        margin-bottom: 44px;
    }
    .program-card {
        padding: 24px 24px;
    }
    .program-card .icon-box {
        font-size: 20px;
    }
    .program-card .icon-box,
    .program-card h3 {
        margin-bottom: 8px;
    }
    .contact-info h3 {
        font-size: 24px;
    }
    .kakao-box {
        padding: 26px 18px;
    }
    .kakao-box h4 {
        font-size: 20px;
    }
    .kakao-box p {
        font-size: 14px;
    }

    .footer-inner {
        padding: 32px 0;
    }
    .footer-inner {
        padding: 24px 0;
    }
    .footer-info-grid {
        gap: 10px 16px;
    }
    .footer-bottom {
        margin-top: 0;
        padding-top: 12px;
    }
    .sub-side-nav {
        padding:14px 20px;
    }
    .sub-side-nav h4 {
        padding-bottom: 16px;
    }
    .sub-side-nav ul li a {
        padding: 8px 16px;
    }
    .snb-info-card-light {
        padding: 14px 20px;
    }
    .snb-info-card-light .info-phone a {
        font-size: 20px;
    }
    .snb-info-card-light .info-phone .label {
        margin-bottom: 0;
    }
    .snb-info-card-light .hours-list {
        gap:0;
    }
    .sub-layout-wrapper {
        gap: 60px;
    }
    .greeting-text h2 {
        font-size: 24px;
        padding-top: 12px;
        padding-bottom: 24px;
    }
    .greeting-text p {
        margin-bottom: 16px;
    }
    .ceo-sign {
        margin-top: 24px;
    }
    .sub-hero {
        height: 200px;
    }
    .sub-hero-content span {
        font-size: 12px;
        margin-bottom: 0;
    }
    .sub-hero-content h1 {
        font-size: 26px;
    }
    sub-hero-content p {
        word-break: keep-all;
    }
    .nav-links.active {
        padding: 12px 24px;
    }
    .dropdown li a {
        font-size: 16px !important;
    }
    .nav-links.active > li:nth-child(4) > a  {
        color: #52B788 !important;
    }
    .edge-d-content,
    .edge-member-card{
        padding: 24px;
    }
    .edge-badge {
        font-size: 12px;
    }
    .edge-director-box h2 {
        margin-bottom: 0;
        font-size: 24px;
    }
    .edge-list li {
        font-size: 14px;
    }
    .em-title {
        font-size: 14px;
    }
    .logo {
        font-size: 18px;
    }
    .slide-tag {
        font-size: 12px;
        margin-bottom: 0;
    }
    .slide-caption h4 {
        font-size: 16px;
    }
    .slide-inner img {
        height: 180px;
    }
    .edge-section-header h3 {
        font-size: 14px;
    }
    .edge-member-card h4 {
        font-size: 24px !important;
    }
    .em-sub {
        line-height: 1.35 !important;
        margin-top: 20px;
    }
    .map-btn-box {
        margin-top: 28px;
    }
    .modern-map-btn {
        padding: 8px 20px;
    }
    .section-header span {
        font-size: 14px;
    }
    .hero-tag{
        letter-spacing: 1px;
        margin-bottom: 32px;
    }
    .hero-content {
        top: -120px;
    }
    .btn-kakao {
        font-size: 14px;
    }
    .nav-card {
        padding: 4px 16px !important;
    }

}

@media(max-width: 378px) {
    .hero-tag {
        font-size: 14px !important;
    }
    #map {
        height:330px;
    }
}