/* Start custom CSS for html, class: .elementor-element-95a5f8c *//* Space O WordPress Custom CSS - Final Color Fix */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@300;400;600;700&family=Montserrat:wght@300;400;600;700&display=swap');

:root {
    --primary-gold: #D4AF37;
    --deep-navy: #1a2332;
    --soft-cream: #F8F6F0;
    --accent-teal: #2C7873;
    --warm-grey: #333333; /* 기본 글자색 (밝은 배경용) */
    --highlight-coral: #E85D75;
}

/* Space O 전용 컨테이너 초기화 */
.space-o-container * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.space-o-container {
    font-family: 'Noto Serif KR', serif;
    background-color: var(--soft-cream);
    color: var(--deep-navy);
    line-height: 1.8;
    overflow-x: hidden;
}

/* =========================================
   [긴급 수정] 어두운 섹션 글자색 강제 고정 
   ========================================= */

/* 1. 맨 위 Hero 섹션 텍스트 하얗게 */
.space-o-hero h1 {
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3); /* 가독성 위해 그림자 추가 */
}

.space-o-hero h1 strong {
    color: var(--primary-gold) !important;
}

.space-o-hero .space-o-hero-subtitle {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 400 !important;
}

/* 2. 주요 프로그램 섹션 제목 하얗게 */
#programs .space-o-section-title {
    color: #ffffff !important;
    border-bottom-color: var(--primary-gold); /* 밑줄 색 유지 */
}

/* 3. CTA 및 Footer 섹션 하얗게 */
.space-o-cta-section h2, 
.space-o-cta-section p,
.space-o-footer p {
    color: #ffffff !important;
}

/* =========================================
   나머지 스타일 (레이아웃 등)
   ========================================= */

/* Navigation */
.space-o-nav {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(26, 35, 50, 0.95);
    backdrop-filter: blur(10px);
    padding: 2.0rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideDown 0.8s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.space-o-logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 5rem;
    font-weight: 700;
    color: var(--primary-gold);
    letter-spacing: 0.1em;
}

.space-o-nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.space-o-nav-links a {
    color: var(--soft-cream);
    text-decoration: none;
    font-size: 2.0rem;
    transition: all 0.3s ease;
    position: relative;
}

.space-o-nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gold);
    transition: width 0.3s ease;
}

.space-o-nav-links a:hover::after {
    width: 100%;
}

/* Hero Section Base */
.space-o-hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--deep-navy) 0%, #2C4057 100%);
    overflow: hidden;
}

.space-o-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(44, 120, 115, 0.1) 0%, transparent 50%);
    animation: floatPattern 20s ease-in-out infinite;
}

@keyframes floatPattern {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, -20px); }
}

.space-o-hero-content {
    text-align: center;
    z-index: 2;
    animation: fadeInUp 1.2s ease-out;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.space-o-hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

.space-o-hero h1 strong {
    font-weight: 700;
    display: block;
    font-size: 5rem;
    margin-top: 0.5rem;
}

.space-o-hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 3rem;
}

.space-o-cta-button {
    display: inline-block;
    padding: 1.2rem 3.5rem;
    background: var(--primary-gold);
    color: var(--deep-navy);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.5rem;
    border-radius: 50px;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
    animation: fadeInUp 1.5s ease-out;
}

.space-o-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.5);
    background: #E8C547;
    color: var(--deep-navy);
}

/* Section Styles Base */
.space-o-section {
    padding: 8rem 10%;
    position: relative;
}

.space-o-section-title {
    font-size: 3rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--deep-navy); /* 기본은 어두운 색 (About, Process 용) */
    font-weight: 600;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.space-o-section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-gold);
}

/* About Section */
.space-o-about {
    background: var(--soft-cream);
    color: var(--warm-grey);
}

.space-o-about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.2rem;
    line-height: 2;
}

.space-o-about-content strong {
    color: var(--accent-teal);
    font-weight: 600;
}

.space-o-highlight-box {
    background: white;
    padding: 3rem;
    margin: 3rem 0;
    border-left: 5px solid var(--primary-gold);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--deep-navy);
}

/* Values Section */
.space-o-values {
    background: linear-gradient(to bottom, var(--soft-cream), white);
    color: var(--warm-grey);
}

.space-o-values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.space-o-value-card {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    color: var(--warm-grey);
}

.space-o-value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-gold), var(--accent-teal));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.space-o-value-card:hover::before {
    transform: scaleX(1);
}

.space-o-value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.space-o-value-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.space-o-value-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--deep-navy);
}

/* Programs Section (어두운 배경) */
.space-o-programs {
    background: var(--deep-navy);
    color: #ffffff !important; 
}

.space-o-programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.space-o-program-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.4s ease;
    color: #ffffff !important;
}

.space-o-program-card:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--primary-gold);
    transform: scale(1.05);
}

.space-o-program-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--primary-gold) !important;
}

.space-o-program-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.95) !important;
}

/* Process Section */
.space-o-process {
    background: white;
    color: var(--warm-grey);
}

.space-o-process-timeline {
    max-width: 1000px;
    margin: 4rem auto;
    position: relative;
}

.space-o-process-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary-gold), var(--accent-teal));
    transform: translateX(-50%);
}

.space-o-process-step {
    display: flex;
    margin-bottom: 4rem;
    position: relative;
}

.space-o-process-step:nth-child(odd) {
    flex-direction: row;
}

.space-o-process-step:nth-child(even) {
    flex-direction: row-reverse;
}

.space-o-step-number {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: var(--primary-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--deep-navy);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
    z-index: 2;
}

.space-o-step-content {
    width: 45%;
    padding: 2rem;
    background: var(--soft-cream);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.space-o-step-content h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--deep-navy);
}

/* CTA Section */
.space-o-cta-section {
    background: linear-gradient(135deg, var(--accent-teal), var(--deep-navy));
    text-align: center;
    padding: 6rem 10%;
    color: #ffffff !important;
}

.space-o-cta-section h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.space-o-cta-section p {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 1;
}

.space-o-cta-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.space-o-btn-primary, .space-o-btn-secondary {
    padding: 1.2rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.space-o-btn-primary {
    background: var(--primary-gold);
    color: var(--deep-navy);
}

.space-o-btn-primary:hover {
    background: #E8C547;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
    color: var(--deep-navy);
}

.space-o-btn-secondary {
    background: transparent;
    color: #ffffff !important;
    border: 2px solid #ffffff;
}

.space-o-btn-secondary:hover {
    background: #ffffff;
    color: var(--deep-navy) !important;
}

/* Footer */
.space-o-footer {
    background: var(--deep-navy);
    color: rgba(255, 255, 255, 0.7) !important;
    padding: 4rem 10%;
    text-align: center;
}

.space-o-footer p {
    opacity: 0.7;
    font-size: 0.95rem;
}

.space-o-footer-logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-gold);
    margin-bottom: 1rem;
}

/* Scroll Animations */
.space-o-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.space-o-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .space-o-nav-links {
        display: none;
    }
    
    .space-o-hero h1 {
        font-size: 2.5rem;
    }
    
    .space-o-hero h1 strong {
        font-size: 3rem;
    }
    
    .space-o-hero-subtitle {
        font-size: 1.1rem;
    }
    
    .space-o-section {
        padding: 5rem 5%;
    }
    
    .space-o-section-title {
        font-size: 2rem;
    }
    
    .space-o-values-grid, .space-o-programs-grid {
        grid-template-columns: 1fr;
    }
    
    .space-o-process-timeline::before {
        left: 30px;
    }
    
    .space-o-process-step {
        flex-direction: column !important;
        padding-left: 80px;
    }
    
    .space-o-step-number {
        left: 30px;
    }
    
    .space-o-step-content {
        width: 100%;
    }
    /* --- [긴급 수정] 레이아웃 강제 확장 및 헤더 크기 조절 --- */

/* 1. 유격 제거: 테마의 박스를 뚫고 화면 전체(Full Width)로 확장 */
.space-o-container {
    width: 100vw; /* 화면 너비 100% */
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw; /* 왼쪽으로 강제 확장 */
    margin-right: -50vw; /* 오른쪽으로 강제 확장 */
    max-width: 100vw !important; /* 테마의 최대 너비 제한 무시 */
    margin-top: -50px; /* 상단 헤더와의 유격이 있다면 숫자를 조절해서 올리세요 (예: -80px) */
}

/* 가로 스크롤바 방지 (확장 시 생길 수 있는 문제 예방) */
body {
    overflow-x: hidden !important;
}

/* 2. 헤더 크기 및 로고 키우기 */
.space-o-nav {
    padding: 1.5rem 5% !important; /* 상하 패딩을 늘려 헤더 높이 확보 (기존 1.5 -> 2.5 등 조절 가능) */
    width: 100% !important; /* 헤더도 100% 꽉 차게 */
    max-width: 100% !important;
    left: 0 !important; /* 왼쪽 0에 고정 */
}

/* 로고 폰트 크기 확대 */
.space-o-logo {
    font-size: 2.5rem !important; /* 기존 2rem에서 2.5rem으로 확대 */
}

/* 메뉴 글자 크기 확대 */
.space-o-nav-links a {
    font-size: 1.1rem !important; /* 기존 0.95rem에서 1.1rem으로 확대 */
}
}/* End custom CSS */