/**
 * Kriswebb Theme Styles
 * Minimal, clean styling for kriswebb
 */

/* Reset and Base */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1a1a1a;
    background: #ffffff;
}

/* Site Container */
#page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header - Simple top bar */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    padding: 0.5rem 0;
}

.site-header-inner {
    max-width: 100%;
    margin: 0;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding {
    flex: 1;
}

.site-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 400;
}

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

.site-title a:hover {
    color: #0645ad;
    text-decoration: underline;
}


.custom-logo {
    max-height: 50px;
    width: auto;
}


/* Main Content Area */
.site-main {
    flex: 1;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Main Content */
.site-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}

/* Articles */
article {
    margin-bottom: 3rem;
}

.entry-header {
    margin-bottom: 2rem;
}

.entry-title {
    font-size: 2rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    color: #1a1a1a;
    line-height: 1.3;
}

.entry-meta {
    font-size: 0.9rem;
    color: #666666;
    margin-bottom: 1.5rem;
}

.entry-meta span {
    margin-right: 1rem;
}

.entry-meta a {
    color: #3b82f6;
    text-decoration: none;
}

.entry-meta a:hover {
    text-decoration: underline;
}

.entry-content {
    font-size: 1rem;
    line-height: 1.7;
    color: #1a1a1a;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    margin: 2rem 0 1rem;
    font-weight: 600;
    line-height: 1.3;
    color: #1a1a1a;
}

.entry-content h2 {
    font-size: 1.75rem;
}

.entry-content h3 {
    font-size: 1.5rem;
}

.entry-content p {
    margin: 1rem 0;
}

.entry-content ul,
.entry-content ol {
    margin: 1rem 0;
    padding-left: 2em;
}

.entry-content li {
    margin: 0.5rem 0;
}

.entry-content a {
    color: #0645ad;
    text-decoration: none;
}

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

.entry-content a:visited {
    color: #0b0080;
}

.entry-content img {
    max-width: 100%;
    height: auto;
}

/* Archive */
.archive-header {
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e5e5;
}

.archive-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: #1a1a1a;
}

.archive-description {
    color: #666666;
    font-size: 1.1rem;
}

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.post-item {
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e5e5;
}

.post-item:last-child {
    border-bottom: none;
}

.post-item .entry-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.post-item .entry-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.post-item .entry-title a {
    color: #0645ad;
}

.post-item .entry-title a:hover {
    text-decoration: underline;
}

.entry-excerpt {
    color: #666666;
    margin-top: 0.5rem;
}

/* Pagination */
.pagination {
    margin: 3rem 0;
    text-align: center;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    text-decoration: none;
    color: #1a1a1a;
    background: #ffffff;
    transition: all 0.2s ease;
}

.pagination a:hover {
    background: #3b82f6;
    color: #ffffff;
    border-color: #3b82f6;
}

.pagination .current {
    background: #3b82f6;
    color: #ffffff;
    border-color: #3b82f6;
}

/* Footer */
.site-footer {
    background: #f8f9fa;
    border-top: 1px solid #e5e5e5;
    padding: 2rem 0;
    margin-top: auto;
}

.site-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.site-info {
    margin: 0;
    color: #666666;
    font-size: 0.9rem;
}

/* 404 */
.error-404,
.no-content {
    text-align: center;
    padding: 4rem 2rem;
}

.error-404 h1,
.no-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.error-404 p,
.no-content p {
    font-size: 1.1rem;
    color: #666666;
    margin-bottom: 1rem;
}

.error-404 a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.error-404 a:hover {
    text-decoration: underline;
}

/* Kriswebb Content Integration */
.kriswebb-content .entry-content {
    /* Plugin CSS will handle kriswebb-specific styling */
}

/* Front Page Layout */
.front-page-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.front-page-main {
    min-width: 0;
}

.front-page-sidebar {
    min-width: 0;
}

/* News List - Simple list format */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 2rem;
}

.news-item {
    padding: 1rem 0;
    border-bottom: 1px solid #e5e5e5;
}

.news-item:last-child {
    border-bottom: none;
}

.news-title {
    font-size: 1rem;
    font-weight: 400;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.news-title a {
    color: #0645ad;
    text-decoration: none;
}

.news-title a:hover {
    text-decoration: underline;
}

.news-date {
    font-size: 0.85rem;
    color: #666666;
    margin: 0;
}

/* Top-level pages in sidebar */
.front-page-sidebar .top-level-pages,
.front-page-sidebar .other-pages {
    margin: 0 0 2rem 0;
    padding: 0;
    border: none;
}

.front-page-sidebar .other-pages {
    margin-top: 2rem;
}

.front-page-sidebar .section-title {
    font-size: 1.25rem;
    font-weight: 400;
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e5e5;
}

.front-page-sidebar .page-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.front-page-sidebar .page-list li {
    margin: 0;
}

.front-page-sidebar .page-list a {
    color: #0645ad;
    text-decoration: none;
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
    line-height: 1.4;
}

.front-page-sidebar .page-list a:hover {
    text-decoration: underline;
    padding-left: 0.5rem;
    transition: padding-left 0.2s ease;
}

.front-page-sidebar .page-list li:last-child a {
    border-bottom: none;
}

.latest-news {
    margin-bottom: 4rem;
}

.section-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e5e5;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    margin: 0;
    color: #1a1a1a;
}

.news-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 2rem;
}

.news-card {
    padding: 1.25rem 0;
    border-bottom: 1px solid #e5e5e5;
    display: block;
}

.news-card:last-child {
    border-bottom: none;
}

.news-card-title {
    font-size: 1.1rem;
    font-weight: 400;
    margin: 0 0 0.5rem 0;
    line-height: 1.5;
}

.news-card-title a {
    color: #0645ad;
    text-decoration: none;
}

.news-card-title a:hover {
    text-decoration: underline;
}

.news-card-meta {
    font-size: 0.85rem;
    color: #666666;
    margin-bottom: 0.5rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.news-date {
    color: #666666;
}

.news-category {
    color: #0645ad;
}

.news-card-excerpt {
    color: #333333;
    line-height: 1.6;
    margin: 0.5rem 0 0 0;
    font-size: 0.95rem;
}

.news-card-link {
    display: none;
}

.view-all-news {
    text-align: center;
    margin-top: 3rem;
}

.button {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    color: #0645ad;
    text-decoration: none;
    border: 1px solid #e5e5e5;
    font-weight: 400;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.button:hover {
    background: #e5e5e5;
    color: #0645ad;
    text-decoration: underline;
}

.button-primary {
    background: #f8f9fa;
    color: #0645ad;
}

.button-primary:hover {
    background: #e5e5e5;
    color: #0645ad;
}

.no-news {
    text-align: center;
    padding: 4rem 2rem;
    color: #666666;
}

/* Top-level pages and child pages lists */
.top-level-pages,
.child-pages {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e5e5;
}

.child-pages-title {
    font-size: 1.25rem;
    font-weight: 400;
    margin: 0 0 1rem 0;
    color: #1a1a1a;
}

.page-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 0.5rem;
}

.page-list li {
    margin: 0;
}

.page-list a {
    color: #0645ad;
    text-decoration: none;
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    transition: padding-left 0.2s ease;
}

.page-list a:hover {
    text-decoration: underline;
    padding-left: 0.5rem;
}

.page-list li:last-child a {
    border-bottom: none;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }
    
    .site-header {
        padding: 0.5rem 0;
    }
    
    .site-header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 0 1rem;
    }
    
    .site-title {
        font-size: 1rem;
    }
    
    .site-content {
        padding: 1rem;
    }
    
    .entry-title {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .archive-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .front-page-content {
        padding: 1rem 1rem;
    }
    
    .news-card {
        padding: 1rem 0;
    }
    
    .news-card-title {
        font-size: 1rem;
    }
    
    .entry-content {
        font-size: 15px;
        line-height: 1.7;
    }
    
    .entry-content h2 {
        font-size: 1.5rem;
        margin: 1.5rem 0 0.75rem;
    }
    
    .entry-content h3 {
        font-size: 1.25rem;
        margin: 1.25rem 0 0.75rem;
    }
    
    .page-list {
        grid-template-columns: 1fr;
    }
    
    .child-pages-title {
        font-size: 1.1rem;
    }
    
    .front-page-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .front-page-sidebar {
        order: -1; /* Show sidebar first on mobile */
    }
}

