/* ============================================
   더원 언어심리발달센터 홈페이지 - 공통 스타일
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@400;500;600;700&display=swap');

/* Pretendard CDN */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 17.5px;
}

body {
    font-family: 'Pretendard', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #FAFAF7;
    color: #2F2A24;
    line-height: 1.8;
    font-weight: 520;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    border: none;
    cursor: pointer;
    font-family: inherit;
    background: none;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* ===== Typography ===== */
.serif {
    font-family: 'Noto Serif KR', serif;
}

h1, h2, h3 {
    font-family: 'Noto Serif KR', serif;
    font-weight: 600;
    color: #2F2A24;
}

.text-secondary {
    color: #6F665D;
}

.text-olive {
    color: #5C6B3C;
}

/* ===== Layout ===== */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

.section {
    padding: 80px 0;
}

/* ===== Navigation (PC) ===== */
.nav-wrapper {
    position: sticky;
    top: 0;
    z-index: 99999; 
    background-color: #FAFAF7;
    border-bottom: 1px solid #EDEBE6;
    transition: box-shadow 0.3s ease;
}

.nav-wrapper.scrolled {
    box-shadow: 0 2px 16px rgba(47, 42, 36, 0.05);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Noto Serif KR', serif;
    font-size: 16px;
    font-weight: 600;
    color: #2F2A24;
    white-space: nowrap;
}

.nav-logo svg {
    width: 22px;
    height: 22px;
    color: #5C6B3C;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-menu a {
    font-size: 15.5px;
    font-weight: 600;
    color: #4F463D;
    position: relative;
    padding: 6px 0;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #5C6B3C;
}

.nav-cta {
    background-color: #5C6B3C;
    color: #FFFFFF !important;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
    white-space: nowrap;
}

.nav-cta:hover {
    background-color: #4A5830;
    transform: translateY(-1px);
}

/* 햄버거 버튼 & 오버레이 */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
    cursor: pointer;
    z-index: 100000;
    position: relative;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background-color: #2F2A24;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-overlay {
    position: fixed; 
    top: 0; left: 0; 
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4); 
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 99998;
    opacity: 0; visibility: hidden; 
    transition: all 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1; visibility: visible; 
}

/* ===== Sub Hero Banner ===== */
.sub-hero {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.sub-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.sub-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(250,250,247,0.92) 0%, rgba(250,250,247,0.7) 40%, rgba(250,250,247,0.1) 80%, transparent 100%);
}

.sub-hero-content {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

.sub-hero-content h1 {
    font-size: 40px;
    font-weight: 700;
    color: #2F2A24;
    margin-bottom: 12px;
}

.sub-hero-content p {
    font-size: 15.5px;
    color: #4F463D;
    margin-bottom: 20px;
    line-height: 1.8;
    font-weight: 500;
}

.breadcrumb {
    font-size: 12px;
    color: #9A9564;
}

.breadcrumb a {
    color: #6F665D;
}

.breadcrumb span {
    margin: 0 6px;
    color: #C4BDB4;
}

/* ===== Main Hero (Index) ===== */
.hero {
    position: relative;
    width: 100%;
    height: 520px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(250,250,247,0.92) 0%, rgba(250,250,247,0.65) 45%, rgba(250,250,247,0.1) 75%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

.hero-content h1 {
    font-size: 40px;
    font-weight: 700;
    color: #2F2A24;
    line-height: 1.45;
    margin-bottom: 16px;
}

.hero-content p {
    font-size: 16.5px;
    color: #4F463D;
    line-height: 1.8;
    font-weight: 500;
}

/* ===== Cards ===== */
.card {
    background: #FFFFFF;
    border: 1px solid #EDEBE6;
    border-radius: 16px;
    padding: 32px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(47, 42, 36, 0.06);
}

/* ===== Buttons ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #5C6B3C;
    color: #FFFFFF;
    padding: 12px 24px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
    background-color: #4A5830;
    transform: translateY(-1px);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #FFFFFF;
    color: #5C6B3C;
    border: 1px solid #5C6B3C;
    padding: 12px 24px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: #5C6B3C;
    color: #FFFFFF;
}

/* ===== Labels (Tag Style) ===== */
.label-tag {
    display: inline-block;
    background-color: #F0EDE4;
    color: #5C6B3C;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
}

/* ===== Section Titles ===== */
.section-title {
    font-family: 'Noto Serif KR', serif;
    font-size: 32px;
    font-weight: 700;
    color: #2F2A24;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 16px;
    color: #5A5249;
    line-height: 1.8;
    font-weight: 500;
}

.section-divider {
    width: 36px;
    height: 3px;
    background-color: #5C6B3C;
    border-radius: 2px;
    margin-bottom: 16px;
}

/* ===== Leaf Icon (decorative) ===== */
.leaf-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.leaf-icon svg {
    width: 28px;
    height: 28px;
    color: #5C6B3C;
}

/* ===== Footer ===== */
.footer {
    background-color: #F5F3EE;
    border-top: 1px solid #EDEBE6;
    padding: 32px 0 24px;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-section {
    font-size: 12px;
    color: #6F665D;
    line-height: 1.8;
}

.footer-section .footer-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Noto Serif KR', serif;
    font-size: 14px;
    font-weight: 600;
    color: #2F2A24;
    margin-bottom: 4px;
}

.footer-section .footer-logo svg {
    width: 18px;
    height: 18px;
    color: #5C6B3C;
}

.footer-section h4 {
    font-family: 'Pretendard', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #2F2A24;
    margin-bottom: 4px;
}

.footer-section p,
.footer-section a {
    font-size: 12px;
    color: #6F665D;
    line-height: 1.8;
}

.footer-section a:hover {
    color: #5C6B3C;
}

.footer-cta {
    background-color: #5C6B3C;
    color: #FFFFFF;
    padding: 8px 16px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
}

.footer-bottom {
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px 40px 0;
    border-top: 1px solid #EDEBE6;
    margin-top: 20px;
    text-align: center;
    font-size: 11px;
    color: #A09A92;
}

/* New footer structure */
.footer-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}
.footer-info {
    font-size: 14.5px;
    color: #6F665D;
    line-height: 1.9;
}
.footer-info .footer-name {
    font-family: 'Noto Serif KR', serif;
    font-size: 17px;
    font-weight: 700;
    color: #2F2A24;
    margin-bottom: 6px;
}
.footer-links {
    display: flex;
    gap: 16px;
}
.footer-links a {
    font-size: 14.5px;
    color: #5C6B3C;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: #3A4A24;
}
.footer-copy {
    border-top: 1px solid #EDEBE6;
    margin-top: 20px;
    padding-top: 16px;
    text-align: center;
    font-size: 11px;
    color: #A09A92;
}

/* ===== Mobile Floating CTA ===== */
.mobile-cta {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    background-color: #5C6B3C;
    color: #FFFFFF;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(92, 107, 60, 0.3);
    transition: transform 0.3s ease;
}

.mobile-cta:hover {
    transform: scale(1.05);
}

.mobile-cta svg {
    width: 22px;
    height: 22px;
}

/* ===== Map Section ===== */
.map-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #EDEBE6;
}

.map-container .map-overlay-lock {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    transition: background 0.3s ease;
}

.map-container .map-overlay-lock:hover {
    background: rgba(250, 250, 247, 0.15);
}

.map-container .map-overlay-lock .lock-message {
    background: rgba(255,255,255,0.95);
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 12px;
    color: #6F665D;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.map-container .map-overlay-lock:hover .lock-message {
    opacity: 1;
}

.map-container.unlocked .map-overlay-lock {
    display: none;
}

/* ===== Accordion (FAQ) ===== */
.accordion-item {
    background: #FAFAF7;
    border: 1px solid #EDEBE6;
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.accordion-header:hover {
    background: #F5F3EE;
}

.accordion-header .q-number {
    font-size: 13px;
    font-weight: 600;
    color: #5C6B3C;
    margin-right: 12px;
}

.accordion-header .q-text {
    flex: 1;
    font-size: 15.5px;
    font-weight: 550;
    color: #2F2A24;
}

.accordion-header .q-icon {
    font-size: 18px;
    color: #9A9564;
    transition: transform 0.3s ease;
}

.accordion-item.open .accordion-header .q-icon {
    transform: rotate(45deg);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.accordion-item.open .accordion-body {
    max-height: 300px;
    padding: 0 20px 16px;
}

.accordion-body p {
    font-size: 15px;
    color: #5A5249;
    line-height: 2.0;
    padding-top: 12px;
    border-top: 1px solid #EDEBE6;
}

/* ===== Form Styles ===== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13.5px;
    font-weight: 650;
    color: #2F2A24;
    margin-bottom: 6px;
}

.form-label .required {
    color: #C4694A;
    margin-left: 3px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #DDD7CC;
    border-radius: 10px;
    background: #FFFFFF;
    font-size: 14px;
    color: #2F2A24;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #5C6B3C;
    box-shadow: 0 0 0 3px rgba(92, 107, 60, 0.08);
}

.form-input::placeholder {
    color: #B5AFA7;
}

textarea.form-input {
    resize: vertical;
    min-height: 150px;
}

/* Checkbox Group */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.checkbox-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid #DDD7CC;
    border-radius: 8px;
    font-size: 13px;
    color: #4F463D;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.checkbox-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #5C6B3C;
}

.checkbox-item:has(input:checked) {
    background-color: #F0EDE4;
    border-color: #5C6B3C;
    color: #5C6B3C;
    font-weight: 500;
}

/* Character Counter */
.char-counter {
    text-align: right;
    font-size: 11px;
    color: #A09A92;
    margin-top: 4px;
}

/* ===== Gallery ===== */
.gallery-section {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 40px;
    align-items: start;
}

.gallery-main {
    width: 100%;
    aspect-ratio: 16/10;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 10px;
}

.gallery-main img,
.gallery-main .placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-main .placeholder {
    background: #F0EDE4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #A09A92;
    font-size: 13px;
}

.gallery-thumbs {
    display: flex;
    gap: 8px;
}

.gallery-thumbs .thumb {
    flex: 1;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease, opacity 0.3s ease;
}

.gallery-thumbs .thumb.active {
    border-color: #5C6B3C;
}

.gallery-thumbs .thumb:hover {
    opacity: 0.85;
}

.gallery-thumbs .thumb img,
.gallery-thumbs .thumb .placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumbs .thumb .placeholder {
    background: #F0EDE4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #A09A92;
}

/* ===== Carousel ===== */
.carousel-wrapper {
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    padding: 0 8px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: 1px solid #EDEBE6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #4F463D;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.carousel-btn:hover {
    background: #FFFFFF;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.carousel-btn.prev {
    left: 8px;
}

.carousel-btn.next {
    right: 8px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
}

.carousel-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #DDD7CC;
    cursor: pointer;
    transition: background 0.3s ease;
}

.carousel-dots .dot.active {
    background: #5C6B3C;
}


/* =======================================================
   📱 모바일 전용 반응형 레이아웃 (완벽 개편)
   ======================================================= */

@media (max-width: 1024px) {
    /* 사이드 슬라이드 드로어 메뉴 스타일 */
    .nav-menu {
        display: flex !important;
        flex-direction: column;
        justify-content: flex-start;
        position: fixed;
        top: 0;
        right: -320px;
        width: 280px;
        height: 100vh;
        background-color: #ffffff;
        z-index: 99999; 
        padding: 80px 20px 30px;
        gap: 0;
        border-bottom: none;
        box-shadow: -5px 0 20px rgba(0,0,0,0.05);
        transition: right 0.7s ease-in-out;
        overflow-y: auto;
    }

    .nav-menu.open {
        right: 0;
    }

    .nav-menu-item {
        width: 100%;
        border-bottom: 1px solid #F0EDE4;
    }

    .nav-menu-item > a {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        padding: 18px 10px !important;
        font-size: 16.5px !important;
        font-weight: 700 !important;
        color: #2F2A24 !important;
        border-bottom: none !important;
    }

   /* 꺾쇠 아이콘 (수정됨: 외부 파일 차단으로 인한 깨짐 현상 원천 차단) */
    .nav-menu-item > a.has-sub::after {
        content: '›'; /* 특수문자 꺾쇠로 변경 */
        font-family: inherit; /* 폰트어썸 의존성 제거 */
        font-weight: 400;
        font-size: 24px; /* 기호에 맞게 크기 키움 */
        color: #A09A92;
        transition: transform 0.5s ease;
    }

    .nav-menu-item.active-sub > a.has-sub::after {
        transform: rotate(90deg);
        color: #5C6B3C;
    }

    /* 💡 수정됨: 부드러운 애니메이션 효과를 위한 max-height 기반 하위 메뉴 스타일링 */
    .nav-dropdown {
        position: static !important;
        transform: none !important;
        width: auto !important;
        box-shadow: none !important;
        border: none !important;
        background-color: #F8F5EF !important; /* 부드러운 베이지색 배경 */
        border-radius: 8px !important; /* 모서리 둥글게 */
        
        /* 숨김 상태 초기 설정 */
        max-height: 0 !important;
        overflow: hidden !important;
        opacity: 0 !important;
        padding: 0 !important;
        margin: 0 10px 0 10px !important; 
        /* 0.7초 동안 스무스하게 열리도록 transition 적용 */
        transition: max-height 0.4s ease, opacity 0.7s ease, margin 0.7s ease, padding 0.7s ease !important;
    }

    /* 메뉴가 펼쳐졌을 때 (active-sub 클래스가 붙을 때) */
    .nav-menu-item.active-sub .nav-dropdown {
        max-height: 400px !important; /* 내부 메뉴들이 다 들어갈 수 있는 넉넉한 높이 부여 */
        opacity: 1 !important;
        padding: 5px 0 !important;
        margin: 0 10px 15px 10px !important;
    }

    /* 1열 세로 나열 (터치 편의성 극대화) */
    .nav-dropdown a {
        display: block !important;
        width: 100% !important;
        padding: 12px 20px !important;
        text-align: left !important;
        font-size: 14.5px !important;
        border-bottom: 1px dashed #EAE5DA !important;
        color: #5A5249 !important;
        font-weight: 550 !important;
    }

    .nav-dropdown a:last-child {
        border-bottom: none !important;
    }

    .nav-toggle {
        display: flex;
    }

    /* 햄버거 메뉴 X 애니메이션 조율 */
    .nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    .nav-toggle.open span:nth-child(2) { opacity: 0; }
    .nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

    .nav-cta-desktop {
        display: none;
    }

    .gallery-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 380px;
    }

    .hero-content h1 {
        font-size: 26px;
    }

    .hero-content p {
        font-size: 14.5px;
    }

    .sub-hero {
        height: 220px;
    }

    .sub-hero-content h1 {
        font-size: 24px;
    }

    .sub-hero-content p {
        font-size: 13.5px;
    }

    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 24px;
    }

    .container {
        padding: 0 20px;
    }

    .mobile-cta {
        display: flex;
    }

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

    .gallery-thumbs .thumb {
        aspect-ratio: 1;
    }

    .carousel-btn {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 320px;
    }

    .hero-content h1 {
        font-size: 20px;
    }

    .hero-content p {
        font-size: 13.5px;
    }

    .sub-hero {
        height: 180px;
    }

    .sub-hero-content h1 {
        font-size: 20px;
    }

    .sub-hero-content p {
        font-size: 12.5px;
    }

    .container {
        padding: 0 16px;
    }

    .card {
        padding: 20px;
    }
}

/* ===== Kakao Map Responsive ===== */
.root_daum_roughmap {
    width: 100% !important;
}

.root_daum_roughmap .wrap_map {
    height: 420px !important;
}

@media (max-width: 768px) {
    .root_daum_roughmap .wrap_map {
        height: 300px !important;
    }
}

/* ===== Animations ===== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.nav-logo .logo-img {
    height: 38px;
    width: auto;
    display: block;
    object-fit: contain;
}

@media (max-width: 480px) {
    .nav-logo .logo-img {
        height: 30px; 
    }
}

/* ============================================
   센터개요 회색 이름표(라벨) 가로 칸 폭 통일
   ============================================ */
.overview-table tr td:first-child span,
.overview-table td span {
    display: inline-block;
    width: 85px;
    text-align: center;
}

.overview-table td {
    vertical-align: middle;
}

/* ============================================
   💡 메뉴 하이라이트 (현재 위치한 페이지 강조)
   ============================================ */
.nav-menu a.active, 
.nav-menu a.current-menu {
    color: #5C6B3C !important;
    font-weight: 700 !important;
}

.nav-menu a.active {
    background-color: #F8F5EF !important;
    border-radius: 8px; /* 통일된 라운드 처리 */
    padding: 6px 10px !important;
}

@media (max-width: 1024px) {
   .nav-menu-item > a {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: 18px 10px !important;
    min-height: 60px !important; /* 💡 높이를 강제로 통일 */
    line-height: 1.5 !important; /* 💡 줄간격 고정으로 삐뚤어짐 방지 */
    font-size: 16.5px !important;
    font-weight: 700 !important;
    color: #2F2A24 !important;
    border-bottom: none !important;
  }
}
/* =======================================================
   📱 [긴급수정] 모바일 화면 밀림(가로 스크롤) 및 메뉴 노출 버그 해결
   ======================================================= */

/* 1. 화면 전체가 옆으로 밀리는 현상을 원천 차단합니다 */
html, body {
    overflow-x: hidden;
    width: 100%;
}

/* 2. 메뉴가 화면 우측 바깥을 뚫고 나가지 않도록 완전히 숨깁니다 */
@media (max-width: 1024px) {
    .nav-menu {
        right: 0 !important; /* 기준점을 오른쪽에 맞추고 */
        transform: translateX(100%); /* 본인 너비만큼 오른쪽으로 완전히 밀어 숨김 */
        transition: transform 0.4s ease-in-out !important; /* 부드럽게 스르륵 열리도록 */
    }

    /* 3줄 메뉴 버튼을 눌러 .open 클래스가 붙었을 때만 화면 안으로 들어옵니다 */
    .nav-menu.open {
        transform: translateX(0) !important;
    }
}
