/**
 * Blog & Post Layout Styles
 * Modern, clean design for WordPress blog posts
 */

/* ==========================================================================
   Blog Archive / Grid Layout
   ========================================================================== */

.blog .site-main,
.archive .site-main,
.search .site-main,
.blog-grid-shortcode {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* Blog Grid Container */
.blog .posts-container,
.archive .posts-container,
.blog-grid-shortcode .posts-container {
    display: grid;
    gap: 32px;
    margin-bottom: 40px;
}

/* Default 3 Column Grid */
.blog-grid-3-columns .posts-container,
.blog .posts-container,
.archive .posts-container {
    grid-template-columns: repeat(3, 1fr);
}

/* 2 Column Grid */
.blog-grid-2-columns .posts-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 64px;
}

/* 4 Column Grid */
.blog-grid-4-columns .posts-container {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Blog Card */
.blog article.post,
.archive article.post,
.blog-grid-shortcode article.post {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog article.post:hover,
.archive article.post:hover,
.blog-grid-shortcode article.post:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Blog Card Thumbnail */
.blog article.post .post-thumbnail,
.archive article.post .post-thumbnail,
.blog-grid-shortcode article.post .post-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    margin-bottom: 0;
    border-radius: 0;
    box-shadow: none;
}

.blog article.post .post-thumbnail img,
.archive article.post .post-thumbnail img,
.blog-grid-shortcode article.post .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    border-radius: 0;
    margin: 0;
    box-shadow: none;
}

.blog article.post:hover .post-thumbnail img,
.archive article.post:hover .post-thumbnail img,
.blog-grid-shortcode article.post:hover .post-thumbnail img {
    transform: scale(1.06);
}

/* Blog Card Content */
.blog article.post .entry-header,
.archive article.post .entry-header,
.blog-grid-shortcode article.post .entry-header {
    padding: 24px 24px 0 24px;
    margin-bottom: 0;
}

.blog article.post .entry-title,
.archive article.post .entry-title,
.blog-grid-shortcode article.post .entry-title {
    color: #2A2622;
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    line-height: 32px;
    margin-bottom: 12px;
}

.blog article.post .entry-title a,
.archive article.post .entry-title a,
.blog-grid-shortcode article.post .entry-title a {
    color: #2A2622;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog article.post .entry-title a:hover,
.archive article.post .entry-title a:hover,
.blog-grid-shortcode article.post .entry-title a:hover {
    color: #651755;
}

.blog article.post .entry-meta,
.archive article.post .entry-meta,
.blog-grid-shortcode article.post .entry-meta {
    color: #655B51;
    font-family: 'Commissioner', sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
    margin-bottom: 12px;
}

/* Blog Card Excerpt */
.blog article.post .entry-summary,
.archive article.post .entry-summary,
.blog-grid-shortcode article.post .entry-summary {
    padding: 0 24px 24px;
    color: #655B51;
    font-family: 'Commissioner', sans-serif;
    font-size: 17px;
    font-style: normal;
    font-weight: 400;
    line-height: 27px;
}

.blog article.post .entry-summary p,
.archive article.post .entry-summary p,
.blog-grid-shortcode article.post .entry-summary p {
    margin-bottom: 16px;
}

/* Read More Link */
.blog article.post .entry-summary .more-link,
.archive article.post .entry-summary .more-link,
.blog-grid-shortcode article.post .entry-summary .more-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #651755;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.blog article.post .entry-summary .more-link:hover,
.archive article.post .entry-summary .more-link:hover,
.blog-grid-shortcode article.post .entry-summary .more-link:hover {
    gap: 10px;
}

.blog article.post .entry-summary .more-link::after,
.archive article.post .entry-summary .more-link::after,
.blog-grid-shortcode article.post .entry-summary .more-link::after {
    content: '→';
}

/* Category Badge */
.blog article.post .cat-links,
.archive article.post .cat-links,
.blog-grid-shortcode article.post .cat-links {
    margin-bottom: 12px;
}

.blog article.post .cat-links a,
.archive article.post .cat-links a,
.blog-grid-shortcode article.post .cat-links a {
    display: inline-block;
    padding: 4px 12px;
    background: #651755;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 999px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Pagination */
.pagination,
.navigation.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 60px;
    font-family: 'Commissioner', sans-serif;
}

.pagination .nav-links,
.navigation.pagination .nav-links {
    display: flex;
    gap: 12px;
    align-items: center;
}

.pagination a,
.pagination span,
.navigation.pagination a,
.navigation.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    background: #fff;
    color: #2A2622;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.pagination a:hover,
.navigation.pagination a:hover {
    background: #651755;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(101, 23, 85, 0.2);
}

.pagination .current,
.navigation.pagination .current {
    background: #651755;
    color: #fff;
}

/* Archive Title */
.page-header {
    text-align: center;
    margin-bottom: 60px;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2A2622;
    margin-bottom: 16px;
}

.archive-description {
    font-size: 1.125rem;
    color: #655B51;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

/* Grid Responsive Breakpoints */
@media (max-width: 1024px) {
    .blog-grid-3-columns .posts-container,
    .blog-grid-4-columns .posts-container,
    .blog .posts-container,
    .archive .posts-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog .site-main,
    .archive .site-main {
        padding: 40px 20px;
    }

    .blog-grid-2-columns .posts-container,
    .blog-grid-3-columns .posts-container,
    .blog-grid-4-columns .posts-container,
    .blog .posts-container,
    .archive .posts-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .page-title {
        font-size: 2rem;
    }
}

/* ==========================================================================
   Blog Post Container
   ========================================================================== */

.blog-post,
.single-post {
    background: #FAF9F9;
    /* padding: 30px 0; */
}

.post-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   Post Header
   ========================================================================== */

.entry-header {
    margin-bottom: 20px;
    text-align: left;
}

.entry-title {
    color: #2A2622;
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 40px;
    font-style: normal;
    font-weight: 400;
    line-height: 56px;
    line-height: 1.2;
}

.entry-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9375rem;
    color: #655B51;
    font-family: 'Commissioner', sans-serif;
}

.entry-meta .posted-on,
.entry-meta .byline,
.entry-meta .cat-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.entry-meta a {
    color: #651755;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.entry-meta a:hover {
    opacity: 0.7;
}

/* ==========================================================================
   Featured Image
   ========================================================================== */

.post-thumbnail {
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   Article Content
   ========================================================================== */

/* Single Post Page - Card Design */
.single .entry-content,
.single-post .entry-content {
    font-size: 1.125rem;
    line-height: 1.7;
    padding: 32px;
    color: #2A2622;
    font-family: Georgia, 'Times New Roman', Times, serif;
    background: #F7F5F3;
    border: 2px solid #E7E2DC;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin-top: 16px;
}

/* Blog Grid/Archive Page - Simple Design */
.blog .entry-content,
.archive .entry-content,
.search .entry-content {
    font-size: 1rem;
    line-height: 1.6;
    padding: 0 24px;
    color: #655B51;
    font-family: 'Commissioner', sans-serif;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    margin-top: 0;
}

.entry-content > * {
    margin-bottom: 16px;
    font-family: "Commissioner", Sans-serif;
}

.entry-content p {
    margin-bottom: 16px;
    color: #655B51;
    font-family: "Commissioner", Sans-serif;
    font-size: 17px;
    font-style: normal;
    font-weight: 400;
    line-height: 27px;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    font-family: "Georgia", Sans-serif;
    font-size: 40px;
    font-weight: 400;
    font-style: normal;
    line-height: 56px;
    color: #2A2622;
}

.entry-content h2 {
    font-size: 2rem;
}

.entry-content h3 {
    font-size: 1.625rem;
}

.entry-content h4 {
    font-size: 1.375rem;
}

.entry-content h5 {
    font-size: 1.125rem;
}

.entry-content h6 {
    font-size: 1rem;
}

/* Links */
.entry-content a {
    color: #651755;
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.entry-content a:hover {
    opacity: 0.8;
}

/* Images in Content */
.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.entry-content figure {
    margin: 16px 0;
}

.entry-content figcaption {
    font-size: 0.875rem;
    color: #655B51;
    text-align: center;
    margin-top: 8px;
    font-style: italic;
    font-family: 'Commissioner', sans-serif;
}

/* WordPress Image Alignment */
.entry-content .alignleft {
    float: left;
    margin: 8px 24px 24px 0;
}

.entry-content .alignright {
    float: right;
    margin: 8px 0 24px 24px;
}

.entry-content .aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.entry-content .alignwide {
    margin-left: -80px;
    margin-right: -80px;
    max-width: calc(100% + 160px);
}

.entry-content .alignfull {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    max-width: 100vw;
}

/* Lists */
.entry-content ul,
.entry-content ol {
    margin-bottom: 24px;
    padding-left: 32px;
}

.entry-content ul {
    list-style-type: disc;
}

.entry-content ol {
    list-style-type: decimal;
}

.entry-content li {
    margin-bottom: 5px;
    line-height: 21px;
}
.entry-content li p {
    margin: 0;
}

.entry-content li ul,
.entry-content li ol {
    margin-top: 12px;
    margin-bottom: 12px;
}

/* Blockquotes */
.entry-content blockquote {
    border-left: 4px solid #651755;
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    font-size: 1.25rem;
    color: #655B51;
    line-height: 1.6;
}

.entry-content blockquote p {
    margin-bottom: 12px;
}

.entry-content blockquote cite {
    display: block;
    font-size: 0.9375rem;
    color: #655B51;
    margin-top: 12px;
    font-style: normal;
}

/* Code Blocks */
.entry-content pre {
    background: #2A2622;
    color: #FAF9F9;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 24px 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.entry-content code {
    background: #E9E7E2;
    color: #651755;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.entry-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

/* Tables */
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 32px 0;
    font-family: 'Commissioner', sans-serif;
}

.entry-content table th,
.entry-content table td {
    padding: 12px 16px;
    border: 1px solid #E9E7E2;
    text-align: left;
}

.entry-content table th {
    background: #F7F5F3;
    font-weight: 600;
    color: #2A2622;
}

.entry-content table tr:hover {
    background: #FAF9F9;
}

/* ==========================================================================
   Post Footer / Tags
   ========================================================================== */

/* Single Post Page - Card Footer */
.single .entry-footer,
.single-post .entry-footer {
    display: none;
}

/* Blog Grid/Archive Page - Hide or Minimal Footer */
.blog .entry-footer,
.archive .entry-footer,
.search .entry-footer {
    padding: 24px 32px;
    background: #F7F5F3;
}

.tags-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.tags-links span {
    font-weight: 600;
    color: #2A2622;
    font-family: 'Commissioner', sans-serif;
}

.tags-links a {
    display: inline-block;
    padding: 6px 14px;
    background: #E9E7E2;
    color: #655B51;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Commissioner', sans-serif;
}

.tags-links a:hover {
    background: #651755;
    color: #fff;
}

/* ==========================================================================
   Comments Section - Leave a Reply
   ========================================================================== */

.comments-area {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 2px solid #E9E7E2;
}

.comments-title,
.comment-reply-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #2A2622;
    margin-bottom: 20px;
}

/* Individual Comments */
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
}

.comment-list .comment {
    margin-bottom: 30px;
    padding: 24px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.comment-author .avatar {
    border-radius: 50%;
    width: 48px;
    height: 48px;
}

.comment-author .fn {
    font-weight: 600;
    color: #2A2622;
    font-size: 1.0625rem;
    font-style: normal;
}

.comment-metadata {
    font-size: 0.875rem;
    color: #655B51;
    font-family: 'Commissioner', sans-serif;
}

.comment-metadata a {
    color: inherit;
    text-decoration: none;
}

.comment-metadata a:hover {
    color: #651755;
}

.comment-content {
    margin-top: 16px;
    font-size: 1rem;
    line-height: 1.7;
    color: #2A2622;
    font-family: 'Commissioner', sans-serif;
}

.comment-content p {
    margin-bottom: 12px;
}

.reply {
    margin-top: 12px;
}

.reply a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: #E9E7E2;
    color: #2A2622;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Commissioner', sans-serif;
}

.reply a:hover {
    background: #651755;
    color: #fff;
}

/* Nested Comments */
.comment-list .children {
    list-style: none;
    margin-top: 20px;
    margin-left: 40px;
}

/* Comment Form - Leave a Reply */
.comment-respond {
    margin-top: 40px;
    padding: 32px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.comment-form {
    display: grid;
    gap: 5px;
}

.comment-form-comment {
    grid-column: 1 / -1;
}

.comment-form label {
    display: block;
    font-weight: 600;
    color: #2A2622;
    margin-bottom: 8px;
    font-family: 'Commissioner', sans-serif;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E9E7E2;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Commissioner', sans-serif;
    transition: border-color 0.3s ease;
    background: #FAF9F9;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #651755;
    background: #fff;
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.form-submit {
    margin-top: 10px;
}

.form-submit input[type="submit"] {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    background: #651755;
    color: #fff !important;
    border: none;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Commissioner', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-submit input[type="submit"]:hover {
    background: #541447;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(101, 23, 85, 0.3);
}

/* ==========================================================================
   Post Navigation
   ========================================================================== */

.post-navigation {
    margin-top: 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.nav-previous,
.nav-next {
    padding: 24px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.nav-previous:hover,
.nav-next:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.nav-next {
    text-align: right;
}

.post-navigation a {
    text-decoration: none;
    color: #2A2622;
}

.post-navigation .nav-subtitle {
    display: block;
    font-size: 0.875rem;
    color: #655B51;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Commissioner', sans-serif;
}

.post-navigation .nav-title {
    font-size: 1.125rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.post-navigation a:hover .nav-title {
    color: #651755;
}

/* ==========================================================================
   Sidebar Widgets (Optional)
   ========================================================================== */

.widget-area {
    margin-top: 60px;
}

.widget {
    padding: 28px;
    background: #fff;
    border-radius: 16px;
    margin-bottom: 32px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.widget-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2A2622;
    margin-bottom: 20px;
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget li {
    margin-bottom: 12px;
}

.widget a {
    color: #655B51;
    text-decoration: none;
    transition: color 0.3s ease;
    font-family: 'Commissioner', sans-serif;
}

.widget a:hover {
    color: #651755;
}

/* Search Widget */
.widget_search form {
    display: flex;
    gap: 8px;
}

.widget_search input[type="search"] {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid #E9E7E2;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Commissioner', sans-serif;
}

.widget_search input[type="submit"] {
    padding: 10px 24px;
    background: #651755;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Commissioner', sans-serif;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .blog-post,
    .single-post {
        padding: 40px 0;
    }

    .entry-title {
        color: #2A2622;
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 40px;
    font-style: normal;
    font-weight: 400;
    line-height: 56px;
    }

    .entry-meta {
        flex-wrap: wrap;
        gap: 12px;
    }

    .entry-content {
        font-size: 1rem;
    }

    .entry-content h2 {
        font-size: 1.625rem;
    }

    .entry-content h3 {
        font-size: 1.375rem;
    }

    .entry-content .alignwide,
    .entry-content .alignfull {
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
    }

    .comment-list .children {
        margin-left: 20px;
    }

    .post-navigation {
        grid-template-columns: 1fr;
    }

    .nav-next {
        text-align: left;
    }

    .comments-title,
    .comment-reply-title {
        font-size: 1.5rem;
    }
    .blog .site-main,
.archive .site-main,
.search .site-main,
.blog-grid-shortcode {
    padding: 0px;
}
}

@media (max-width: 480px) {
    .entry-title {
        font-size: 1.75rem;
    }

    .entry-content img {
        margin: 20px 0;
    }

    .comment-respond {
        padding: 20px;
    }

    .form-submit input[type="submit"] {
        width: 100%;
    }
    .blog .site-main,
.archive .site-main,
.search .site-main,
.blog-grid-shortcode {
    padding: 0px;
}
}
