/*
Theme Name: Hello Elementor Child - 공존학교
Theme URI: https://coexistence-school.kr
Description: 공존학교 리액트 랜딩페이지 스타일을 워드프레스로 변환한 커스텀 차일드 테마
Author: 공존학교
Author URI: https://coexistence-school.kr
Template: hello-elementor
Version: 1.0.0
Text Domain: hello-elementor-child
*/

/* ========================================
   CSS Variables (리액트 Tailwind 색상 변환)
   ======================================== */
:root {
    /* Primary Colors */
    --color-emerald-400: #34d399;
    --color-emerald-500: #10b981;
    --color-emerald-600: #059669;

    /* Slate Colors */
    --color-slate-50: #f8fafc;
    --color-slate-100: #f1f5f9;
    --color-slate-200: #e2e8f0;
    --color-slate-300: #cbd5e1;
    --color-slate-500: #64748b;
    --color-slate-600: #475569;
    --color-slate-700: #334155;
    --color-slate-800: #1e293b;
    --color-slate-900: #0f172a;

    /* Layout */
    --max-width: 1440px;
    --header-padding: 1.5rem;
}

/* ========================================
   Global Styles & Parent Theme Override
   ======================================== */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Lato', 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif !important;
    letter-spacing: -0.06em !important;
    word-break: keep-all !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Force full width for header and footer */
body #site-header,
body .main-header,
body #site-footer,
body .site-footer {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    left: 0 !important;
    right: 0 !important;
}

/* Override Elementor container restrictions */
.elementor-section>.elementor-container,
.elementor-column-wrap,
.elementor-widget-wrap {
    max-width: none !important;
}

/* Override Hello Elementor Reset */
.main-header button,
.main-header a,
.site-footer button,
.site-footer a,
.mobile-nav button,
.mobile-nav a {
    all: unset !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
    display: inline-block !important;
}

/* Override Elementor default link colors */
.main-header a:hover,
.main-header button:hover,
.mobile-nav a:hover,
.mobile-nav button:hover {
    color: var(--color-emerald-600) !important;
    background-color: transparent !important;
}

/* Reset button focus outline */
.main-header button:focus,
.main-header a:focus,
.icon-btn:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Force remove any padding/margin from body and html */
html,
body {
    overflow-x: hidden !important;
}

body>* {
    max-width: 100% !important;
}

/* ========================================
   Header - Utility Top Bar
   ======================================== */
.utility-bar {
    background-color: var(--color-slate-50);
    border-bottom: 1px solid var(--color-slate-100);
    display: none;
}

@media (min-width: 768px) {
    .utility-bar {
        display: block;
    }
}

.utility-bar-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0.5rem 1.5rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1.5rem;
}

.utility-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-slate-500);
}

.utility-links a,
.utility-links button {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.utility-links a:hover,
.utility-links button:hover {
    color: var(--color-emerald-600);
}

.utility-separator {
    width: 1px;
    height: 12px;
    background-color: var(--color-slate-300);
}

/* Cosmosfarm Members Shortcode Styling */
.cosmos-account-links {
    display: flex;
    align-items: center;
    flex-direction: column;
}

.cosmosfarm-members-account-links {
    margin: 0;
    padding: 0;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 1rem !important;
}

.cosmosfarm-members-account-links div {
    display: inline-flex !important;
    align-items: center;
}

.cosmosfarm-members-account-links a {
    color: var(--color-slate-600) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    white-space: nowrap;
}

.cosmosfarm-members-account-links a:hover {
    color: var(--color-emerald-600) !important;
}

/* GTranslate Shortcode Styling */
.gtranslate-wrapper {
    display: flex;
    align-items: center;
    flex-direction: column;
}

.gtranslate_wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
}

.gtranslate_wrapper a.glink {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--color-slate-600) !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    transition: color 0.2s !important;
}

.gtranslate_wrapper a.glink:hover {
    color: var(--color-emerald-600) !important;
}

.gtranslate_wrapper a.glink.gt-current-lang {
    color: var(--color-emerald-600) !important;
}

/* GTranslate 내부의 불필요한 요소 숨김 */
#google_translate_element2,
.skiptranslate {
    display: none !important;
}

/* Utility Bar 전용 GTranslate 예외 처리 */
.utility-bar .gtranslate_wrapper {
    display: flex !important;
}

/* Old Manual Language Dropdown Styles - Disabled but kept for reference */
/* 
.lang-dropdown { ... }
...
*/

/* ========================================
   Header - Main Navigation (Full Width)
   ======================================== */
.main-header {
    background: white !important;
    position: relative !important;
    z-index: 9000 !important;
    width: 100% !important;
    box-shadow: none !important;
}

.main-header-inner {
    max-width: var(--max-width) !important;
    margin: 0 auto !important;
    padding: 0 1.5rem !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    /* Stable vertical centering for primary children */
    height: 110px !important;
    /* Fixed height for consistency */
}

/* Logo */
.site-logo {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
}

/* Header Icons (Search, Mobile Menu) */
.header-icons {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
    gap: 1rem !important;
}

.site-logo:hover .logo-icon {
    transform: scale(1.1);
}

/* 로고 이미지가 있을 때 텍스트 숨김 */
.site-logo img+.logo-text {
    display: none !important;
}

/* 헤더 로고 이미지 스타일 - 80px */
.main-header .site-logo img,
.main-header .site-logo .custom-logo {
    width: auto !important;
    height: 80px !important;
    max-height: 80px !important;
    object-fit: contain !important;
    background: transparent !important;
}

/* 푸터 로고 이미지 스타일 - 64px */
.site-footer .footer-logo img,
.site-footer .footer-logo-img {
    width: auto !important;
    height: 64px !important;
    max-height: 64px !important;
    object-fit: contain !important;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background-color: var(--color-emerald-500);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.25rem;
    transition: transform 0.2s;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    letter-spacing: -0.025em !important;
    line-height: 1 !important;
    color: var(--color-slate-800) !important;
}

.logo-subtitle {
    font-size: 10px !important;
    font-weight: 700 !important;
    color: var(--color-emerald-600) !important;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Desktop Navigation */
.desktop-nav {
    display: none;
    gap: 2.5rem;
    height: 110px !important;
    /* Match header height */
    align-items: stretch !important;
}

@media (min-width: 1024px) {
    .desktop-nav {
        display: flex;
    }
}

.nav-item {
    position: relative !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
}

.nav-item>a {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
    padding: 0 0.5rem !important;
}

.nav-item>a,
.nav-item>button {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: var(--color-slate-700) !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    transition: color 0.2s !important;
    letter-spacing: -0.025em !important;
    text-decoration: none !important;
}

.nav-item>a:hover,
.nav-item>button:hover,
.nav-item.current-menu-item>a,
.nav-item.current-menu-ancestor>a {
    color: var(--color-emerald-600) !important;
}

/* Underline Animation */
.nav-item::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    /* Positioned at the very bottom of the header */
    left: 0 !important;
    height: 3px !important;
    /* Slightly thicker for premium feel */
    width: 0 !important;
    background: var(--color-emerald-500) !important;
    transition: width 0.3s ease !important;
    z-index: 10000 !important;
}

.nav-item:hover::after,
.nav-item:focus-within::after,
.nav-item.current-menu-item::after,
.nav-item.current-menu-ancestor::after {
    width: 100% !important;
}

/* Header Icons */
.header-icons {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 1rem !important;
    /* Gap 조절 */
}

/* 검색 버튼 - 모든 디바이스에서 표시 */
.search-icon-btn {
    display: flex !important;
    position: relative !important;
}

/* Mobile Menu Toggle - 모든 디바이스에서 표시 */
.mobile-menu-toggle {
    display: block !important;
}

/* 
@media (min-width: 1024px) {
    .mobile-menu-toggle {
        display: none;
    }
} 
*/

/* Search Wrapper & Popup */
.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-popup {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    /* Align to the right of the icon */
    width: 300px;
    background: white;
    padding: 1rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    border: 1px solid var(--color-slate-100);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 100;
}

.search-popup.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-popup::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 14px;
    /* Align arrow with icon center approx */
    width: 12px;
    height: 12px;
    background: white;
    transform: rotate(45deg);
    border-top: 1px solid var(--color-slate-100);
    border-left: 1px solid var(--color-slate-100);
}

.search-form {
    display: flex;
    gap: 0.5rem;
}

.search-field {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--color-slate-200);
    border-radius: 0.375rem;
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.2s;
}

.search-field:focus {
    border-color: var(--color-emerald-500);
}

.search-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    background: var(--color-emerald-500);
    color: white;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-submit:hover {
    background: var(--color-emerald-600);
}


.icon-btn {
    all: unset !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    transition: background-color 0.2s !important;
    box-sizing: border-box !important;
}

.icon-btn:hover {
    background-color: var(--color-slate-100) !important;
}

.icon-btn svg {
    width: 24px !important;
    height: 24px !important;
    color: var(--color-slate-600) !important;
    transition: color 0.2s !important;
    display: block !important;
}

.icon-btn:hover svg {
    color: var(--color-emerald-600) !important;
}



/* 햄버거 → X 아이콘 토글 */
/* 햄버거 → X 아이콘 토글 (Flex Overlay 방식) */
.mobile-menu-toggle {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    position: relative !important;
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* 햄버거는 flow에 유지하여 기준점 역할 */
.mobile-menu-toggle .hamburger-icon {
    position: relative !important;
    width: 24px !important;
    height: 24px !important;
    transition: opacity 0.2s ease !important;
    grid-area: auto !important;
    /* Reset Grid */
}

/* X 아이콘은 절대 위치로 오버레이 */
.mobile-menu-toggle .close-icon {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 24px !important;
    height: 24px !important;
    transition: opacity 0.2s ease !important;
    grid-area: auto !important;
    /* Reset Grid */
}

.mobile-menu-toggle .hamburger-icon {
    opacity: 1 !important;
}

.mobile-menu-toggle .close-icon {
    opacity: 0 !important;
}

/* 
.mobile-menu-toggle.is-open .hamburger-icon {
    opacity: 0 !important;
}

.mobile-menu-toggle.is-open .close-icon {
    opacity: 1 !important;
} 
*/

/* ========================================
   Mega Menu (Desktop) - Full Width
   ======================================== */

/* 헤더를 relative로 설정하여 메가메뉴의 기준점으로 사용 */
.main-header {
    position: relative !important;
}

.desktop-nav {
    position: static !important;
}

.nav-item {
    position: relative !important;
}

.mega-menu {
    position: absolute !important;
    top: 100% !important;
    /* Exactly at the bottom of the stretched nav-item */
    background: white !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15) !important;
    border-top: 1px solid var(--color-slate-100) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(0) !important;
    /* Remove translateY for cleaner entry */
    transition: opacity 0.3s ease, visibility 0.3s ease !important;
    z-index: 10000 !important;
    pointer-events: none !important;
}

/* Bridge to prevent menu closing during transition */
.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

/* Hover Bridge Area */
.nav-item::after {
    /* Keeping the existing underline animation logic but ensuring it doesn't break hover */
}

.nav-item:hover .mega-menu,
.mega-menu:hover {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}

/* Hover 상태 유지를 위한 Gap Bridge */
.nav-item::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background: transparent;
    z-index: 9998;
}

.mega-menu-inner {
    max-width: var(--max-width) !important;
    margin: 0 auto !important;
    padding: 3rem 1.5rem !important;
    display: flex !important;
}

.mega-menu-title-section {
    width: 25% !important;
    padding-right: 2.5rem !important;
    border-right: 1px solid var(--color-slate-100) !important;
    flex-shrink: 0 !important;
}

.mega-menu-title {
    font-size: 2.25rem !important;
    font-weight: 600 !important;
    color: var(--color-slate-800) !important;
    margin: 0 0 1rem 0 !important;
}

.mega-menu-desc {
    color: var(--color-slate-500) !important;
    font-size: 0.875rem !important;
    line-height: 1.6 !important;
    margin: 0;
}

.mega-menu-items {
    width: 75%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding-left: 3rem;
}

.mega-menu-items a {
    font-size: 1.1rem;
    font-weight: 600 !important;
    color: var(--color-slate-600);
    text-decoration: none;
    transition: color 0.2s;
    display: block;
}

.mega-menu-items a:hover,
.mega-menu-items a.active {
    color: var(--color-emerald-600) !important;
}

/* ========================================
   Mobile Navigation
   ======================================== */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    background: white;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    z-index: 10001;
    /* Above Header (9000) */
    transition: right 0.3s ease;
    overflow-y: auto;
}

/* PC에서는 340px만 */
@media (min-width: 768px) {
    .mobile-nav {
        max-width: 340px !important;
    }
}

.mobile-nav.is-open {
    right: 0;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    /* Below Nav, Above Header */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.mobile-nav-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3rem 1.5rem 1.5rem 1.5rem;
    /* Top 50px (approx 3rem) */
    border-bottom: 1px solid var(--color-slate-100);
}

/* 모바일 메뉴 로고 */
.mobile-nav-header img,
.mobile-nav-header .custom-logo {
    height: 76px !important;
    width: auto !important;
}

.mobile-nav-close {
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-nav-close svg {
    width: 24px;
    height: 24px;
    color: var(--color-slate-600);
}

.mobile-nav-menu {
    padding: 1rem 0;
}

.mobile-nav-item {
    border-bottom: 1px solid var(--color-slate-100);
}

/* 모바일 메뉴 아이템 - 메인 메뉴와 유사하게 */
/* 모바일 메뉴 아이템 - Flex Layout for Link + Toggle */
.mobile-nav-item {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-bottom: 1px solid var(--color-slate-100);
}

.mobile-nav-item>a,
.mobile-nav-item>button {
    /* Reset and Specifics */
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

/* Link Style */
.mobile-nav-item>a {
    flex-grow: 1 !important;
    padding: 1.25rem 1.5rem !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: var(--color-slate-700) !important;
    display: block !important;
}

/* Toggle Button Style */
.mobile-nav-item>button.mobile-submenu-toggle {
    flex-shrink: 0 !important;
    width: 60px !important;
    height: 60px !important;
    /* Match line-height roughly */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    border-left: 1px solid var(--color-slate-50) !important;
}

/* Hover & Active States */
.mobile-nav-item>a:hover,
.mobile-nav-item.current-menu-item>a,
.mobile-nav-item.current-menu-ancestor>a,
.mobile-nav-item.is-open>a {
    color: var(--color-emerald-600) !important;
}

.mobile-nav-item>button.mobile-submenu-toggle:hover {
    background-color: var(--color-slate-50) !important;
    color: var(--color-emerald-600) !important;
}

.mobile-nav-item>button svg {
    width: 20px !important;
    height: 20px !important;
    transition: transform 0.3s ease !important;
    color: var(--color-emerald-500) !important;
}

.mobile-nav-item.is-open>button svg {
    transform: rotate(180deg) !important;
}

/* 모바일 서브메뉴 */
/* 모바일 서브메뉴 */
.mobile-nav-sub {
    width: 100% !important;
    /* Force full width in flex container */
    display: none;
    padding: 0 1.5rem 1rem 2.5rem !important;
    background-color: var(--color-slate-50) !important;
    flex-direction: column !important;
}

.mobile-nav-item.is-open .mobile-nav-sub {
    display: block;
    animation: slideDown 0.3s ease;
}

.mobile-nav-sub a {
    display: block !important;
    padding: 0.875rem 1rem !important;
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    color: var(--color-slate-600) !important;
    text-decoration: none !important;
    border-left: 3px solid transparent !important;
    transition: all 0.2s ease !important;
}

.mobile-nav-sub a:hover,
.mobile-nav-sub a.active {
    color: var(--color-emerald-600) !important;
    border-left-color: var(--color-emerald-500) !important;
    background-color: white !important;
    padding-left: 1.5rem !important;
}

.mobile-nav-sub a:last-child {
    border-bottom: none;
}

/* 슬라이드 다운 애니메이션 */
@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }

    to {
        opacity: 1;
        max-height: 500px;
    }
}

/* Mobile Utility Links */
.mobile-utility {
    padding: 1.5rem 1.5rem;
    border-top: 1px solid var(--color-slate-100);
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    background-color: white;
}

.mobile-utility-title {
    font-size: 1.2rem !important;
    font-weight: 800 !important;
    color: var(--color-slate-400) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    margin: 0 0 1rem 0 !important;
    padding-bottom: 0.5rem !important;
    border-bottom: 1px solid var(--color-slate-50) !important;
    width: 100% !important;
    text-align: left !important;
}

.mobile-utility .cosmos-account-links,
.mobile-utility .gtranslate-wrapper {
    width: 100%;
}

/* Unifying Button Container Layout */
.mobile-utility .cosmosfarm-members-account-links,
.mobile-utility .gtranslate_wrapper {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
    width: 100% !important;
    justify-content: start !important;
}

.mobile-utility .cosmosfarm-members-account-links div {
    display: block !important;
    width: 100%;
}

/* Unifying Button Styles */
.mobile-utility .cosmosfarm-members-account-links a,
.mobile-utility .gtranslate_wrapper a.glink {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 48px !important;
    /* Fixed height for consistency */
    padding: 0 1rem !important;
    background: var(--color-slate-50) !important;
    border: 1px solid var(--color-slate-100) !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: var(--color-slate-600) !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
}

/* Specific States for Cosmosfarm */
.mobile-utility .cosmosfarm-members-account-links a:hover {
    background: var(--color-emerald-50) !important;
    color: var(--color-emerald-600) !important;
    border-color: var(--color-emerald-200) !important;
}

/* Specific States for GTranslate */
.mobile-utility .gtranslate_wrapper a.glink.gt-current-lang {
    background: var(--color-slate-900) !important;
    color: white !important;
    border-color: var(--color-slate-900) !important;
}

.mobile-utility .gtranslate_wrapper a.glink:not(.gt-current-lang):hover {
    background: white !important;
    border-color: var(--color-slate-300) !important;
    color: var(--color-slate-800) !important;
}

/* Hide Unnecessary Elements */
#google_translate_element2,
.skiptranslate {
    display: none !important;
}

/* ========================================
   Search Icon (PC Only)
   ======================================== */
.search-icon-btn {
    display: none;
}

@media (min-width: 1024px) {
    .search-icon-btn {
        display: block;
    }
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.2s ease forwards;
}

/* ========================================
   Footer Styles - Full Width
   ======================================== */
.site-footer {
    background-color: var(--color-slate-900) !important;
    color: white !important;
    padding: 8rem 0 4rem !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
}

.footer-inner {
    max-width: var(--max-width) !important;
    margin: 0 auto !important;
    padding: 0 1.5rem !important;
}

/* Footer Top Section */
.footer-top {
    display: flex;
    flex-direction: column;
    gap: 5rem;
    padding-bottom: 5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

@media (min-width: 1024px) {
    .footer-top {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* Footer Brand */
.footer-brand {
    width: 100%;
}

@media (min-width: 1024px) {
    .footer-brand {
        width: 25%;
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.footer-logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.footer-logo-icon {
    width: 40px;
    height: 40px;
    background-color: var(--color-emerald-500);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
    font-size: 1.25rem;
    box-shadow: 0 25px 50px -12px rgba(16, 185, 129, 0.2);
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
}

.footer-logo-title {
    font-size: 1.875rem;
    font-weight: 600;
    letter-spacing: -0.025em;
}

.footer-logo-subtitle {
    font-size: 10px;
    font-weight: 600;
    color: var(--color-emerald-500);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    opacity: 0.8;
}

.footer-description {
    color: var(--color-slate-500);
    font-size: 1.125rem;
    line-height: 1.6;
    font-weight: 500;
    margin: 0 0 2.5rem 0;
}

/* Social Icons */
.footer-social {
    display: flex;
    gap: 1rem;
}

.social-btn {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.social-btn:hover {
    background: var(--color-emerald-500);
}

.social-btn svg {
    width: 24px;
    height: 24px;
    color: var(--color-slate-500);
    transition: color 0.2s;
}

.social-btn:hover svg {
    color: white;
}

/* Footer Navigation Grid */
.footer-nav-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 2rem;
    width: 100%;
}

@media (min-width: 640px) {
    .footer-nav-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-nav-grid {
        width: 75%;
    }
}

@media (min-width: 1280px) {
    .footer-nav-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.footer-nav-col {
    min-width: 0;
}

.footer-nav-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 2rem 0;
    letter-spacing: -0.025em;
    color: rgba(255, 255, 255, 0.9);
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-menu li a {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-slate-500);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-menu li a:hover {
    color: var(--color-emerald-400);
}

/* Footer Bottom Section */
.footer-bottom {
    padding-top: 4rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.footer-info {
    font-size: 14px;
    color: var(--color-slate-400);
    line-height: 1.8;
    font-weight: 500;
    text-align: left;
}

.company-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.detail-row {
    display: flex;
    align-items: flex-start;
}

.detail-label {
    min-width: 140px;
    color: var(--color-slate-200);
    font-weight: 700;
}

.detail-value {
    color: var(--color-slate-400);
    flex: 1;
}

@media (max-width: 768px) {
    .detail-row {
        flex-direction: column;
    }

    .detail-label {
        min-width: auto;
        margin-bottom: 0.25rem;
    }
}

@media (min-width: 768px) {
    .footer-info {
        text-align: left;
    }
}

.footer-copyright {
    color: var(--color-slate-700);
    display: block;
    margin-top: 0.5rem;
    font-weight: 700;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

@media (min-width: 768px) {
    .footer-legal {
        justify-content: flex-end;
    }
}

.footer-legal a {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-slate-500);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.2s;
    border-bottom: 1px solid transparent;
}

.footer-legal a:hover {
    color: var(--color-emerald-600);
    border-bottom-color: var(--color-emerald-500);
}

/* Footer Active State */
.footer-menu li.current-menu-item>a,
.footer-menu li.current-menu-ancestor>a {
    color: var(--color-emerald-600) !important;
    font-weight: 700 !important;
}

/* ========================================
   Sub Header (Page Title & Sub Nav)
   ======================================== */
/* ========================================
   Sub Header (Page Title & Sub Nav)
   ======================================== */
.sub-header {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    height: 320px;
    /* Fixed Height as requested */
    background-color: var(--color-slate-800);
    background-size: cover;
    background-position: center;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* Bottom Align */
    align-items: center;
    /* Content wrapper aligns itself */
    margin-bottom: 0;
    padding: 0;
}

.sub-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.sub-header-content {
    position: relative;
    z-index: 2;
    text-align: left;
    /* Left Align */
    width: 100%;
    max-width: var(--max-width);
    padding: 0 1.5rem;
    margin: 0 auto;
    padding-bottom: 3.5rem;
    /* Space from bottom */
}

.sub-header .page-title {
    font-size: 3rem;
    /* 48px */
    font-weight: 700;
    margin: 0;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: left;
}

/* ========================================
   SNB (Sub Navigation Bar) - Breadcrumb Dropdown
   ======================================== */
.snb-bar {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    background: #fff;
    border-bottom: 1px solid var(--color-slate-200);
    margin-bottom: 0;
    position: relative;
    z-index: 10;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.snb-wrapper {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    height: 60px;
    align-items: center;
    padding: 0 1.5rem;
}

/* Home Icon */
.snb-home {
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-left: 1px solid var(--color-slate-200);
    border-right: 1px solid var(--color-slate-200);
    color: var(--color-slate-500);
    transition: all 0.2s;
    text-decoration: none;
}

.snb-home:hover {
    background: var(--color-slate-50);
    color: var(--color-slate-800);
}

.snb-home svg {
    width: 20px;
    height: 20px;
}

/* Dropdown Container */
.snb-dropdown {
    position: relative;
    height: 100%;
    min-width: 200px;
    border-right: 1px solid var(--color-slate-200);
}

/* Dropdown Toggle Button */
.snb-toggle {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
    background: #fff;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-slate-700);
    cursor: pointer;
    transition: all 0.2s;
}

.snb-toggle svg {
    width: 16px;
    height: 16px;
    margin-left: 0.5rem;
    color: var(--color-slate-400);
    transition: transform 0.3s;
}

.snb-dropdown:hover .snb-toggle {
    background: var(--color-slate-50);
    color: var(--color-emerald-600);
}

.snb-dropdown:hover .snb-toggle svg {
    transform: rotate(180deg);
    color: var(--color-emerald-600);
}

/* Dropdown Menu List */
.snb-menu {
    position: absolute;
    top: 100%;
    /* Below bar */
    left: -1px;
    /* Align border */
    width: calc(100% + 2px);
    background: #fff;
    border: 1px solid var(--color-slate-200);
    border-top: none;
    list-style: none;
    padding: 0;
    margin: 0;
    display: none;
    /* Hidden by default */
    z-index: 20;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.snb-dropdown:hover .snb-menu {
    display: block;
    /* Show on Hover */
}

.snb-menu li a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--color-slate-600);
    text-decoration: none;
    border-bottom: 1px solid var(--color-slate-100);
    transition: all 0.2s;
    font-size: 0.95rem;
}

.snb-menu li:last-child a {
    border-bottom: none;
}

.snb-menu li a:hover,
.snb-menu li a.active {
    background: var(--color-slate-50);
    color: var(--color-emerald-600);
    font-weight: 600;
}

/* ========================================
   REACT SPEC OVERRIDES (Sub Header & SNB)
   ======================================== */

/* 1. Sub Header Container */
.sub-header {
    width: 100% !important;
    margin-left: 0 !important;
    height: 383px !important;
    /* 320px Title Area + 63px SNB */
    background-color: rgb(15 23 42) !important;
    /* bg-slate-900 */
    align-items: center !important;
    justify-content: flex-end !important;
    margin-bottom: 0 !important;
}

/* 2. Gradient Overlay */
.sub-header-overlay {
    background: linear-gradient(to right, rgb(2 6 23 / 0.9), rgb(15 23 42 / 0.4), transparent) !important;
}

/* 3. Page Title */
.sub-header .page-title {
    font-size: 4.5rem !important;
    line-height: 1 !important;
    font-weight: 700 !important;
    color: white !important;
    text-align: left !important;
    margin-bottom: 0 !important;
}

.sub-header-content {
    /* Align Title Left, Bottom padding for visual balance (SNB Height + Spacing) */
    text-align: left !important;
    padding-bottom: 7rem !important;
    /* ~112px to clear SNB */
    max-width: var(--max-width) !important;
    margin: 0 auto !important;
    width: 100% !important;
}

/* 4. SNB Bar (Transparent Glass) */
.snb-bar {
    background-color: transparent !important;
    margin-top: -63px !important;
    /* Pull up to overlap header */
    margin-left: 0 !important;
    width: 100% !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 !important;
    /* shadow-2xl */
    backdrop-filter: blur(64px) !important;
    /* backdrop-blur-3xl */
    -webkit-backdrop-filter: blur(64px) !important;
}

/* Added Height Overrides */
.snb-wrapper {
    height: 63px !important;
}

.snb-home {
    width: 63px !important;
    height: 63px !important;
}

/* 5. Home Icon (Glass Style) */
.snb-home {
    border-left: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.7) !important;
}

.snb-home:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
}

/* 6. SNB Toggle Buttons (Glass/Dark Style) */
.snb-toggle {
    background: transparent !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

.snb-toggle svg {
    color: rgba(255, 255, 255, 0.5) !important;
}

.snb-dropdown {
    border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.snb-dropdown:hover .snb-toggle {
    background: rgba(255, 255, 255, 0.1) !important;
    color: var(--color-emerald-400) !important;
    /* Active Color */
}

.snb-dropdown:hover .snb-toggle svg {
    color: var(--color-emerald-400) !important;
}

/* 7. Dropdown Menu (Dark Mode) */
.snb-menu {
    background: rgb(15 23 42) !important;
    /* Slate 900 */
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-top: none !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5) !important;
}

.snb-menu li a {
    color: rgba(255, 255, 255, 0.7) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* Active/Hover State: Transparent BG + Emerald Text */
.snb-menu li a:hover,
.snb-menu li a.active {
    background: transparent !important;
    color: var(--color-emerald-400) !important;
    font-weight: 600 !important;
}

/* ========================================
   Mobile Styles for Sub Header
   ======================================== */
@media (max-width: 767px) {

    /* 1. Page Title Font Size 2.2rem */
    .sub-header .page-title {
        font-size: 2.2rem !important;
    }

    /* 2. Remove SNB Wrapper Padding */
    .snb-wrapper {
        padding: 0 !important;
    }
	 
	.snb-home{
		display: none;
	}

    /* 3. Hide 1st Dropdown (Depth 1) */
    .snb-dropdown:nth-of-type(1) {
        display:  !important;
    }

    /* Ensure Height is maintained or adjusted if needed? 
       User didn't ask, but maintaining 63px is fine. */
}

/* ========================================
   Expert Card v3 - 김문정 스타일
   ======================================== */

/* 카드 기본 스타일 */
.expert-card-v3 {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

/* 카드 호버 - 위로 이동 */
.expert-card-v3:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -10px rgba(0, 0, 0, 0.15) !important;
}

/* 노란 바 (세로형 divider) */
.expert-yellow-bar {
    width: 8px !important;
    height: 40px !important;
}

.expert-yellow-bar .elementor-divider-separator {
    background-color: #FFD43B !important;
    border-color: #FFD43B !important;
    width: 8px !important;
    height: 40px !important;
    border-radius: 20px !important;
}

/* 이름 스타일 */
.expert-name .elementor-heading-title {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #1E293B !important;
    letter-spacing: -0.5px !important;
    line-height: 1.2 !important;
}

.expert-card-v3:hover .expert-name .elementor-heading-title {
    color: #0891B2 !important;
}

/* 등급 스타일 */
.expert-level,
.expert-level p {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #94A3B8 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    margin: 0 !important;
}

/* 대표 강점 라벨 (시안) */
.expert-strength-label,
.expert-strength-label p {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #0891B2 !important;
    margin-bottom: 4px !important;
}

/* 대표 강점 값 */
.expert-strength-value,
.expert-strength-value p {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #475569 !important;
    line-height: 1.4 !important;
}

/* 한줄 소개 (인용문) */
.expert-quote,
.expert-quote p {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #64748B !important;
    line-height: 1.6 !important;
    font-style: normal !important;
}

/* 프로필 버튼 기본 */
.expert-profile-btn .elementor-button {
    background-color: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 10px !important;
    color: #94A3B8 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    padding: 14px 24px !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
}

/* 카드 호버 시 버튼 활성화 */
.expert-card-v3:hover .expert-profile-btn .elementor-button {
    background-color: #0F172A !important;
    border-color: #0F172A !important;
    color: #FFFFFF !important;
}

/* 버튼 직접 호버 시 추가 효과 */
.expert-profile-btn .elementor-button:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.3);
}

/* ========================================
   Contact Form 7 Custom Design (Premium)
   ======================================== */
.wpcf7 .custom-contact-form {
    max-width: 900px;
    margin: 60px auto;
    padding: 60px;
    background: #ffffff;
    border-radius: 30px;
    box-shadow: 0 20px 60px -10px rgba(15, 23, 42, 0.05);
    border: 1px solid var(--color-slate-100);
}

.wpcf7 .form-row {
    display: flex;
    gap: 30px;
    margin-bottom: 24px;
}

.wpcf7 .form-row .form-group {
    flex: 1;
}

.wpcf7 .form-group {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
}

.wpcf7 label {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-slate-800);
    margin-bottom: 12px;
    display: block;
    letter-spacing: -0.025em;
}

.wpcf7 .required {
    color: var(--color-emerald-500);
    margin-left: 2px;
}

/* Input Fields */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
    width: 100% !important;
    padding: 16px 24px !important;
    border: 2px solid var(--color-slate-100) !important;
    background-color: var(--color-slate-50) !important;
    border-radius: 16px !important;
    font-family: inherit !important;
    font-size: 15px !important;
    color: var(--color-slate-800) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-sizing: border-box !important;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus {
    outline: none !important;
    border-color: var(--color-emerald-400) !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.1) !important;
    transform: translateY(-2px);
}

.wpcf7 textarea {
    min-height: 250px;
    line-height: 1.6;
    resize: vertical !important;
}

/* Submit Button Area */
.wpcf7 .form-submit {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.wpcf7-form-control.wpcf7-submit {
    all: unset !important;
    width: 100% !important;
    max-width: 280px !important;
    background: linear-gradient(135deg, var(--color-emerald-500), var(--color-emerald-600)) !important;
    color: #ffffff !important;
    padding: 20px 40px !important;
    border-radius: 50px !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    text-align: center !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 10px 30px -5px rgba(16, 185, 129, 0.4) !important;
    letter-spacing: -0.01em;
}

.wpcf7-form-control.wpcf7-submit:hover {
    transform: translateY(-4px) scale(1.02) !important;
    box-shadow: 0 20px 40px -10px rgba(16, 185, 129, 0.5) !important;
    filter: brightness(1.1);
}

.wpcf7-form-control.wpcf7-submit:active {
    transform: translateY(0) scale(0.98) !important;
}

/* Validation & Feedback */
.wpcf7-not-valid-tip {
    font-size: 13px !important;
    color: #ef4444 !important;
    margin-top: 8px !important;
    font-weight: 600 !important;
}

.wpcf7-response-output {
    border: none !important;
    padding: 24px !important;
    border-radius: 20px !important;
    margin: 40px 0 0 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-align: center !important;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wpcf7-form.sent .wpcf7-response-output {
    background: #ecfdf5 !important;
    color: #065f46 !important;
    border: 2px solid #10b981 !important;
}

.wpcf7-form.invalid .wpcf7-response-output,
.wpcf7-form.unconfirmed .wpcf7-response-output {
    background: #fef2f2 !important;
    color: #991b1b !important;
    border: 2px solid #ef4444 !important;
}

/* Spinner Adjustment */
.wpcf7-spinner {
    position: absolute !important;
    left: 50% !important;
    margin-left: -12px !important;
    bottom: -40px !important;
}

/* Mobile Layout */
@media (max-width: 768px) {
    .wpcf7 .custom-contact-form {
        padding: 30px 20px;
        margin: 30px 15px;
        border-radius: 24px;
    }

    .wpcf7 .form-row {
        flex-direction: column;
        gap: 24px;
    }

    .wpcf7-form-control.wpcf7-submit {
        max-width: 100% !important;
        font-size: 16px !important;
        padding: 18px 30px !important;
    }
}

/* ========================================
   목록보기 버튼 숏코드 [coexist_list_button]
   ======================================== */
.coexist-list-btn-wrap {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.coexist-list-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px;
    padding: 10px 24px;
    background-color: var(--color-slate-700);
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.02em;
    border: none;
    border-radius: 6px;
    text-decoration: none !important;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.coexist-list-btn:hover {
    background-color: var(--color-emerald-600);
    transform: translateY(-1px);
    color: #fff !important;
}

.coexist-list-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}