/* Reset and Base Styles */
body {
    background-color: #fff;
    font-size: 14px;
    font-family: "Lora", Georgia, "Times New Roman", Times, serif;
    margin: 0;
    padding: 0;
    color: #333;
}

a {
    color: #685;
    text-decoration: none;
}

a:hover,
a:active {
    text-decoration: underline;
    color: #685;
}

/* Site Header - Green Background */
.site-header {
    background: #80b080;
    padding: 16px 0;
    margin-bottom: 20px;
}

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

.site-title {
    font-size: 36px;
    font-weight: normal;
    margin: 0;
    color: #fff;
    display: inline-block;
    border-bottom: 1px solid #fff;
    padding-bottom: 3px;
    padding-left: 1rem;
    padding-right: 1rem;
}

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

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

.site-subtitle {
    font-size: 16px;
    color: #fff;
    margin: 8px 0 0 0;
    font-weight: normal;
    opacity: 0.95;
}

.site-tagline,
.site-tagline a {
    font-size: 13px;
    color: #ddd;
    margin: 5px 0 0 0;
    font-weight: normal;
    font-style: italic;
    opacity: 0.85;
}

/* Main Blog Container - Three Column Layout */
.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0 40px 20px;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: clamp(40px, 5vw, 100px);
}

.content-wrapper {
    min-width: 0;
}

.blog-sidebar {
    min-width: 0;
}

/* Blog Posts with Date Column */
.blog-posts {
    margin-bottom: 30px;
}

.blog-post-summary {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 20px;
    margin-bottom: 50px;
    padding-bottom: 40px;
    border-bottom: 1px solid #ddd;
}

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

.post-date-col {
    text-align: left;
    padding-top: 5px;
}

.post-date-col time {
    display: block;
    font-size: 13px;
    color: #888;
    line-height: 1.4;
}

.post-content-col {
    min-width: 0;
}

/* Individual Blog Post Layout */
.blog-single .blog-post {
    display: block;
}

.blog-single .post-meta time {
    font-size: 13px;
    color: #888;
}

/* Post Navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e5e5;
    gap: 20px;
}

.nav-previous {
    flex: 1;
    text-align: left;
}

.nav-next {
    flex: 1;
    text-align: right;
}

.nav-link {
    color: #685;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    display: inline-block;
}

.nav-link:hover {
    color: #80b080;
    text-decoration: underline;
}

/* Archive Headers */
.archive-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #80b080;
}

.archive-header h2 {
    font-size: 24px;
    margin: 0;
    color: #333;
    font-weight: normal;
}

.blog-intro {
    margin-bottom: 30px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-left: 4px solid #80b080;
}

/* Post Titles and Content */
.post-header {
    margin-bottom: 15px;
}

.post-title {
    font-size: 24px;
    margin: 0 0 10px 0;
    font-weight: normal;
    line-height: 1.4;
}

.post-title a {
    color: #685;
    text-decoration: none;
}

.post-title a:hover {
    color: #685;
    text-decoration: underline;
}

.blog-single .post-title {
    font-size: 24px;
}

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

.post-categories {
    font-style: italic;
}

.post-comment-count {
    font-style: italic;
}

.post-categories + .post-comment-count::before {
    content: " \2014 "; /* em-dash separator */
}

.post-comment-count a {
    text-decoration: none;
}

.post-comment-count a:hover {
    text-decoration: underline;
}

.category-link {
    color: #685;
    text-decoration: none;
    font-weight: normal;
}

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

.post-intro,
.post-excerpt {
    font-size: 15px;
    line-height: 1.7;
    color: #333;
    margin-bottom: 15px;
}

.read-more {
    display: inline-block;
    color: #685;
    font-weight: normal;
    font-size: 14px;
}

.read-more:hover {
    text-decoration: underline;
}

/* Post Content Styling */
.post-content {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 1em;
}

.post-content p {
    margin-bottom: 1.2em;
}

.post-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    /* border: 1px solid #ddd; */
}

img.left {
    float: left;
}

img.right {
    float: right;
}

/* WordPress image alignment classes */
.post-content .alignright {
    float: right;
    margin: 5px 0 20px 25px;
}

.post-content .alignleft {
    float: left;
    margin: 5px 25px 20px 0;
}

.post-content .aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.post-content .alignnone {
    margin: 5px 0 20px 0;
}

/* Clear floats after post content */
.post-content::after {
    content: "";
    display: table;
    clear: both;
}

/* WordPress image captions */
.post-content .wp-caption {
    max-width: 100%;
    border: 1px solid #ddd;
    padding: 4px;
    background: #f9f9f9;
}

.post-content .wp-caption img {
    border: none;
    margin: 0;
    display: block;
}

.post-content .wp-caption-text {
    font-size: 12px;
    color: #888;
    text-align: center;
    margin: 4px 0 2px;
    font-style: italic;
}

.post-content pre {
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 15px;
    overflow-x: auto;
    font-size: 13px;
}

.post-content code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: "Courier New", monospace;
    font-size: 13px;
}

.post-content pre code {
    background: none;
    padding: 0;
}

.post-content blockquote {
    border-left: 4px solid #80b080;
    margin: 20px 0;
    padding: 10px 20px;
    background: #f8f9fa;
    font-style: italic;
}

.responsive-object {
    position: relative;
}

.responsive-object iframe,
.responsive-object object,
.responsive-object embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* .post-content .responsive-object,
.post-content .embed {
  max-width: 100%;
  width: 100%;
}

.post-content .responsive-object iframe,
.post-content .embed iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  min-height: 450px;
} */

.post-tags {
    padding: 15px 0;
    border-top: 1px solid #e5e5e5;
    margin-top: 20px;
}

.tags-label {
    font-weight: normal;
    color: #666;
    margin-right: 10px;
}

.tag-link {
    display: inline-block;
    color: #685;
    text-decoration: none;
    font-size: 13px;
    margin-right: 8px;
}

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

/* Related Posts */
.related-posts {
    margin-top: 2em;
    padding-top: 2em;
    border-top: 1px solid #d5d5d5;
    font-size: 80%;
    color: #888;
}

.related-posts-label {
    padding: 0.5em 0;
    font-style: italic;
}

.related-posts-list {
    list-style: inside;
    margin: 4px 0 0 0;
    padding: 0;
}

.related-posts-list li {
    margin-bottom: 2px;
}

.related-posts-list a {
    /* color: #666; */
    text-decoration: none;
}

.related-posts-list a:hover {
    text-decoration: underline;
    color: #444;
}

/* On single post pages, give a bit more breathing room */
.blog-single .related-posts {
    margin-top: 25px;
    padding-top: 20px;
}

/* Comments Section */
.comments-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e5e5e5;
}

.comments-heading {
    font-size: 24px;
    margin-bottom: 25px;
    font-weight: normal;
}

.comment {
    margin-bottom: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 3px;
}

.comment-reply {
    margin-left: 40px;
    border-left: 3px solid #80b080;
}

.comment-reply-2 {
    margin-left: 80px;
    border-left: 3px solid #80b080;
}

.comment-meta {
    margin-bottom: 10px;
    font-size: 13px;
}

.comment-author {
    font-weight: normal;
    color: #333;
    margin-right: 10px;
}

.comment-author a {
    color: #685;
    text-decoration: none;
}

.comment-author a:hover {
    text-decoration: underline;
}

.comment-meta time {
    color: #888;
    font-size: 12px;
}

.comment-content {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

.comment-actions {
    margin-top: 6px;
}

.reply-link {
    font-size: 13px;
    color: #685;
    text-decoration: none;
}

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

/* Comment Form */
.comment-form-section {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
}

.comment-form-section h2 {
    font-size: 24px;
    font-weight: normal;
    margin-bottom: 20px;
}

.comment-messages {
    margin-bottom: 20px;
}

.comment-message {
    padding: 10px 14px;
    border-radius: 3px;
    font-size: 14px;
}

.comment-message.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.comment-message.error {
    background: #fce4ec;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.reply-indicator {
    margin-bottom: 15px;
    padding: 8px 12px;
    background: #f0f7f0;
    border-left: 3px solid #80b080;
    font-size: 14px;
}

.reply-indicator a {
    margin-left: 10px;
    color: #c62828;
    font-size: 13px;
}

.comment-form .form-group {
    display: flex;
    align-items: baseline;
    margin-bottom: 20px;
    gap: 12px;
}

.comment-form label {
    flex: 0 0 200px;
    font-size: 14px;
    color: #333;
    text-align: right;
}

.comment-form label small {
    color: #888;
    font-weight: normal;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-family: inherit;
    font-size: 14px;
    box-sizing: border-box;
}

.comment-input-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.comment-input-wrapper textarea {
    flex: none;
    width: 100%;
}

.formatting-hint {
    margin-top: 4px;
    color: #888;
    font-size: 12px;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: #80b080;
    outline: none;
    box-shadow: 0 0 3px rgba(128, 176, 128, 0.4);
}

.remember-me-label {
    flex: 1;
    font-size: 14px;
    color: #555;
    cursor: pointer;
}

.remember-me-label input[type="checkbox"] {
    margin-right: 6px;
    vertical-align: middle;
}

.comment-submit {
    margin-left: 212px;
    background: #80b080;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 3px;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
}

.comment-submit:hover {
    background: #6a9a6a;
}

/* Sidebar Widgets */
.sidebar-widget {
    margin-bottom: 25px;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #e5e5e5;
    border-radius: 3px;
}

.sidebar-widget h3 {
    font-size: 16px;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #80b080;
    font-weight: normal;
}

.sidebar-widget p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

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

.sidebar-widget li {
    margin-bottom: 8px;
    font-size: 14px;
}

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

.sidebar-widget a:hover {
    text-decoration: underline;
    color: #80b080;
}

/* Search Form */
.search-form {
    display: flex;
    gap: 8px;
}

.search-input {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 13px;
    font-family: inherit;
}

.search-button {
    padding: 6px 15px;
    background: #80b080;
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 13px;
    cursor: pointer;
    font-weight: normal;
}

.search-button:hover {
    background: #6a9a6a;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid #e5e5e5;
    margin-top: 30px;
}

.pagination-link {
    color: #685;
    text-decoration: none;
    font-weight: normal;
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
}

.pagination-link:hover {
    background: #80b080;
    color: white;
    border-color: #80b080;
    text-decoration: none;
}

.pagination-info {
    color: #666;
    font-size: 13px;
}

/* Search page */
.search-heading {
    font-size: 24px;
    font-weight: normal;
    margin-bottom: 20px;
}

.search-form-main {
    margin-bottom: 20px;
}

.search-summary {
    color: #666;
    margin-bottom: 20px;
}

.search-result {
    grid-template-columns: 1fr;
}

.search-result-excerpt {
    color: #555;
    margin-top: 4px;
}

/* Footer */
.blog-footer {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 20px;
    border-top: 1px solid #ddd;
    text-align: center;
    color: #666;
    font-size: 13px;
}

/* Responsive Design */
@media (max-width: 900px) {
    .blog-container {
        grid-template-columns: 1fr;
        padding-right: 20px;
    }

    .blog-post-summary {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .site-title {
        font-size: 28px;
    }

    .post-title {
        font-size: 24px;
    }

    .blog-single .post-title {
        font-size: 26px;
    }

    .comment-reply {
        margin-left: 20px;
    }
}

@media (max-width: 600px) {
    .site-header-inner,
    .blog-container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .site-title {
        font-size: 24px;
    }

    .post-title {
        font-size: 20px;
    }

    .blog-single .post-title {
        font-size: 22px;
    }

    .pagination {
        flex-direction: column;
        gap: 10px;
    }

    .sidebar-widget {
        padding: 12px;
    }

    .comment-form .form-group {
        flex-direction: column;
        gap: 4px;
    }

    .comment-form label {
        flex: none;
        text-align: left;
    }

    .comment-submit {
        margin-left: 0;
    }
}
