/* 기본 스타일 */
body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', sans-serif;
    line-height: 1.8;
    color: #333;
    background-color: #f9f9f9;
    margin: 0;
    padding: 20px;
}

.post {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
/* 헤더 */
.main-header {
    background: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: -1px;
}

.logo span { color: #ff6b6b; }

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
}

nav a {
    text-decoration: none;
    color: #666;
    font-weight: 500;
}

/* 헤더 */
.post-header {
    border-bottom: 2px solid #eee;
    margin-bottom: 30px;
    padding-bottom: 20px;
    text-align: center;
}

.category {
    color: #ff6b6b;
    font-weight: bold;
    font-size: 0.9em;
}

h1 {
    font-size: 1.8em;
    margin-top: 10px;
    color: #2c3e50;
}

/* 본문 요소 */
h2 {
    font-size: 1.4em;
    border-left: 5px solid #ff6b6b;
    padding-left: 15px;
    margin-top: 40px;
}

.highlight-text {
    background-color: #fff3f3;
    padding: 15px;
    border-radius: 8px;
    font-weight: 500;
}

.example-list {
    background: #f1f3f5;
    padding: 20px 20px 20px 40px;
    border-radius: 8px;
}

/* 강조 박스 */
.answer-box {
    background: #e7f5ff;
    border: 1px solid #a5d8ff;
    padding: 20px;
    border-radius: 10px;
    margin: 30px 0;
    text-align: center;
}

.answer-box h3 {
    margin-top: 0;
    color: #1971c2;
}

.point-advice {
    border: 2px dashed #fab005;
    padding: 20px;
    border-radius: 10px;
    background: #fff9db;
}

.bad { color: #fa5252; font-weight: bold; }
.good { color: #228be6; font-weight: bold; }

/* 테이블 */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

th {
    background-color: #f8f9fa;
    color: #495057;
}

/* 푸터 */
.post-footer {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
    font-style: italic;
    color: #868e96;
}

/* 모바일 대응 */
@media (max-width: 600px) {
    .post {
        padding: 20px;
    }
    h1 {
        font-size: 1.4em;
    }
}

/* 퀴즈 섹션 스타일 */
.quiz-section {
    margin-top: 50px;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 15px;
}

.quiz-item {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.question {
    font-weight: bold;
    margin-bottom: 15px;
}

.q-blank {
    color: #ff6b6b;
    text-decoration: underline;
}

.options {
    display: flex;
    gap: 10px;
}

.options button {
    padding: 10px 20px;
    border: 1px solid #dee2e6;
    background: #fff;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1em;
}

.options button:hover {
    background: #e9ecef;
}

.options button.selected {
    background: #333;
    color: #fff;
    border-color: #333;
}

.feedback {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    display: none;
    font-size: 0.9em;
    line-height: 1.5;
    background: #f1f3f5;
}

.res-correct { font-weight: bold; font-size: 1.1em; }
.res-wrong { font-weight: bold; font-size: 1.1em; }

.quiz-footer {
    font-size: 0.8em;
    color: #868e96;
    text-align: center;
}
.quiz-result-summary {
    text-align: center;
    padding: 30px;
    background: #e7f5ff;
    border-radius: 10px;
    margin-top: 20px;
    border: 2px solid #339af0;
}

.quiz-result-summary button {
    padding: 10px 25px;
    background: #339af0;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.quiz-result-summary button:hover {
    background: #1c7ed6;
}

/* 주의점 박스 스타일 추가 */
.answer-box.alert {
    background-color: #fff5f5;
    border: 1px solid #ffc9c9;
}
.answer-box.alert h3 {
    color: #e03131;
}