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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #404040;
    background: #ffffff;
}

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

/* Header */
header {
    background: #ffffff;
    color: #404040;
    padding: 1.5rem 0;
    border-bottom: 1px solid #e0e0e0;
}

header .logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

header .logo img {
    height: 60px;
}

header .logo h1 {
    font-size: 2rem;
}

header nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin-top: 1rem;
}

header nav a {
    color: #404040;
    text-decoration: none;
    transition: color 0.3s;
}

header nav a:hover {
    color: #0693e3;
}

/* Main Content */
main {
    padding: 2rem 0;
    background: #ffffff;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

/* Blog Posts */
.blog-posts {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.post {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.post h2 {
    margin-bottom: 0.5rem;
}

.post h2 {
    color: #333333;
}

.post h2 a {
    color: #333333;
    text-decoration: none;
    transition: color 0.3s;
}

.post h2 a:hover {
    color: #0693e3;
}

.post-meta {
    color: #767676;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.post-meta .comment-toggle {
    color: #0693e3;
    cursor: pointer;
    text-decoration: underline;
}

.post-meta .comment-toggle:hover {
    color: #007cba;
}

.post .post-content {
    background: transparent;
    padding: 0;
    box-shadow: none;
    margin-bottom: 1rem;
}

.post .post-content p {
    line-height: 1.8;
    color: #404040;
    margin-bottom: 1rem;
}

.post .post-content blockquote {
    border-left: 4px solid #0693e3;
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #666666;
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 4px;
}

.post .post-content .post-image {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
    border-radius: 4px;
    display: block;
}

.post .post-content .video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    margin: 1.5rem 0;
    border-radius: 4px;
}

.post .post-content .video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 4px;
}

.post p {
    line-height: 1.8;
    color: #313131;
}

.post a {
    color: #0693e3;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.widget {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.widget h3 {
    margin-bottom: 1rem;
    color: #000000;
    font-size: 1.2rem;
}

.widget ul {
    list-style: none;
}

.widget ul li {
    margin-bottom: 0.5rem;
}

.widget ul li a {
    color: #0693e3;
    text-decoration: none;
}

.widget ul li a:hover {
    text-decoration: underline;
}

/* Search Form */
.search-form {
    display: flex;
    gap: 0.5rem;
}

.search-form input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.search-form button {
    padding: 0.5rem 1rem;
    background: #32373c;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.search-form button:hover {
    background: #0693e3;
}

/* Post Page Styles */
.post-content {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.post-content h1 {
    color: #000000;
    margin-bottom: 0.5rem;
}

.post-content .post-meta {
    margin-bottom: 1.5rem;
}

.post-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: #313131;
}

.post-content blockquote {
    border-left: 4px solid #0693e3;
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #313131;
    opacity: 0.8;
}

.post-content code {
    background: #eee;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    color: #313131;
}

.post .comments {
    background: #fafafa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
    border: 1px solid #e0e0e0;
}

.post .comments h3 {
    color: #000000;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.post .comments .no-comments {
    color: #313131;
    opacity: 0.6;
    font-style: italic;
}

.comment {
    border-bottom: 1px solid #ddd;
    padding: 1rem 0;
}

.comment:first-of-type {
    padding-top: 0;
}

.comment:last-child {
    border-bottom: none;
}

.comment-author {
    font-weight: bold;
    color: #000000;
    margin-bottom: 0.25rem;
}

.comment-date {
    font-size: 0.85rem;
    color: #767676;
    margin-bottom: 0.5rem;
}

.comment-text {
    color: #404040;
    line-height: 1.6;
}

/* Footer */
footer {
    background: #ffffff;
    color: #404040;
    padding: 2rem 0;
    text-align: center;
    margin-top: 4rem;
    border-top: 1px solid #e0e0e0;
}

/* Responsive */
@media (max-width: 768px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }

    header nav ul {
        flex-wrap: wrap;
    }
}
