/* Fix logo overlap - keep logo separate from text */
.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

/* Remove extra space below header */
body.homepage {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.main-header + * {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Remove WordPress admin bar spacing */
body.admin-bar .main-header {
    top: 32px;
}

/* Fix for pages */
body:not(.homepage) .main-header + section,
body:not(.homepage) .main-header + main {
    margin-top: 0;
    padding-top: 0;
}

/* Blog Page Fixes */
.blog-main {
    padding: 60px 0;
    background: #f9f9f9;
}

.blog-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-posts {
    background: white;
}

.blog-post {
    background: white;
    margin-bottom: 40px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.blog-post img {
    width: 100%;
    height: auto;
    display: block;
}

.blog-post .post-content {
    padding: 30px;
}

.blog-post h2 {
    margin: 0 0 15px 0;
    font-size: 28px;
    line-height: 1.3;
}

.blog-post h2 a {
    color: #333;
    text-decoration: none;
}

.blog-post h2 a:hover {
    color: #4DD0D6;
}

.post-meta {
    color: #999;
    font-size: 14px;
    margin-bottom: 15px;
}

.post-meta a {
    color: #999;
    text-decoration: none;
}

.blog-post p {
    line-height: 1.8;
    color: #666;
    margin-bottom: 20px;
}

.read-more {
    display: inline-block;
    background: #FFC629;
    color: #333;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.read-more:hover {
    background: #4DD0D6;
    color: white;
}

/* Sidebar Styling */
.blog-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.sidebar-widget {
    background: white;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.sidebar-widget h3 {
    margin: 0 0 20px 0;
    font-size: 20px;
    color: #333;
    border-bottom: 2px solid #4DD0D6;
    padding-bottom: 10px;
}

.sidebar-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-widget ul li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.sidebar-widget ul li:last-child {
    border-bottom: none;
}

.sidebar-widget ul li a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.sidebar-widget ul li a:hover {
    color: #4DD0D6;
}

/* Single Post Page */
.single-post-main {
    padding: 60px 0;
    background: #f9f9f9;
}

.single-post-content {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 60px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.single-post-content h1 {
    font-size: 42px;
    line-height: 1.3;
    margin-bottom: 20px;
    color: #333;
}

.post-featured-image {
    margin: 30px 0;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.post-body {
    line-height: 1.8;
    font-size: 18px;
    color: #444;
}

.post-body p {
    margin-bottom: 20px;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 2px solid #eee;
}

.post-navigation a {
    color: #4DD0D6;
    text-decoration: none;
    font-weight: 600;
}

.post-navigation a:hover {
    color: #FFC629;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }
    
    .single-post-content {
        padding: 30px 20px;
    }
    
    .single-post-content h1 {
        font-size: 32px;
    }
}

/* No posts message */
.no-posts-message {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 8px;
}
