/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Apple SD Gothic Neo', 'Malgun Gothic', '맑은 고딕', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f7f6;
}

a {
    text-decoration: none;
    color: #0056b3;
}

/* Header */
header {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 1.5rem;
    color: #2c3e50;
    font-weight: 800;
}

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

nav a {
    color: #555;
    font-weight: 600;
    transition: color 0.3s;
}

nav a:hover {
    color: #0056b3;
}

/* Main Layout */
.container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
    display: flex;
    gap: 30px;
}

.content {
    flex: 2;
}

.sidebar {
    flex: 1;
}

/* Articles */
article {
    background: #ffffff;
    padding: 35px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.03);
}

article h2 {
    color: #1a202c;
    margin-bottom: 10px;
    font-size: 1.8rem;
    line-height: 1.3;
}

article .meta {
    font-size: 0.9rem;
    color: #718096;
    margin-bottom: 20px;
    border-bottom: 1px solid #edf2f7;
    padding-bottom: 15px;
}

article h3 {
    margin-top: 30px;
    margin-bottom: 12px;
    color: #2d3748;
    font-size: 1.3rem;
}

article p {
    margin-bottom: 18px;
    color: #4a5568;
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Sidebar Widgets */
.widget {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.03);
}

.widget h3 {
    margin-bottom: 15px;
    color: #2d3748;
    font-size: 1.2rem;
    border-bottom: 2px solid #3182ce;
    padding-bottom: 8px;
    display: inline-block;
}

/* Quote Widget */
#quote-widget p {
    margin-bottom: 10px;
}

#quote {
    font-size: 1.1rem;
    font-weight: bold;
    color: #2d3748;
}

#author {
    text-align: right;
    font-size: 0.9rem;
    color: #718096;
}

#new-quote {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    background-color: #edf2f7;
    color: #4a5568;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

#new-quote:hover {
    background-color: #e2e8f0;
}

/* Contact Form */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: #4a5568;
    font-weight: 600;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

#submit-btn {
    width: 100%;
    padding: 12px;
    background-color: #3182ce;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

#submit-btn:hover {
    background-color: #2b6cb0;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px;
    background-color: #1a202c;
    color: #a0aec0;
    margin-top: 60px;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
}