/* --- General Styles --- */
:root {
    --bg-color: #f8f9fa;
    --text-color: #333333;
    --primary-color: #2c3e50;
    /* Deep Blue for seriousness */
    --accent-color: #3498db;
    /* Blue for links/highlights */
    --card-bg: #ffffff;
    --border-color: #e0e0e0;
    --header-bg: #ffffff;
    --footer-bg: #f8f9fa;
    --success-bg: #e8f5e9;
    --success-text: #2e7d32;
}

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

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

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* --- Header --- */
.blog-header {
    text-align: center;
    padding: 4rem 1rem;
    background-color: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 3rem;
    position: relative;
}

.blog-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.blog-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.back-link {
    position: absolute;
    top: 20px;
    left: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.2s ease;
    background-color: transparent;
}

.back-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--primary-color);
    text-decoration: none;
}

/* --- Blog Layout --- */
.post-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding-bottom: 3rem;
}

.post-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    text-decoration: none;
}

.post-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-card h2 {
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
    line-height: 1.4;
}

.post-card p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.read-more {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 5px;
}

.read-more i {
    transition: transform 0.2s ease;
}

.post-card:hover .read-more i {
    transform: translateX(4px);
}

/* --- Article Styles --- */
article.blog-post {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.post-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.post-header h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.post-header .meta {
    color: #888;
    font-size: 0.9rem;
}

.post-content h2 {
    font-size: 1.7rem;
    color: var(--primary-color);
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
    border-left: 4px solid var(--accent-color);
    padding-left: 15px;
}

.post-content h3 {
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #444;
}

.post-content p {
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
}

.post-content ul,
.post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* --- Highlights & Callouts --- */
.highlight-box {
    background-color: #f8f9fa;
    border-left: 4px solid #666;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

.highlight-box.success {
    background-color: var(--success-bg);
    border-left-color: var(--success-text);
}

.highlight-box h4 {
    margin-top: 0;
    margin-bottom: 0.8rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.key-takeaways {
    background-color: var(--header-bg);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 3rem;
}

.key-takeaways h3 {
    margin-top: 0;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* --- Footer --- */
.blog-footer {
    text-align: center;
    padding: 3rem 0;
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
    color: #888;
    background-color: var(--footer-bg);
}

/* Responsive */
@media (max-width: 768px) {
    .blog-header h1 {
        font-size: 2rem;
    }

    .post-list {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 15px;
    }
}