/**
 * VO Theme - Custom Styles
 * Add your custom CSS here
 * 
 * @package VO_Theme
 */

/* Custom styles go below this line */

/* Main Content Area */


/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* Post Card */
.post-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-content {
    padding: 20px;
}

.post-title {
    margin: 0 0 10px;
    font-size: 1.25rem;
    line-height: 1.4;
}

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

.post-title a:hover {
    color: #0073aa;
}

.post-meta {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 15px;
}

.post-meta span {
    margin-right: 15px;
}

.post-excerpt {
    color: #444;
    line-height: 1.6;
    margin-bottom: 15px;
}

.read-more {
    display: inline-block;
    padding: 8px 16px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.read-more:hover {
    background: #005177;
    color: #fff;
}

/* Single Post */
.single-post {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
}

.single-post .post-header {
    margin-bottom: 30px;
}

.single-post .post-title {
    font-size: 2rem;
    margin-bottom: 15px;
}

.post-featured-image {
    margin-bottom: 30px;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.entry-content {
    line-height: 1.8;
    font-size: 1.1rem;
}

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

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: 2em;
    margin-bottom: 1em;
}

/* Author Box */
.author-box {
    display: flex;
    gap: 20px;
    padding: 30px;
    background: #f5f5f5;
    border-radius: 8px;
    margin: 30px 0;
}

.author-avatar img {
    border-radius: 50%;
}

.author-name {
    margin: 0 0 10px;
}

.author-bio {
    color: #666;
    margin-bottom: 10px;
}

/* Post Navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
    border-top: 1px solid #eee;
    margin-top: 30px;
}

/* Related Posts */
.related-posts {
    margin-top: 40px;
}

.related-posts h3 {
    margin-bottom: 20px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-post-item {
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
}

.related-post-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-post-item h4 {
    padding: 15px;
    margin: 0;
    font-size: 1rem;
}

/* Search Results */
.search-header {
    margin-bottom: 30px;
}

.search-query {
    color: #0073aa;
}

.search-result-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.result-thumbnail img {
    width: 150px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
}

.result-type {
    display: inline-block;
    padding: 2px 8px;
    background: #0073aa;
    color: #fff;
    font-size: 0.75rem;
    border-radius: 3px;
    margin-bottom: 5px;
}

/* 404 Page */
.error-404 {
    text-align: center;
    padding: 60px 20px;
}

.error-code {
    font-size: 8rem;
    color: #ddd;
    margin: 0;
    line-height: 1;
}

.error-message {
    font-size: 2rem;
    margin-bottom: 30px;
}

.error-search {
    max-width: 500px;
    margin: 30px auto;
}

.error-actions {
    margin: 30px 0;
}

.error-actions .button {
    margin: 0 10px;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.button-primary {
    background: #0073aa;
    color: #fff;
}

.button-secondary {
    background: #666;
    color: #fff;
}

.error-widgets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: left;
    margin-top: 50px;
}

/* Pagination */
.pagination-wrapper {
    margin-top: 40px;
    text-align: center;
}

.pagination {
    display: inline-flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 5px;
}

.pagination .page-item a,
.pagination .page-item span {
    display: block;
    padding: 10px 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}

.pagination .page-item a:hover,
.pagination .page-item span.current {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 15px 0;
    margin-bottom: 20px;
}

.breadcrumb-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.breadcrumb-item {
    font-size: 0.875rem;
}

.breadcrumb-item:not(:last-child)::after {
    content: '/';
    margin: 0 10px;
    color: #999;
}

.breadcrumb-item a {
    color: #0073aa;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #666;
}

/* Comments */
.comments-area {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment-list .comment {
    padding: 20px;
    margin-bottom: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .error-widgets {
        grid-template-columns: 1fr;
    }
    
    .search-result-item {
        flex-direction: column;
    }
    
    .result-thumbnail img {
        width: 100%;
        height: 200px;
    }
    
    .author-box {
        flex-direction: column;
        text-align: center;
    }
}
