/* =================================================================
   CoreContact 통합 스타일시트 (style_main.css)
   ================================================================= */

/* 1. 기본 및 공통 스타일
----------------------------------------------------------------- */
html { 
    scroll-behavior: smooth; 
}

body, html { 
    margin: 0; 
    padding: 0; 
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif; 
}

body {
    background-color: #f7f9fc; /* 서브 페이지 기본 배경색 */
    color: #333;
    line-height: 1.8;
    /* 고정 네비게이션 바를 위한 공간 확보 (슬림 버전에 맞춤) */
    padding-top: 60px; 
}

/* =================================================================
   3. 메인 페이지 (index.php) 전용 스타일
----------------------------------------------------------------- */
body.dark-theme {
    background-color: #0A192F;
    color: #E6F1FF;
}

.dark-theme main { 
    width: 100%; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
}

.dark-theme .container { 
    max-width: 1100px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

.dark-theme section { 
    width: 100%; 
    padding: 120px 0; 
}

.dark-theme .section-header { 
    text-align: center; 
    margin-bottom: 60px; 
}
.dark-theme .section-header h2 { 
    font-size: 2.8rem; 
    margin-bottom: 15px; 
}
.dark-theme .section-header p { 
    font-size: 1.2rem; 
    max-width: 800px; 
    margin: 0 auto; 
    line-height: 1.6;
}

.btn {
    display: inline-block;
    padding: 14px 35px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}
.btn-solid-accent {
    background-color: #64FFDA;
    color: #0A192F;
    border: 2px solid #64FFDA;
}
.btn-solid-accent:hover {
    background-color: #fff;
    border-color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(100, 255, 218, 0.1);
}
.btn-ghost-dark {
    background-color: transparent;
    border: 2px solid #0A192F;
    color: #0A192F;
}
.btn-ghost-dark:hover { background-color: rgba(10, 25, 47, 0.05); }

.btn-outline-accent {
    background-color: transparent;
    border: 2px solid #64FFDA;
    color: #64FFDA;
}
.btn-outline-accent:hover {
    background-color: #64FFDA;
    color: #0A192F;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(100, 255, 218, 0.2);
}

.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: calc(100vh - 60px);
    padding: 0 20px;
    background: linear-gradient(rgba(10, 25, 47, 0.85), rgba(10, 25, 47, 0.85)), url('https://images.unsplash.com/photo-1539627831859-a911cf04d34d?q=80&w=2070&auto=format&fit=crop') no-repeat center center;
    background-size: cover;
}
.hero-badge {
    display: inline-block;
    padding: 12px 30px;
    background: rgba(100, 255, 218, 0.15);
    border: 2px solid #64FFDA;
    border-radius: 50px;
    color: #64FFDA;
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 25px;
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
.hero h1 {
    font-size: 4rem;
    color: #FFFFFF;
    margin-bottom: 25px;
    line-height: 1.3;
}
.hero p.subtitle {
    font-size: 1.35rem;
    color: #CCD6F6;
    max-width: 900px;
    margin-bottom: 0;
    line-height: 1.8;
}

.ai-promo-section { background-color: #f8f9fa; }
.ai-promo-section .section-header h2 { color: #0A192F; }
.ai-promo-section .section-header p { color: #555; }

/* 나침반 코칭 섹션 - 새로운 디자인 */
.coaching-section {
    background: linear-gradient(135deg, #0d203d 0%, #1a2f4f 100%);
    position: relative;
    overflow: hidden;
}

.coaching-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000" opacity="0.03"><circle cx="500" cy="500" r="400" fill="%2364FFDA"/></svg>');
    background-size: cover;
    pointer-events: none;
}

.section-header-coaching {
    text-align: center;
    margin-bottom: 70px;
    position: relative;
    z-index: 1;
}

.badge-wrapper {
    margin-bottom: 20px;
}

.coaching-badge {
    display: inline-block;
    padding: 10px 25px;
    background: rgba(100, 255, 218, 0.15);
    border: 2px solid #64FFDA;
    border-radius: 50px;
    color: #64FFDA;
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.section-header-coaching h2 {
    font-size: 3.5rem;
    color: #FFFFFF;
    margin-bottom: 25px;
    font-weight: 800;
}

.section-header-coaching .main-tagline {
    font-size: 1.8rem;
    color: #E6F1FF;
    margin-bottom: 15px;
    font-weight: 600;
}

.section-header-coaching .highlight {
    color: #64FFDA;
    position: relative;
    display: inline-block;
}

.section-header-coaching .sub-description {
    font-size: 1.2rem;
    color: #A8B2D1;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

/* 특징 카드 그리드 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    margin-bottom: 70px;
    position: relative;
    z-index: 1;
}

.feature-card {
    background: linear-gradient(145deg, #112240 0%, #0d1b33 100%);
    padding: 40px 35px;
    border-radius: 16px;
    border: 2px solid rgba(100, 255, 218, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #64FFDA 0%, #48a9f8 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: #64FFDA;
    box-shadow: 0 20px 60px rgba(100, 255, 218, 0.15);
}

.feature-icon {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(100, 255, 218, 0.05);
    border-radius: 16px;
}

.feature-card h3 {
    font-size: 1.6rem;
    color: #E6F1FF;
    margin-bottom: 15px;
    font-weight: 700;
}

.feature-card > p {
    font-size: 1.05rem;
    color: #A8B2D1;
    line-height: 1.7;
    margin-bottom: 20px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    font-size: 0.95rem;
    color: #8892B0;
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    line-height: 1.6;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #64FFDA;
    font-weight: bold;
    font-size: 1.2rem;
}

/* CTA 버튼 그룹 */
.cta-button-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 70px;
    position: relative;
    z-index: 1;
}

.btn-cta {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 25px 30px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-cta:hover::before {
    width: 400px;
    height: 400px;
}

.btn-cta-primary {
    background: linear-gradient(135deg, #64FFDA 0%, #48d4b8 100%);
    color: #0A192F;
}

.btn-cta-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(100, 255, 218, 0.4);
}

.btn-cta-secondary {
    background: linear-gradient(135deg, #48a9f8 0%, #3d8fd9 100%);
    color: #FFFFFF;
}

.btn-cta-secondary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(72, 169, 248, 0.4);
}

.btn-cta-contact {
    background: linear-gradient(135deg, #28a745 0%, #20893a 100%);
    color: #FFFFFF;
}

.btn-cta-contact:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(40, 167, 69, 0.4);
}

.btn-icon {
    font-size: 2.2rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.btn-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-align: left;
    position: relative;
    z-index: 1;
}

.btn-text strong {
    font-size: 1.15rem;
    font-weight: 700;
}

.btn-text small {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* 통계 섹션 */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
    padding: 50px;
    background: rgba(100, 255, 218, 0.05);
    border-radius: 16px;
    border: 2px solid rgba(100, 255, 218, 0.1);
    position: relative;
    z-index: 1;
}

.stat-item {
    position: relative;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: #64FFDA;
    margin-bottom: 10px;
    line-height: 1;
}

.stat-label {
    font-size: 1.1rem;
    color: #A8B2D1;
    font-weight: 500;
}

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

.feature-card[data-animation="fade-up"] {
    animation: fadeInUp 0.8s ease forwards;
}

.feature-card[data-animation="fade-up"][data-delay="100"] {
    animation-delay: 0.1s;
    opacity: 0;
}

.feature-card[data-animation="fade-up"][data-delay="200"] {
    animation-delay: 0.2s;
    opacity: 0;
}

/* =================================================================
   4. 서브 페이지 콘텐츠 (privacy.php, terms.php)
----------------------------------------------------------------- */
.sub-page-container {
    max-width: 900px;
    margin: 40px auto 80px; 
    padding: 20px 40px 40px 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.sub-page-container h1 {
    font-size: 28px;
    color: #1b64da;
    text-align: center;
    padding: 20px 0 30px;
}

.sub-page-container h2 {
    font-size: 20px;
    margin-top: 40px;
    color: #1b64da;
}

.sub-page-container p, .sub-page-container li {
    font-size: 15px;
    color: #444;
}

.sub-page-container ul {
    padding-left: 20px;
}

/* =================================================================
   5. 고객 지원 페이지 (support.php)
----------------------------------------------------------------- */
.form-wrapper {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background-color: #ffffff;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    border-radius: 10px;
}

.form-wrapper h2 {
    color: #1b64da;
    text-align: center;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.form-wrapper button {
    width: 100%;
    padding: 12px 20px;
    background-color: #1b64da;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}

/* =================================================================
   6. 푸터 (footer.php)
----------------------------------------------------------------- */
.main-footer {
    background-color: #f8f9fa;
    padding: 30px 20px;
    font-size: 13px;
    color: #777;
    text-align: center;
    line-height: 1.8;
    border-top: 1px solid #e9ecef;
}

.main-footer a {
    margin: 0 10px;
    color: #555;
    text-decoration: none;
}

.main-footer .footer-info {
    margin-top: 10px;
}
.support-footer {
    margin: 40px auto;
    max-width: 1000px;
    text-align: center;
    font-size: 14px;
    color: #555;
}

/* =================================================================
   7. 모바일 반응형
----------------------------------------------------------------- */
@media (max-width: 768px) {
    body {
        /* 모바일 네비게이션 바 높이에 맞춤 */
        padding-top: 60px;
    }

    .dark-theme section {
        padding: 80px 0;
    }
    .hero {
        min-height: calc(100vh - 60px);
        padding: 0 15px;
    }
    .hero-badge {
        font-size: 0.9rem;
        padding: 10px 20px;
        margin-bottom: 20px;
    }
    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.4;
    }
    .hero p.subtitle {
        font-size: 1.1rem;
        line-height: 1.7;
    }
    .dark-theme .section-header h2 {
        font-size: 2.2rem;
    }

    /* 나침반 코칭 섹션 모바일 */
    .section-header-coaching h2 {
        font-size: 2.2rem;
    }

    .section-header-coaching .main-tagline {
        font-size: 1.3rem;
    }

    .section-header-coaching .sub-description {
        font-size: 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .cta-button-group {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .btn-cta {
        padding: 20px 25px;
    }

    .btn-text strong {
        font-size: 1.05rem;
    }

    .stats-section {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px 20px;
    }

    .stat-number {
        font-size: 2.8rem;
    }

    .stat-label {
        font-size: 1rem;
    }
}


/* =================================================================
   8. 회사 소개 페이지 (about_us.php)
----------------------------------------------------------------- */

/* 히어로 섹션 (회사 소개용) */
.about-hero-section {
    background: linear-gradient(rgba(10, 35, 66, 0.8), rgba(10, 35, 66, 0.8)), url('https://images.unsplash.com/photo-1517048676732-d65bc937f952?q=80&w=2070&auto=format&fit=crop') no-repeat center center;
    background-size: cover;
    padding: 120px 20px;
    text-align: center;
    color: #ffffff;
}
.about-hero-section h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 20px;
}
.about-hero-section p {
    font-size: 1.4rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
    opacity: 0.9;
}

/* 소개 콘텐츠 섹션 */
.about-section {
    padding: 80px 20px;
    width: 100%;
    box-sizing: border-box;
}
.about-section .container {
    max-width: 1200px;
    margin: 0 auto;
}
.about-section .section-title-en {
    font-size: 2.8rem;
    color: #0A2342;
    text-align: center;
    margin-bottom: 60px;
}

/* 사업 분야 설명 */
.business-division {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-bottom: 60px;
}
.business-division:last-child {
    margin-bottom: 0;
}
.business-division .icon-wrapper {
    background-color: #e7f3ff;
    color: #007bff;
    font-size: 2.5rem;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.business-division.consulting .icon-wrapper {
    background-color: #fff0e2;
    color: #fd7e14;
}
.business-division .text-wrapper {
    text-align: left;
}
.business-division .text-wrapper h3 {
    font-size: 2rem;
    color: #0A2342;
    margin: 0 0 15px 0;
}
.business-division .text-wrapper .subtitle {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}
.business-division .text-wrapper p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #343a40;
}

/* 행동 유도(CTA) 섹션 */
.cta-section {
    background-color: #0A2342;
    text-align: center;
    padding: 80px 20px 100px 20px;
    width: 100%;
    box-sizing: border-box;
}
.cta-section h2 { 
    font-size: 2.2rem; 
    color: #ffffff; 
    margin-bottom: 20px; 
}
.cta-section p { 
    font-size: 1.2rem; 
    color: #ffffff; 
    max-width: 700px; 
    margin: 0 auto 30px auto;
}
.cta-section .btn-cta { 
    padding: 15px 35px; 
    font-size: 1.2rem; 
    background-color: #fff; 
    color: #0A2342; 
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
}
.cta-section .btn-cta:hover {
    background-color: #64FFDA;
}


/* about_us.php 모바일 반응형 */
@media (max-width: 768px) {
    .about-hero-section h1 { font-size: 2.5rem; }
    .about-hero-section p { font-size: 1.1rem; }
    .business-division {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .business-division .text-wrapper {
        text-align: center;
    }
}