:root {
    --bg-color: #ffffff;
    --text-color: #333333;
    --primary-color: #0056b3;
    --secondary-color: #f4f7fa;
    --card-bg: #ffffff;
    --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    --border-color: #e0e0e0;
    --hero-text: #ffffff;
    --button-text: #ffffff;
}

body.dark-mode {
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --primary-color: #58a6ff;
    --secondary-color: #1e1e1e;
    --card-bg: #2a2a2a;
    --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    --border-color: #444444;
    --hero-text: #ffffff;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    margin: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.8;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.logo a {
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--primary-color);
    text-decoration: none;
}

.navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
}

.navigation a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.navigation a:hover {
    color: var(--primary-color);
}

main {
    width: 100%;
}

section {
    padding: 60px 0;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.section-content {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 30px auto;
}

.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1517842645767-c6f90405774b?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    color: var(--hero-text);
    padding: 100px 20px;
    border-radius: 12px;
    margin-top: 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin: 0 0 10px 0;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 30px;
}

.cta-button {
    background-color: var(--primary-color);
    color: var(--button-text);
    border: none;
    padding: 15px 35px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 86, 179, 0.4);
}

.story-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: left;
}

.card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 15px 0;
}

.program-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
    max-width: 800px;
    margin: 40px auto;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background-color: var(--secondary-color);
    padding: 20px;
    border-radius: 8px;
}

.step-number {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1;
}

.step-content h4 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    font-weight: 700;
}

.testimonials .card {
    background-color: var(--secondary-color);
    max-width: 700px;
    margin: 0 auto;
}

.testimonials cite {
    display: block;
    margin-top: 15px;
    font-weight: 700;
    font-style: normal;
}

.cta-final {
    background-color: var(--secondary-color);
    border-radius: 12px;
    padding: 60px 20px;
}

/* Page-specific styles */
.page-title-section {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 40px;
}
.about-content, .privacy-policy, .contact-page-content {
    text-align: left;
    max-width: 800px;
    margin: 40px auto;
}
.privacy-policy h3 {
    margin-top: 2rem;
    color: var(--primary-color);
}
.contact-page-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

footer {
    text-align: center;
    padding: 40px 0;
    margin-top: 40px;
    color: #999;
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
}

footer a {
    color: #999;
    text-decoration: none;
}
footer a:hover {
    color: var(--primary-color);
}


/* --- Existing Styles for Modal and Theme Switch (adapted) --- */
.theme-switch-wrapper { display: flex; align-items: center; }
.theme-switch { position: relative; display: inline-block; width: 50px; height: 28px; }
.theme-switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; }
.slider:before { position: absolute; content: ""; height: 20px; width: 20px; left: 4px; bottom: 4px; background-color: white; transition: .4s; }
input:checked + .slider { background-color: var(--primary-color); }
input:checked + .slider:before { transform: translateX(22px); }
.slider.round { border-radius: 34px; }
.slider.round:before { border-radius: 50%; }

.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.6); }
.modal-content { background-color: var(--card-bg); margin: 10% auto; padding: 30px; border-radius: 12px; width: 90%; max-width: 500px; position: relative; box-shadow: 0 5px 25px rgba(0,0,0,0.3); }
.close-btn { color: #aaa; position: absolute; top: 15px; right: 20px; font-size: 32px; font-weight: bold; }
.close-btn:hover, .close-btn:focus { color: var(--text-color); text-decoration: none; cursor: pointer; }
#consultation-form { display: flex; flex-direction: column; }
#consultation-form h2 { color: var(--primary-color); text-align: center; }
#consultation-form label { margin-top: 1rem; font-weight: 700; }
#consultation-form input { padding: 12px; margin-top: 0.5rem; border-radius: 8px; border: 1px solid var(--border-color); background-color: var(--secondary-color); color: var(--text-color); }
#consultation-form button { margin-top: 2rem; }

@media (max-width: 768px) {
    header { flex-direction: column; gap: 20px; }
    .navigation ul { flex-wrap: wrap; justify-content: center; }
    .hero-title { font-size: 2.8rem; }
    .section-title { font-size: 2rem; }
    .contact-page-content { grid-template-columns: 1fr; }
}
