* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Noto Sans KR', sans-serif; line-height: 1.6; color: #333; background: #fff; }

header {
    background: #7a479e;
    color: #fff;
    padding: 14px 30px; 
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    display: flex;
    align-items: center;
    gap: 12px;
}
header .logo img { height: 44px; }

header .brand-name {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.15rem;
    transition: color 0.2s ease;
}
header nav ul li a:hover {
    color: #ed78d9;
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    header nav ul {
        display: none;
        flex-direction: column;
        background: #60357e;
        position: absolute;
        top: 60px;
        right: 20px;
        width: 200px;
        padding: 15px;
        border-radius: 8px;
    }
    header nav ul.show {
        display: flex;
    }
    .menu-toggle {
        display: block;
    }
}

/* 히어로 섹션 */
.hero {
    position: relative;
    width: 100%;
    height: 500px; /* PC 기본 높이 */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: url("../img/메인페이지 1.png") no-repeat center center;
    background-size: cover; /* 기본은 cover */
    z-index: -1;
}

/* 모바일 전용 스타일 */
@media (max-width: 768px) {
    .hero {
        height: 300px; /* 모바일 전용 높이 */
    }
    .hero-bg {
        background-position: left center; /* 왼쪽 정렬 */
        background-size: cover;           /* 꽉 차게 */
    }
}


.hero-content {
    background: rgba(0,0,0,0.6);
    padding: 50px 70px;
    border-radius: 12px;
    text-align: center;
    color: #fff;
    animation: fadeUp 1s ease-in-out;
}
.hero-content h1 { font-size: 2.5rem; margin-bottom: 15px; }
.hero-content p { font-size: 1.1rem; margin-bottom: 25px; }
.hero-buttons { display: flex; gap: 15px; justify-content: center; }
.btn { padding: 12px 25px; border-radius: 8px; text-decoration: none; font-weight: bold; transition: 0.3s; }
.btn.call { background: #c65974; color: #fff; }
.btn.chat { background: #b46de5; color: #fff; }
.btn:hover { transform: scale(1.05); }

.container { max-width: 1400px; margin: auto; padding: 60px 20px; text-align: center; }
.services h2 { margin-bottom: 40px; font-size: 2rem; }
.service-grid { display: flex; justify-content: center; gap: 25px; flex-wrap: wrap; }
.service { background: #fff; border: 1px solid #ddd; padding: 25px; border-radius: 12px; width: 300px; transition: 0.3s; }
.service:hover { transform: translateY(-6px); box-shadow: 0 6px 15px rgba(0,0,0,0.1); }
.service img { width: 80px; height: 80px; object-fit: contain; margin-bottom: 15px; }

.instant {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    padding: 120px 40px;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.instant-text {
    font-family: 'Noto Sans KR', 'Poppins', sans-serif;
    line-height: 1.6;
    max-width: 600px;
}

.instant-text h2 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: #111;
}

.instant-text h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #b46de5;
}

.instant-text p {
    font-size: 1.25rem;
    color: #444;
}

.instant-img img {
    max-width: 520px;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
}

.instant-img .caption {
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #b46de5;
}

@media (max-width: 992px) {
    .instant {
        flex-direction: column;
        text-align: center;
        padding: 80px 20px;
    }
    .instant-text h2 {
        font-size: 2.2rem;
    }
    .instant-text h3 {
        font-size: 1.6rem;
    }
    .instant-text p {
        font-size: 1.1rem;
    }
}

.features h2 { margin-bottom: 40px; font-size: 2rem; }
.feature-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 20px; }
.feature { background: #f9f9f9; padding: 20px; border-radius: 10px; transition: 0.3s; }
.feature img { width: 80px; height: 80px; object-fit: contain; margin-bottom: 10px; }
.feature:hover { transform: scale(1.05); }

.certs h2 { margin-bottom: 25px; font-size: 2rem; }
.cert-img { max-width: 900px; width: 100%; height: auto; display: block; margin: 0 auto 30px auto; }

.faq { padding-bottom: 40px; }
.faq h2 { margin-bottom: 25px; font-size: 2rem; }
.faq-item { margin-bottom: 20px; text-align: left; max-width: 800px; margin: 15px auto; padding: 20px; border-left: 5px solid #7a479e; background: #f8faff; border-radius: 6px; }
.faq h4 { color: #7a479e; margin-bottom: 8px; }

footer { background: #222; color: #ccc; text-align: center; padding: 25px; font-size: 0.9rem; }

.card-centers {
    margin-top: 50px;
    text-align: center;
}
.card-centers h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: #7a479e;
}
.card-center-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.card-center {
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    transition: 0.3s;
}
.card-center span {
    font-weight: normal;
    color: #555;
}
.card-center:hover {
    background: #7a479e;
    color: #fff;
    transform: translateY(-5px);
}
.card-center:hover span {
    color: #ed78d9;
}

@media (max-width: 992px) {
    .card-center-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .card-center-grid {
        grid-template-columns: 1fr;
    }
}

.cta-section {
    background: linear-gradient(135deg, #7a479e, #b46de5);
    color: #fff;
    text-align: center;
    padding: 60px 20px;
    margin: 50px 0;
    border-radius: 12px;
}
.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: bold;
}
.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.cta-buttons .btn {
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
}
.cta-buttons .btn.call {
    background: #c65974;
    color: #fff;
}
.cta-buttons .btn.chat {
    background: #b46de5;
    color: #fff;
}
.cta-buttons .btn:hover {
    transform: translateY(-4px);
    opacity: 0.9;
}

.container {
    max-width: 1400px;
    margin: auto;
    padding: 20px;
}

h1 { text-align: center; margin-bottom: 20px; }

.btn {
    background: #7a479e;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    margin: 10px 0;
}
.btn:hover { background: #b46de5; }

.post-list { margin-top: 20px; }
.post {
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
}
.post h3 { margin: 0 0 10px 0; }

.modal {
    background: #fff;
    border: 1px solid #ccc;
    padding: 20px;
    margin-top: 20px;
    border-radius: 8px;
}
.form input, .form textarea {
    width: 100%;
    margin: 10px 0;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

@media (max-width: 768px) {
    .hero { height: 400px; background-size: cover; }
    .hero-content { padding: 20px; }
    .hero-content h1 { font-size: 1.6rem; }
    .hero-content p { font-size: 1rem; }
    .hero-buttons { flex-direction: column; gap: 10px; }

    .instant { flex-direction: column; text-align: center; }
    .instant-text { text-align: center; }
    .feature-grid { grid-template-columns: repeat(3,1fr); }
}
/* 오른쪽 하단 플로팅 채팅 버튼 */
.chat-floating {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #7a479e; /* 브랜드 색상 */
    color: #fff;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    padding: 14px 18px;
    border-radius: 30px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: background 0.3s, transform 0.2s;
}

.chat-floating:hover {
    background: #b46de5;
    transform: translateY(-3px);
}


@keyframes fadeUp { from {opacity:0; transform:translateY(30px);} to {opacity:1; transform:translateY(0);} }

/* ✅ 반응형 */
@media (max-width: 1024px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr); /* 태블릿: 2열 */
    }
}

@media (max-width: 600px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr); /* 모바일: 2열 (꽉 차게) */
    }
}