/* Single Post Template Styles */
.single-post-template {
    background: #f8f9fa;
    padding: 40px 0;
}

.single-post-container {
    margin: 0 auto;
    padding: 0 20px;
}

.single-post-article {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 40px;
}

/* Centered Header */
.entry-header.centered {
    text-align: center;
    padding: 40px 40px 30px;
    border-bottom: 1px solid #e9ecef;
}

.entry-category {
    margin-bottom: 15px;
}
.entry-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    color: #2c3e50;
    margin: 0 0 20px;
    word-wrap: break-word;
}

.entry-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #6c757d;
    flex-wrap: wrap;
}

.entry-meta .posted-on,
.entry-meta .byline {
    display: inline-flex;
    align-items: center;
}

.entry-meta .meta-separator {
    color: #dee2e6;
}

.entry-meta .author {
    font-weight: 600;
    color: #495057;
}

/* Featured Image */
.post-thumbnail {
    width: 100%;
    overflow: hidden;
}

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

/* Content */
.entry-content {
    padding: 40px;
    font-size: 17px;
    line-height: 1.8;
    color: #333;
}

.entry-content p {
    margin-bottom: 1.5em;
}

.entry-content h2 {
    font-size: 1.8rem;
    margin-top: 2em;
    margin-bottom: 1em;
    color: #2c3e50;
    font-weight: 700;
}

.entry-content h3 {
    font-size: 1.5rem;
    margin-top: 1.8em;
    margin-bottom: 0.8em;
    color: #34495e;
    font-weight: 600;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5em 0;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1.5em;
    padding-left: 2em;
}

.entry-content li {
    margin-bottom: 0.5em;
}

.entry-content blockquote {
    border-left: 4px solid #667eea;
    padding: 1em 1.5em;
    margin: 1.5em 0;
    background: #f8f9fa;
    font-style: italic;
    color: #495057;
}

/* Classic Editor - Tables Support */
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    background: #fff;
    border: 1px solid #dee2e6;
}

.entry-content table th {
    background: #f8f9fa;
    font-weight: 600;
    padding: 12px 15px;
    text-align: left;
    border: 1px solid #dee2e6;
    color: #2c3e50;
}

.entry-content table td {
    padding: 10px 15px;
    border: 1px solid #dee2e6;
    color: #333;
}

.entry-content table tr:nth-child(even) {
    background: #f8f9fa;
}

.entry-content table tr:hover {
    background: #e9ecef;
}

/* Classic Editor - Text Alignment */
.entry-content .alignleft {
    float: left;
    margin: 0.5em 1.5em 1em 0;
}

.entry-content .alignright {
    float: right;
    margin: 0.5em 0 1em 1.5em;
}

.entry-content .aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Classic Editor - Text Colors */
.entry-content [style*="color"] {
    /* Preserve inline color styles from Classic Editor */
}

.entry-content [style*="background-color"] {
    /* Preserve inline background colors from Classic Editor */
    padding: 2px 4px;
    border-radius: 3px;
}

/* Classic Editor - Font Sizes */
.entry-content [style*="font-size"] {
    /* Preserve inline font sizes from Classic Editor */
}

/* Classic Editor - Strong & Emphasis */
.entry-content strong,
.entry-content b {
    font-weight: 700;
    color: #2c3e50;
}

.entry-content em,
.entry-content i {
    font-style: italic;
}

.entry-content u {
    text-decoration: underline;
}

.entry-content strike,
.entry-content s {
    text-decoration: line-through;
}

/* Classic Editor - Code & Pre */
.entry-content code {
    background: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #e83e8c;
}

.entry-content pre {
    background: #2c3e50;
    color: #fff;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin: 1.5em 0;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
}

.entry-content pre code {
    background: transparent;
    padding: 0;
    color: #fff;
}

/* Classic Editor - Links */
.entry-content a {
    color: #667eea;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.entry-content a:hover {
    color: #764ba2;
    border-bottom-color: #764ba2;
}

/* Classic Editor - HR */
.entry-content hr {
    border: none;
    border-top: 2px solid #e9ecef;
    margin: 2em 0;
}

/* Classic Editor - Definition Lists */
.entry-content dl {
    margin: 1.5em 0;
}

.entry-content dt {
    font-weight: 700;
    margin-bottom: 0.5em;
    color: #2c3e50;
}

.entry-content dd {
    margin-left: 2em;
    margin-bottom: 1em;
    color: #495057;
}

/* Classic Editor - Address */
.entry-content address {
    font-style: italic;
    margin: 1.5em 0;
    padding: 1em;
    background: #f8f9fa;
    border-left: 3px solid #667eea;
}

/* Classic Editor - Captions */
.entry-content .wp-caption {
    max-width: 100%;
    margin: 1.5em 0;
}

.entry-content .wp-caption img {
    display: block;
    margin: 0;
}

.entry-content .wp-caption-text {
    font-size: 0.9em;
    font-style: italic;
    color: #6c757d;
    text-align: center;
    padding: 8px 0;
    margin: 0;
}

/* Classic Editor - Galleries */
.entry-content .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin: 1.5em 0;
}

.entry-content .gallery-item {
    margin: 0;
}

.entry-content .gallery-icon img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.page-links {
    margin-top: 2em;
    padding-top: 1.5em;
    border-top: 1px solid #e9ecef;
}

/* Tags Footer */
.entry-footer {
    padding: 25px 40px;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
}

.tag-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-links strong {
    color: #495057;
    font-weight: 600;
    margin-right: 5px;
}

.tag-item {
    display: inline-block;
    background: #fff;
    color: #667eea;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 13px;
    border: 1px solid #667eea;
    transition: all 0.3s ease;
}

.tag-item:hover {
    background: #667eea;
    color: #fff;
}

/* Post Navigation */
.post-navigation {
    margin-bottom: 40px;
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    flex: 1;
    max-width: 48%;
}

.post-navigation a {
    display: block;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    transition: all 0.3s ease;
    height: 100%;
}

.post-navigation a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

.post-navigation .nav-subtitle {
    display: block;
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 8px;
    font-weight: 500;
}

.post-navigation .nav-title {
    display: block;
    font-size: 16px;
    color: #2c3e50;
    font-weight: 600;
    line-height: 1.4;
}

.post-navigation .nav-next {
    text-align: right;
}

/* Responsive Design */
@media (max-width: 768px) {
    .single-post-template {
        padding: 20px 0;
    }

    .single-post-container {
        padding: 0 15px;
    }

    .entry-header.centered {
        padding: 30px 20px 20px;
    }

    .entry-title {
        font-size: 1.8rem;
    }

    .entry-content {
        padding: 25px 20px;
        font-size: 16px;
    }

    .entry-footer {
        padding: 20px;
    }

    .post-navigation .nav-links {
        flex-direction: column;
    }

    .post-navigation .nav-previous,
    .post-navigation .nav-next {
        max-width: 100%;
    }

    .post-navigation .nav-next {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .entry-title {
        font-size: 1.5rem;
    }

    .entry-content {
        font-size: 15px;
        padding: 20px 15px;
    }
}
