/* K2 Theme Stylesheet - Craft CMS Version */
/* Based on the classic K2 WordPress theme */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
}

body {
    font: 75%/1.5em "Lucida Grande", Verdana, Arial, Sans-Serif;
    color: #333;
    background: #fff;
    text-align: center;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-weight: normal;
    margin: 0 0 15px 0;
}

h1 { font-size: 2.2em; }
h2 { font-size: 1.8em; }
h3 { font-size: 1.5em; }
h4 { font-size: 1.3em; }
h5 { font-size: 1.1em; }
h6 { font-size: 1em; }

p {
    margin: 0 0 15px 0;
    line-height: 1.6em;
}

a {
    color: #105CB6;
    text-decoration: underline;
}

a:hover {
    color: #D54E21;
}

/* Code and Preformatted Text */
code, pre {
    font: 1.1em "Courier New", Courier, Fixed;
    background: #f8f8f8;
}

code {
    padding: 2px 4px;
}

pre {
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    overflow: auto;
}

/* Lists */
ul, ol {
    margin: 0 0 15px 35px;
}

li {
    margin: 0 0 5px 0;
}

/* Blockquotes */
blockquote {
    margin: 15px 30px;
    padding: 10px 20px;
    border-left: 5px solid #ddd;
    font-style: italic;
    background: #f9f9f9;
}

/* Images */
img {
    border: 0;
    max-width: 100%;
    height: auto;
}

/* Page Structure */
#page {
    width: 770px;
    margin: 0 auto;
    text-align: left;
    background: #fff;
}

/* Header */
#header {
    width: 770px;
    margin: 0;
    padding: 0;
    background: #73A8D0 url('k2-header-bg.jpg') top left repeat-x;
    border-bottom: 1px solid #4A7BA7;
}

#header .sleeve {
    padding: 20px 30px 15px 30px;
    position: relative;
}

/* Blog Title */
#blog-title {
    font-size: 2.5em;
    font-weight: bold;
    margin: 0 0 5px 0;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

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

#blog-title a:hover {
    color: #fff;
    text-decoration: none;
}

/* Blog Description */
#blog-description {
    color: #E8F4FD;
    font-size: 1.1em;
    margin: 0 0 15px 0;
    font-style: italic;
}

/* Navigation Menu */
#menu {
    list-style: none;
    margin: 15px 0 0 0;
    padding: 0;
    float: left;
}

#menu li {
    float: left;
    margin: 0 15px 0 0;
    padding: 0;
}

#menu li a {
    color: #E8F4FD;
    font-weight: bold;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 3px;
    transition: background-color 0.3s ease;
}

#menu li a:hover,
#menu li.current_page_item a {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

/* Container and Content Area */
#container {
    width: 770px;
    margin: 0;
    padding: 0;
    clear: both;
}

#container .sleeve {
    padding: 0;
    overflow: hidden;
}

#content {
    width: 500px;
    float: left;
    padding: 20px 0 20px 30px;
}

/* Sidebar */
#sidebar {
    width: 200px;
    float: right;
    padding: 20px 30px 20px 0;
    font-size: 0.9em;
}

/* Post Styles */
.post {
    margin: 0 0 30px 0;
    padding: 0 0 25px 0;
    border-bottom: 1px dotted #ccc;
}

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

/* Entry Title */
.entrytitle {
    font-size: 1.6em;
    font-weight: bold;
    color: #333;
    margin: 0 0 10px 0;
    line-height: 1.3em;
}

.entrytitle a {
    color: #333;
    text-decoration: none;
}

.entrytitle a:hover {
    color: #105CB6;
}

/* Entry Text */
.entrytext {
    line-height: 1.6em;
    margin: 0 0 15px 0;
}

.entrytext p {
    margin: 0 0 15px 0;
}

.entrytext h1, .entrytext h2, .entrytext h3, 
.entrytext h4, .entrytext h5, .entrytext h6 {
    margin: 20px 0 10px 0;
}

/* More Link */
.more-link {
    text-align: right;
    margin: 10px 0 0 0;
}

.more-link a {
    font-weight: bold;
    font-size: 0.9em;
}

/* Post Feedback */
.feedback {
    margin: 15px 0 0 0;
    text-align: right;
}

.feedback a {
    color: #666;
    font-size: 0.9em;
    text-decoration: none;
    padding: 3px 8px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.feedback a:hover {
    background: #e0e0e0;
    color: #333;
}

/* Entry Meta */
.entrymeta {
    margin: 15px 0 0 0;
    padding: 10px 0 0 0;
    border-top: 1px solid #eee;
    font-size: 0.85em;
    color: #666;
}

.postinfo {
    margin: 0 0 5px 0;
}

.postinfo span {
    margin: 0 10px 0 0;
}

.postinfo a {
    color: #666;
}

.postinfo a:hover {
    color: #105CB6;
}

.postmetadata {
    color: #999;
}

.postmetadata span {
    margin: 0 10px 0 0;
}

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

.postmetadata a:hover {
    color: #666;
    text-decoration: underline;
}

/* Post Actions */
.postactions a {
    margin: 0 5px 0 0;
    font-size: 0.9em;
}

/* Navigation */
.navigation {
    clear: both;
    margin: 20px 0;
    padding: 10px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.alignleft {
    float: left;
}

.alignright {
    float: right;
}

.navigation a {
    font-weight: bold;
    padding: 5px 10px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    text-decoration: none;
    border-radius: 3px;
}

.navigation a:hover {
    background: #e5e5e5;
}

/* Sidebar Widgets */
.widget {
    margin: 0 0 25px 0;
    padding: 0 0 20px 0;
    border-bottom: 1px dotted #ddd;
}

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

.widgettitle {
    font-size: 1.1em;
    font-weight: bold;
    color: #333;
    margin: 0 0 10px 0;
    padding: 0 0 5px 0;
    border-bottom: 1px solid #eee;
}

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

.widget li {
    margin: 0 0 5px 0;
    padding: 3px 0;
    border-bottom: 1px dotted #eee;
}

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

.widget a {
    color: #666;
    text-decoration: none;
}

.widget a:hover {
    color: #105CB6;
    text-decoration: underline;
}

/* Search Widget */
.widget_search form {
    margin: 0;
    padding: 0;
}

.widget_search input[type="text"] {
    width: 140px;
    padding: 4px;
    border: 1px solid #ccc;
    font-size: 0.9em;
}

.widget_search input[type="submit"] {
    padding: 4px 8px;
    background: #f0f0f0;
    border: 1px solid #ccc;
    font-size: 0.9em;
    cursor: pointer;
}

.widget_search input[type="submit"]:hover {
    background: #e0e0e0;
}

/* Category List */
.cat-item {
    padding: 2px 0;
}

/* Archives */
.archive-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.archive-list > li {
    margin: 0 0 15px 0;
    padding: 0 0 10px 0;
    border-bottom: 1px solid #eee;
}

.archive-posts {
    list-style: none;
    margin: 10px 0 0 20px;
    padding: 0;
}

.archive-posts li {
    margin: 0 0 3px 0;
    padding: 2px 0;
    border-bottom: 1px dotted #f0f0f0;
    font-size: 0.9em;
}

.archive-date {
    color: #999;
    font-size: 0.85em;
    float: right;
}

/* Category Archive */
.category-archive,
.author-archive {
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-archive > li,
.author-archive > li {
    margin: 0 0 20px 0;
    padding: 0 0 15px 0;
    border-bottom: 1px solid #eee;
}

.category-posts,
.author-posts {
    list-style: none;
    margin: 10px 0 0 20px;
    padding: 0;
}

.category-posts li,
.author-posts li {
    margin: 0 0 5px 0;
    padding: 3px 0;
    font-size: 0.9em;
}

.view-more {
    font-style: italic;
    color: #666;
}

/* Tag Cloud */
.tag-cloud {
    line-height: 1.8em;
}

.tag-link {
    margin: 0 5px 5px 0;
    padding: 2px 6px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    text-decoration: none;
    font-size: 0.9em;
    border-radius: 3px;
    display: inline-block;
}

.tag-link:hover {
    background: #e0e0e0;
    text-decoration: none;
}

.tag-size-1 { font-size: 0.8em; }
.tag-size-2 { font-size: 0.9em; }
.tag-size-3 { font-size: 1.0em; }
.tag-size-4 { font-size: 1.1em; font-weight: bold; }

/* Recent Posts Archive */
.recent-posts-archive {
    list-style: none;
    margin: 0;
    padding: 0;
}

.recent-posts-archive li {
    margin: 0 0 15px 0;
    padding: 0 0 10px 0;
    border-bottom: 1px dotted #ddd;
}

.recent-posts-archive h4 {
    margin: 0 0 5px 0;
    font-size: 1.1em;
}

.post-meta {
    font-size: 0.85em;
    color: #666;
    margin: 0 0 5px 0;
}

.post-excerpt {
    font-size: 0.9em;
    color: #666;
    line-height: 1.4em;
}

/* Search Results */
.search-result {
    border-left: 3px solid #73A8D0;
    padding-left: 15px;
}

.search-results-info {
    background: #f9f9f9;
    padding: 10px 15px;
    margin: 0 0 20px 0;
    border: 1px solid #eee;
    font-weight: bold;
    color: #666;
}

.search-match-info {
    font-size: 0.85em;
    color: #999;
    margin: 5px 0;
}

.search-score {
    background: #f0f0f0;
    padding: 2px 5px;
    border-radius: 3px;
}

/* Search Form */
.search-form-container {
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.search-input-wrapper input[type="text"] {
    width: 300px;
    padding: 8px;
    border: 1px solid #ccc;
    font-size: 1em;
    margin: 0 10px 0 0;
}

.search-input-wrapper input[type="submit"] {
    padding: 8px 15px;
    background: #73A8D0;
    color: #fff;
    border: 1px solid #4A7BA7;
    font-size: 1em;
    cursor: pointer;
    border-radius: 3px;
}

.search-input-wrapper input[type="submit"]:hover {
    background: #5A92C0;
}

/* Category Suggestions */
.category-suggestions {
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-suggestions li {
    display: inline-block;
    margin: 0 10px 5px 0;
}

.category-suggestions a {
    padding: 3px 8px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    text-decoration: none;
    border-radius: 3px;
    font-size: 0.9em;
}

.category-suggestions a:hover {
    background: #e0e0e0;
}

/* Comments */
#comments {
    margin: 30px 0 0 0;
    padding: 20px 0 0 0;
    border-top: 2px solid #eee;
}

#comments-title {
    font-size: 1.4em;
    margin: 0 0 20px 0;
    color: #333;
}

.commentlist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.commentlist li {
    margin: 0 0 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 5px;
}

.commentlist li.even {
    background: #f5f5f5;
}

.commentmeta {
    margin: 0 0 10px 0;
    font-size: 0.9em;
    color: #666;
}

.commentauthor {
    font-weight: bold;
    color: #333;
    margin: 0 10px 0 0;
}

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

.commentdate a:hover {
    color: #666;
}

.commenttext {
    line-height: 1.5em;
}

/* Comment Form */
#respond {
    margin: 30px 0 0 0;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
}

#reply-title {
    margin: 0 0 15px 0;
    font-size: 1.3em;
}

.comment-notes {
    font-size: 0.9em;
    color: #666;
    margin: 0 0 15px 0;
}

.required {
    color: #d54e21;
    font-weight: bold;
}

#commentform p {
    margin: 0 0 15px 0;
}

#commentform label {
    display: block;
    margin: 0 0 5px 0;
    font-weight: bold;
    color: #333;
}

#commentform input[type="text"],
#commentform input[type="email"],
#commentform input[type="url"] {
    width: 250px;
    padding: 6px;
    border: 1px solid #ccc;
    font-size: 1em;
}

#commentform textarea {
    width: 400px;
    height: 150px;
    padding: 6px;
    border: 1px solid #ccc;
    font-size: 1em;
    font-family: Arial, sans-serif;
}

#commentform input[type="submit"] {
    padding: 8px 15px;
    background: #73A8D0;
    color: #fff;
    border: 1px solid #4A7BA7;
    font-size: 1em;
    cursor: pointer;
    border-radius: 3px;
}

#commentform input[type="submit"]:hover {
    background: #5A92C0;
}

/* Related Posts */
.related-posts {
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 5px;
}

.related-posts h4 {
    margin: 0 0 10px 0;
    font-size: 1.1em;
    color: #333;
}

.related-posts ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.related-posts li {
    margin: 0 0 5px 0;
    padding: 3px 0;
}

/* Sharing Options */
.sharing {
    margin: 20px 0;
    padding: 15px;
    background: #f0f8ff;
    border: 1px solid #cde;
    border-radius: 5px;
}

.sharing h4 {
    margin: 0 0 10px 0;
    font-size: 1.1em;
    color: #333;
}

.sharing-options {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sharing-options li {
    display: inline-block;
    margin: 0 10px 5px 0;
}

.sharing-options a {
    padding: 5px 10px;
    background: #e6f3ff;
    border: 1px solid #b3d9ff;
    text-decoration: none;
    font-size: 0.9em;
    border-radius: 3px;
}

.sharing-options a:hover {
    background: #d1e9ff;
}

/* Footer */
#footer {
    width: 770px;
    margin: 0;
    padding: 0;
    background: #333;
    color: #ccc;
    font-size: 0.85em;
    clear: both;
}

#footer .sleeve {
    padding: 15px 30px;
    text-align: center;
}

#footer p {
    margin: 0;
    line-height: 1.4em;
}

#footer a {
    color: #ccc;
    text-decoration: none;
}

#footer a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Archive Info */
.archive-info {
    margin: 20px 0;
    padding: 10px 15px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    font-size: 0.9em;
    color: #666;
    border-radius: 3px;
}

/* Category Info */
.category-info {
    padding: 10px;
    background: #f0f8ff;
    border: 1px solid #cde;
    border-radius: 3px;
    margin: 10px 0;
}

/* Responsive Design */
@media screen and (max-width: 800px) {
    #page {
        width: 95%;
        max-width: 770px;
    }
    
    #header {
        width: 100%;
    }
    
    #container {
        width: 100%;
    }
    
    #content {
        width: 100%;
        float: none;
        padding: 20px;
    }
    
    #sidebar {
        width: 100%;
        float: none;
        padding: 0 20px 20px 20px;
    }
    
    .search-input-wrapper input[type="text"] {
        width: 200px;
    }
    
    #commentform input[type="text"],
    #commentform input[type="email"],
    #commentform input[type="url"] {
        width: 100%;
        max-width: 250px;
    }
    
    #commentform textarea {
        width: 100%;
        max-width: 400px;
    }
}

/* Print Styles */
@media print {
    #sidebar,
    #footer,
    .navigation,
    .postactions,
    .sharing,
    #respond {
        display: none;
    }
    
    #page {
        width: 100%;
    }
    
    #content {
        width: 100%;
        float: none;
        padding: 0;
    }
    
    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }
    
    a {
        color: #000;
        text-decoration: none;
    }
    
    .entrytitle {
        border-bottom: 1pt solid #000;
        padding-bottom: 5pt;
    }
}