/* [변수 설정: 따뜻한 컬러 팔레트] */
:root {
    /* 요청하신 메인 컬러 */
    --primary-color: #FF6B6B;       /* 코랄 레드 */
    --primary-hover: #fda2a2;       /* 연한 핑크 (호버 시) */
    
    /* 배경색 */
    --bg-color: #FFFDF9;            /* 기본 배경 (아주 연한 크림색) */
    --bg-warm: #FFF5F0;             /* 강조 배경 (살구빛) */
    
    /* 텍스트 */
    --text-dark: #2d3436;
    --text-gray: #636e72;
    
    /* 그림자 */
    --shadow-soft: 0 10px 30px rgba(255, 107, 107, 0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Pretendard', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* [공통 레이아웃] */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}
.section { padding: 100px 0; }
.bg-warm { background-color: var(--bg-warm); }

/* [버튼 스타일 - 수정됨] */
.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff !important;      /* [중요] 글자색 흰색 고정 (가독성 해결) */
    padding: 14px 32px;
    border-radius: 50px;            /* 둥근 알약 모양 */
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    border: none;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.btn-secondary {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid #ffe3e3;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    transition: 0.3s;
    display: inline-block;
    margin-left: 10px;
}

.btn-secondary:hover {
    background-color: #fff0f0;
    border-color: var(--primary-color);
}

/* [네비게이션] */
.navbar {
    position: fixed; top: 0; width: 100%;
    background: rgba(255, 253, 249, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid #eee;
}

.nav-container {
    display: flex; justify-content: space-between; align-items: center; height: 70px;
}

.logo {
    font-size: 1.5rem; font-weight: 800; color: var(--primary-color); 
    display: flex; align-items: center; gap: 8px;
}

/* 로고 이미지 크기 조절 */
.logo-icon img {
    height: 28px; /* 옆에 있는 글자 크기(약 1.5rem)와 비슷하게 맞춤 */
    width: auto;  /* 비율 유지 */
    display: block; /* 이미지 주변의 불필요한 여백 제거 */
    /* 만약 이미지와 글자 사이 간격을 더 조절하고 싶다면 */
    /* margin-right: 5px; */ 
}

.nav-links { display: flex; gap: 30px; align-items: center; }

/* 네비게이션 링크 기본 색상 (회색) */
.nav-links a { 
    font-weight: 500; color: var(--text-gray); transition: 0.3s; 
}
/* 링크 호버 시 색상 (코랄) */
.nav-links a:hover { color: var(--primary-color); }

/* 네비게이션 안의 버튼 크기 조정 */
.btn-primary.small { padding: 10px 24px; font-size: 0.9rem; }


/* [히어로 섹션] */
.hero { padding: 160px 0 100px; }
.hero-container { display: flex; align-items: center; gap: 50px; }
.hero-text { flex: 1; }

.badge {
    background: #FFE8E8; color: var(--primary-color);
    padding: 6px 14px; border-radius: 20px;
    font-size: 0.9rem; font-weight: 700; margin-bottom: 20px; display: inline-block;
}

.hero h1 {
    font-size: 3.2rem; line-height: 1.2; margin-bottom: 24px; color: #2d3436;
}

.highlight {
    color: var(--primary-color);
    position: relative; z-index: 1;
}
.highlight::after {
    content: ''; position: absolute; bottom: 5px; left: 0; width: 100%; height: 10px;
    background: #ffeaa7; opacity: 0.5; z-index: -1; border-radius: 4px;
}

.hero p { font-size: 1.15rem; color: var(--text-gray); margin-bottom: 40px; }

.hero-image { flex: 1; }
.hero-image img {
    width: 100%; border-radius: 30px;
    box-shadow: 20px 20px 0px #FFEEEE; /* 따뜻한 배경 장식 */
}

/* [섹션 헤더] */
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 2.2rem; margin-bottom: 10px; color: var(--text-dark); }
.section-header p { color: var(--text-gray); font-size: 1.1rem; }

/* [특징 카드] */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

.feature-card {
    background: white; padding: 40px 30px;
    border-radius: 24px; text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    transition: 0.3s; border: 1px solid #f0f0f0;
}
.feature-card:hover { 
    transform: translateY(-10px); 
    box-shadow: var(--shadow-soft); 
    border-color: #FFEEEE; 
}

.icon-circle {
    width: 70px; height: 70px; line-height: 70px;
    background: #FFF5F0; border-radius: 50%; color: var(--primary-color);
    margin: 0 auto 20px; font-size: 2rem;
}

/* [프로그램 카드] */
.program-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

.program-card {
    background: white; border-radius: 24px; overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05); transition: 0.3s;
}
.program-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); }

.program-card img { width: 100%; height: 220px; object-fit: cover; }
.p-content { padding: 30px; }
.p-content h3 { font-size: 1.3rem; margin-bottom: 10px; color: var(--text-dark); }
.p-content p { color: var(--text-gray); font-size: 0.95rem; }

/* [절차 단계] */
.steps-container {
    display: flex; justify-content: space-between; text-align: center; flex-wrap: wrap; gap: 20px;
}
.step-item { flex: 1; min-width: 200px; position: relative; }
.step-num {
    font-size: 3rem; font-weight: 900; color: #f0f0f0;
    margin-bottom: -20px; z-index: -1;
}
.step-item h4 { font-size: 1.2rem; margin-bottom: 10px; color: var(--text-dark); }
.step-item p { color: var(--text-gray); font-size: 0.9rem; }

/* [문의 섹션] */
.contact-section { padding: 100px 0; background-color: white; }
.contact-box-wrapper {
    background: #FFFDF9; border-radius: 30px;
    padding: 60px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.05);
    display: flex; justify-content: space-between; align-items: center; gap: 50px;
    border: 1px solid #eee;
}

.contact-intro h2 { font-size: 2.2rem; margin-bottom: 20px; color: var(--text-dark); }
.contact-intro p { color: var(--text-gray); font-size: 1.1rem; margin-bottom: 20px; }
.address-info { background: rgba(255, 107, 107, 0.1); padding: 10px 20px; border-radius: 10px; display: inline-block; color: var(--primary-color); font-weight: 600; font-size: 0.9rem; }

.contact-methods { display: flex; flex-direction: column; gap: 15px; min-width: 320px; }

.c-btn {
    display: flex; align-items: center; gap: 20px;
    padding: 20px; border-radius: 20px;
    transition: 0.2s; text-align: left;
    text-decoration: none;
}
.c-btn i { font-size: 1.5rem; width: 30px; text-align: center; }

/* 버튼 개별 색상 */
.c-btn.phone { background: #FFF5F0; color: var(--primary-color); }
.c-btn.phone:hover { background: #FFEEEE; transform: scale(1.02); }

.c-btn.kakao { background: #FEE500; color: #3c1e1e; }
.c-btn.kakao:hover { background: #fddc00; transform: scale(1.02); }

.c-btn.blog { background: #03C75A; color: white; }
.c-btn.blog:hover { background: #02b351; transform: scale(1.02); }

.c-btn div { display: flex; flex-direction: column; }
.c-btn span { font-size: 0.8rem; opacity: 0.8; }
.c-btn strong { font-size: 1.1rem; }

footer { text-align: center; padding: 40px; color: #aaa; font-size: 0.9rem; border-top: 1px solid #eee; }

/* [반응형 - 모바일] */
@media (max-width: 768px) {
    .hero-container, .contact-box-wrapper { flex-direction: column; text-align: center; }
    .hero h1 { font-size: 2.2rem; }
    .features-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; } /* 모바일에서는 메뉴 숨김 */
    .contact-box-wrapper { padding: 30px; }
    .c-btn { justify-content: center; }
}

/* 애니메이션 */
.fade-in { opacity: 0; transform: translateY(20px); transition: 0.8s; }
.fade-in.visible { opacity: 1; transform: translateY(0); }  

/* [푸터 링크 스타일] */
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-link {
    background: none;
    border: none;
    color: #999;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.85rem;
    font-family: 'Pretendard', sans-serif;
}

.footer-link:hover {
    color: var(--primary-color);
}

/* [모달 팝업 스타일] */
.modal {
    display: none; /* 기본적으로 숨김 */
    position: fixed;
    z-index: 2000; /* 네비게이션보다 위에 뜨게 */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 반투명 검은 배경 */
    backdrop-filter: blur(5px); /* 배경 흐림 효과 */
}

.modal-content {
    background-color: #fefefe;
    margin: 10vh auto; /* 화면 높이 기준(10%)이라 항상 일정한 위치 유지 */
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
    position: relative;
    max-height: 80vh; /* 화면 높이의 80%까지만 */
    overflow-y: auto; /* 내용이 길면 스크롤 */
}

.modal-content h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 25px;
    top: 15px;
    transition: 0.3s;
}

.close-btn:hover,
.close-btn:focus {
    color: var(--primary-color);
}

.privacy-text p {
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

.privacy-text strong {
    color: #333;
    display: block;
    margin-bottom: 5px;
}

.small-text {
    font-size: 0.8rem;
    color: #999;
    margin-top: 20px;
}