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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

.site-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 300px;
    height: 100vh;
    background: #2c3e50;
    color: #ecf0f1;
    overflow-y: auto;
    z-index: 100;
}

.sidebar-content {
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-header {
    margin-bottom: 40px;
    text-align: center;
}

.profile-image {
    width: 225px;
    height: 225px;
    margin: 0 auto 25px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid gray;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.site-title {
    font-size: 1.5em;
}

.site-title a {
    color: #fff;
    text-decoration: none;
}

.site-description {
    color: #bdc3c7;
    font-size: 0.95em;
    line-height: 1.5;
}

.site-nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: auto;
}

.nav-link {
    color: #ecf0f1;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-footer {
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9em;
    color: #95a5a6;
    text-align: center;
}

.social-links {
    margin-top: 15px;
}

.social-links a {
    color: #ecf0f1;
    text-decoration: none;
    margin-right: 15px;
}

.social-links a:hover {
    color: #3498db;
}

/* Main Content Styles */
.site-main {
    margin-left: 300px;
    flex: 1;
    padding: 25px 40px;
    background: #fff;
}

.content-wrapper {
    width: 95%;
    margin: 0 auto;
}

/* Card Grid Layout */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.post-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.4em;
    margin-bottom: 15px;
    line-height: 1.3;
}

.card-title a {
    color: #2c3e50;
    text-decoration: none;
}

.card-title a:hover {
    color: #3498db;
}

.card-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.card-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
}

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

/* Post Full Page */
.post-full {
    max-width: 800px;
    margin: 0 auto;
}

.post-full-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 40px;
}

.post-full-title {
    font-size: 3em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #2c3e50;
}

.post-full-meta {
    color: #7f8c8d;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.post-full-meta .author a {
    color: #3498db;
    text-decoration: none;
}

.post-full-content {
    font-size: 1.15em;
    line-height: 1.8;
    color: #444;
}

.post-full-content p {
    margin-bottom: 25px;
}

.post-full-content h2,
.post-full-content h3 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: #2c3e50;
}

.post-full-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 30px 0;
}

.post-full-content a {
    color: #3498db;
    text-decoration: none;
}

.post-full-content a:hover {
    text-decoration: underline;
}

/* Pagination */
.pagination {
    margin-top: 60px;
    text-align: center;
}

.pagination a {
    color: #3498db;
    text-decoration: none;
    margin: 0 15px;
    font-weight: 500;
}

.pagination a:hover {
    text-decoration: underline;
}

.kg-width-full img,
.kg-width-wide img{
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        width: 250px;
    }
    
    .site-main {
        margin-left: 250px;
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    .site-wrapper {
        flex-direction: column;
    }
    
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
    }
    
    .sidebar-content {
        min-height: auto;
    }
    
    .site-main {
        margin-left: 0;
        padding: 30px 20px;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .post-full-title {
        font-size: 2em;
    }
    
    .post-full-image {
        height: 250px;
    }
}