/* VKL Blog System - Integrated with VKL Beta Design */

/* Import the main VKL Beta styles */
@import url('../../style/style.css');

/* Blog-specific styles that integrate with VKL Beta design */

/* Blog Layout */
.blog-header {
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    padding: 40px 0;
    text-align: center;
}

.blog-title {
    color: #006605;
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 10px;
    font-family: 'Lato', sans-serif;
}

.blog-description {
    color: #777777;
    font-size: 1.1em;
    max-width: 600px;
    margin: 0 auto;
    font-family: 'Lato', sans-serif;
}

.blog-content {
    background-color: #f9f9f9;
    min-height: 600px;
    padding: 40px 0;
}

.blog-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Blog Main Content */
.blog-main {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.posts-grid {
    display: grid;
    gap: 30px;
}

.post-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.post-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.post-content {
    padding: 25px;
}

.post-title {
    margin-bottom: 15px;
}

.post-title a {
    color: #006605;
    text-decoration: none;
    font-size: 1.4em;
    font-weight: 600;
    line-height: 1.3;
    font-family: 'Lato', sans-serif;
}

.post-title a:hover {
    color: #004d04;
}

.post-excerpt {
    color: #777777;
    line-height: 1.6;
    margin-bottom: 20px;
    font-family: 'Lato', sans-serif;
}

.post-meta {
    display: flex;
    gap: 20px;
    color: #999999;
    font-size: 0.9em;
    font-family: 'Lato', sans-serif;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-meta i {
    color: #006605;
}

/* Blog Sidebar */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.widget-title {
    color: #006605;
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #006605;
    font-family: 'Lato', sans-serif;
}

.widget-title i {
    margin-right: 8px;
}

/* Search Widget */
.search-form {
    display: flex;
    gap: 10px;
}

.search-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Lato', sans-serif;
}

.search-input:focus {
    outline: none;
    border-color: #006605;
}

.search-btn {
    padding: 12px 20px;
    background: #006605;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Lato', sans-serif;
    transition: background-color 0.3s;
}

.search-btn:hover {
    background: #004d04;
}

/* Categories Widget */
.categories-list {
    list-style: none;
    padding: 0;
}

.categories-list li {
    margin-bottom: 10px;
}

.categories-list a {
    color: #777777;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-family: 'Lato', sans-serif;
    transition: color 0.3s;
}

.categories-list a:hover {
    color: #006605;
}

.category-count {
    background: #006605;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #777777;
    border-radius: 5px;
    font-family: 'Lato', sans-serif;
    transition: all 0.3s;
}

.pagination a:hover {
    background: #006605;
    color: white;
    border-color: #006605;
}

.pagination .current {
    background: #006605;
    color: white;
    border-color: #006605;
}

/* No Posts */
.no-posts {
    text-align: center;
    padding: 60px 20px;
}

.no-posts-icon {
    font-size: 4em;
    color: #ddd;
    margin-bottom: 20px;
}

.no-posts h2 {
    color: #006605;
    margin-bottom: 15px;
    font-family: 'Lato', sans-serif;
}

.no-posts p {
    color: #777777;
    font-family: 'Lato', sans-serif;
}

/* Single Post View */
.single-post {
    background: #fff;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.single-post-header {
    text-align: center;
    margin-bottom: 40px;
}

.single-post-title {
    color: #006605;
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 20px;
    font-family: 'Lato', sans-serif;
}

.single-post-meta {
    color: #999999;
    font-size: 1.1em;
    font-family: 'Lato', sans-serif;
}

.single-post-content {
    line-height: 1.8;
    color: #333;
    font-family: 'Lato', sans-serif;
}

.single-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0 20px;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 4px;
    background-color: #fff;
    color: #333;
    text-decoration: none;
    font-family: 'Lato', sans-serif;
    font-weight: 500;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background-color: #f0f0f0;
    border-color: #006605;
    color: #006605;
}

.pagination a.active {
    background-color: #006605;
    color: white;
    border-color: #006605;
}

.pagination .prev, .pagination .next {
    font-weight: bold;
    padding: 0 15px;
}

.pagination .disabled {
    color: #aaa;
    background-color: #f5f5f5;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination .ellipsis {
    border: none;
    background: transparent;
    pointer-events: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }
    
    .blog-header {
        padding: 30px 0;
    }
    
    .blog-title {
        font-size: 2em;
    }
    
    .blog-main {
        padding: 20px;
    }
    
    .post-content {
        padding: 20px;
    }
    
    .post-title a {
        font-size: 1.2em;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .single-post {
        padding: 20px;
    }
    
    .single-post-title {
        font-size: 1.8em;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
}

/* Back to Home Button */
.back-to-home {
    display: inline-block;
    background: #006605;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    margin-bottom: 30px;
    font-family: 'Lato', sans-serif;
    transition: background-color 0.3s;
}

.back-to-home:hover {
    background: #004d04;
    color: white;
}

/* Loading States */
.loading {
    text-align: center;
    padding: 40px;
    color: #777777;
    font-family: 'Lato', sans-serif;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-family: 'Lato', sans-serif;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Lato', sans-serif;
    font-size: 1em;
}

.form-input:focus {
    outline: none;
    border-color: #006605;
    box-shadow: 0 0 0 3px rgba(0, 102, 5, 0.1);
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-family: 'Lato', sans-serif;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: #006605;
    color: white;
}

.btn-primary:hover {
    background: #004d04;
}

.btn-secondary {
    background: #777777;
    color: white;
}

.btn-secondary:hover {
    background: #555555;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}
