/* 1. Global Variables & Base */
:root {
    --primary-color: #0f172a; 
    --accent-color: #10b981;  
    --accent-hover: #059669;
    --text-gray: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Pretendard', sans-serif; }
body { line-height: 1.6; color: #333; background-color: var(--bg-light); scroll-behavior: smooth; overflow-x: hidden; }
li { list-style: none; }
a { text-decoration: none; color: inherit; transition: 0.3s; }

/* Navigation */
nav {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 1rem 5%; /* 모바일 대응을 위해 좌우 패딩을 10% -> 5%로 줄임 */
    height: 70px;    /* 높이를 명시적으로 고정하여 중간에 뜨는 현상 방지 */
    background: rgba(255, 255, 255, 0.95); 
    position: sticky; 
    top: 0; 
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); 
    backdrop-filter: blur(10px);
}

/* 👇 여기서부터 그대로 복사해서 붙여넣으세요 👇 */
.logo {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    cursor: pointer;
}

/* 3. 맨 아래 푸터(footer)에 있는 로고 스타일 */
/* 푸터의 짙은 배경(#0b1222) 위에서 은은하고 세련되게 빛나도록 에메랄드그린 테마 적용 */
footer .logo {
    color: var(--accent-color); /* 기존 에메랄드그린 포인트 컬러 */
    display: inline-block;
    margin-bottom: 15px; /* 푸터 내부 레이아웃을 위한 여백 추가 */
}

.nav-links {
    display: flex;
    gap: 30px; 
    align-items: center;
}

.nav-links a {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-gray); 
    text-decoration: none;
    transition: color 0.3s ease; 
}

.nav-links a:hover {
    color: var(--accent-color); 
}

@media (max-width: 768px) {
    .nav-links { gap: 15px; }
    .nav-links a { font-size: 0.95rem; }
}
/* 👆 여기까지 👆 */

/* 3. Hero Section */
.hero {
    height: 100vh;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    text-align: center;
    background: linear-gradient(rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.75)), 
    url('https://images.unsplash.com/photo-1497561813398-8fcc7a37b567?auto=format&fit=crop&q=80') center/cover;
    color: #fff; padding: 0 20px;
}
.hero-content { margin-bottom: 3.5rem; }
.hero h1 {
    font-size: clamp(2.8rem, 7vw, 4.5rem); margin-bottom: 1.5rem;
    font-weight: 800; line-height: 1.2; letter-spacing: -2px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
}
.hero p {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem); font-weight: 300; opacity: 0.9;
    max-width: 700px; margin: 0 auto; word-break: keep-all; line-height: 1.6;
}
.cta-btn {
    padding: 1.2rem 3.5rem; background: var(--accent-color); color: white;
    border-radius: 50px; font-weight: 700; font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}
.cta-btn:hover {
    transform: translateY(-5px); box-shadow: 0 15px 35px rgba(16, 185, 129, 0.5);
    background: var(--accent-hover);
}

/* 4. Layout & Common */
section { padding: 100px 10%; }
.section-title { text-align: center; margin-bottom: 70px; }
.section-title h2 { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 1rem; }

/* 5. Vision & MMR */
.vision-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.vision-card { background: #fff; padding: 40px; border-radius: 20px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.03); transition: 0.3s; }
.vision-card:hover { transform: translateY(-10px); }
.vision-card i { font-size: 2.5rem; color: var(--accent-color); margin-bottom: 1.5rem; }

.mmr-item { display: flex; align-items: center; background: var(--white); margin-bottom: 20px; padding: 30px; border-radius: 15px; border-left: 6px solid var(--accent-color); box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: 0.3s; }
.mmr-item:hover { transform: translateX(10px); }
.mmr-num { font-size: 2rem; font-weight: 900; color: var(--accent-color); margin-right: 25px; opacity: 0.3; }

/* 6. Contact Box (The Fixed Part) */
.contact-box { background: var(--primary-color); border-radius: 30px; overflow: hidden; display: grid; grid-template-columns: 1fr 1.5fr; color: white; box-shadow: 0 20px 40px rgba(0,0,0,0.2); }
.contact-info { padding: 60px; background: rgba(255,255,255,0.03); display: flex; flex-direction: column; justify-content: center; }
.contact-form { padding: 60px; }

.form-row { display: flex; gap: 15px; width: 100%; }
.form-group { margin-bottom: 25px; position: relative; }
.form-group label { display: block; margin-bottom: 10px; font-size: 0.85rem; font-weight: 600; color: rgba(255,255,255,0.6); transition: 0.3s; }

/* 통합 입력창 스타일 */
/* 1. 모든 입력 요소 공통 스타일 (인풋, 셀렉트, 텍스트에어리어) */
.contact-form input, 
.contact-form select, 
.contact-form textarea {
    width: 100%; 
    padding: 14px 18px;
    border: 1px solid var(--glass-border);
    border-radius: 12px; 
    background: var(--glass-bg);
    color: white; 
    font-size: 1rem; 
    outline: none;
    transition: all 0.3s ease;
    display: block;
}

/* 2. 셀렉트 박스와 날짜 선택창 통합 스타일 (클릭 영역 확장 및 아이콘) */
.contact-form select,
.contact-form input[type="datetime-local"] {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    /* 화살표/달력 아이콘 (흰색 SVG) */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 18px;
    padding-right: 45px; /* 아이콘과 텍스트 겹침 방지 */
}

/* 3. [핵심] 날짜 선택창의 숨겨진 아이콘을 전체 영역으로 확장 */
.contact-form input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    cursor: pointer;
    opacity: 0; /* 아이콘은 숨기지만, 클릭 영역은 전체가 됨 */
}

/* 4. 포커스 상태 */
.contact-form input:focus, 
.contact-form select:focus, 
.contact-form textarea:focus {
    border-color: var(--accent-color); 
    background: rgba(255,255,255,0.15);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

/* 5. 셀렉트 박스 내부 옵션 다크모드 대응 */
.contact-form select option { 
    background-color: var(--primary-color); 
    color: white; 
}

.submit-btn {
    width: 100%; padding: 16px; background: var(--accent-color); color: white;
    border: none; border-radius: 12px; font-weight: 700; font-size: 1.1rem;
    cursor: pointer; transition: 0.3s; margin-top: 10px;
}
.submit-btn:hover { background: var(--accent-hover); transform: translateY(-2px); }

/* 7. Archive & Gallery */
.archive-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; margin-top: 50px; }
.archive-card { background: #fff; border-radius: 15px; overflow: hidden; box-shadow: 0 10px 20px rgba(0,0,0,0.05); transition: 0.3s; }
.archive-card:hover { transform: translateY(-5px); }
.archive-img { width: 100%; aspect-ratio: 3/4; background-color: #eee; background-size: cover; background-position: center; }
.archive-info { padding: 1.5rem; }
.archive-tag { display: inline-block; padding: 4px 12px; background: var(--bg-light); color: var(--accent-color); border-radius: 20px; font-size: 0.75rem; font-weight: 600; margin-bottom: 10px; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 50px; }
.gallery-item { position: relative; border-radius: 20px; overflow: hidden; height: 350px; box-shadow: 0 10px 20px rgba(0,0,0,0.08); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.gallery-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(15, 23, 42, 0.9)); padding: 30px 20px; color: white; opacity: 0; transition: 0.4s; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* 8. Footer */
footer { background: #0b1222; color: #94a3b8; padding: 60px 10%; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.footer-details { font-size: 0.85rem; line-height: 1.8; }
.copyright { width: 100%; text-align: center; margin-top: 50px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.05); font-size: 0.8rem; }

/* 9. Responsive */
@media (max-width: 900px) {
    .contact-box { grid-template-columns: 1fr; }
    .contact-info { padding: 40px; text-align: center; }
    .nav-links { display: none; }
}
@media (max-width: 600px) {
    .form-row { flex-direction: column; gap: 0; }
    section { padding: 60px 5%; }
}

/* =========================================
   9. 에센셜 상담 프로그램 섹션 스타일 (수정본)
========================================= */
.programs-section {
    padding: 80px 20px;
    background-color: var(--bg-light); /* 기존 배경색 변수 활용 */
}

.programs-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.programs-section .section-title {
    text-align: center;
    margin-bottom: 50px;
}

.programs-section .section-title h2 {
    font-size: 2.2rem;
    color: var(--primary-color); /* 기존 메인 텍스트 컬러 */
    margin-bottom: 10px;
    font-weight: bold;
}

.programs-section .section-title p {
    color: var(--text-gray); /* 기존 서브 텍스트 컬러 */
    font-size: 1.1rem;
}

/* 카드 그리드 정렬 (PC에서는 3열, 모바일에서는 1열) */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* 개별 프로그램 카드 디자인 */
.program-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 5px solid var(--accent-color); /* 에메랄드그린 포인트 적용 */
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.program-icon {
    font-size: 3rem;
    color: var(--accent-color); /* 기존 아이콘 포인트 컬러 */
    margin-bottom: 25px;
}

.program-badge {
    display: inline-block;
    padding: 6px 14px;
    /* 에메랄드그린 톤에 맞춘 뱃지 배경과 글씨색 */
    background-color: rgba(16, 185, 129, 0.1); 
    color: var(--accent-hover); 
    font-size: 0.85rem;
    border-radius: 20px;
    margin-bottom: 15px;
    font-weight: 600;
}

.program-content h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.program-subtitle {
    font-weight: 600;
    color: var(--text-gray);
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.program-desc {
    color: var(--text-gray);
    line-height: 1.6;
    font-size: 0.95rem;
    word-break: keep-all; 
}