@import url('https://hangeul.pstatic.net/hangeul_static/css/nanum-square.css');

:root {
    --bg-color: #f9fafb;
    --text-color: #111827;
    --header-bg: #ffffff;
    --border-color: #e5e7eb;
    --card-bg: #ffffff;
    --primary-color: #085F1B;
    --hover-bg: #f3f4f6;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #111827;
        --text-color: #f9fafb;
        --header-bg: #1f2937;
        --border-color: #374151;
        --card-bg: #1f2937;
        --primary-color: #03F931;
        --hover-bg: #374151;
    }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'NanumSquare', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
    overflow-x: hidden;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background-color: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.tabs {
    display: flex;
    gap: 0.5rem;
}

.tab-btn {
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    color: var(--text-color);
    border-radius: 6px;
    transition: background-color 0.2s, color 0.2s;
    font-weight: 500;
}

.tab-btn:hover { background-color: var(--hover-bg); }
.tab-btn.active {
    background-color: var(--primary-color);
    color: white;
}

.lang-toggle select {
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    background-color: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    font-size: 0.95rem;
    cursor: pointer;
    outline: none;
    font-weight: 500;
}

.slider-viewport {
    max-width: 800px;
    margin: 2rem auto;
    overflow: hidden;
}

.slider-container {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    width: 100%;
    align-items: flex-start;
}

.tab-content {
    min-width: 100%;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

h1 { font-size: 2.2rem; margin-bottom: 1.5rem; line-height: 1.2; }
h2 { margin-top: 1.5rem; margin-bottom: 0.5rem; color: var(--primary-color); font-size: 1.5rem; }
p { margin-bottom: 1.2rem; font-size: 1.1rem; }

.card, .faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.card h2, .card h3, .faq-item h3 { 
    margin-top: 0; 
    color: var(--text-color); 
    font-size: 1.25rem; 
    margin-bottom: 0.5rem;
}

.resource-link {
    color: var(--primary-color);
    text-decoration: none;
}

.resource-link:hover {
    text-decoration: underline;
}

.faq-item h3 { font-weight: 600; }

@media (max-width: 600px) {
    .tabs { gap: 0.25rem; }
    .tab-btn { padding: 0.5rem 0.6rem; font-size: 0.9rem; }
    header { padding: 1rem; }
}

@font-face {
    src: url("./font/Helvetica.ttc");
    font-family: "Helvetica";
}

.ko h1 {
    font-family: NanumSquareBold;
}

.ko p, .ko li {
    font-family: NanumSquare;
    list-style-type: square;
}

.en h1 {
    font-family: Helvetica, sans-serif;
    font-weight: bold;
}

.en p, .en li {
    font-family: Helvetica, sans-serif;
    list-style-type: square;
}
