
/* Header */
/*.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}*/

.logo h1 {
    color: var(--secondary);
    font-size: 1.8rem;
}

.logo h1 a {
    color: inherit;
    text-decoration: none;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav a:hover {
    color: var(--primary);
}

/* Main Content */
.main {
    padding: 3rem 3rem;
    min-height: calc(100vh - 200px);
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    margin-top: ;
}

.post-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.post-image {
    height: 200px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-content {
    padding: 1.5rem;
}

.post-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.post-title a {
    color: var(--secondary);
    text-decoration: none;
}

.post-title a:hover {
    color: var(--primary);
}

.post-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.post-excerpt {
    color: var(--text);
    margin-bottom: 1rem;
}

.read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.read-more:hover {
    color: var(--primary-dark);
}

/* Content with Sidebar */
.content-with-sidebar {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.main-content {
    min-width: 0;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 2rem;
}

.sidebar-widget {
    background: var(--white);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.sidebar-widget h3 {
    color: var(--secondary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
    font-size: 1.2rem;
}

.sidebar-widget p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Latest Posts in Sidebar */
.latest-posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.latest-post-item {
    display: flex;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: 6px;
    transition: background-color 0.3s;
}

.latest-post-item:hover {
    background-color: #f8f9fa;
}

.latest-post-image {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
}

.latest-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.latest-post-content {
    flex: 1;
    min-width: 0;
}

.latest-post-content h4 {
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.latest-post-content h4 a {
    color: var(--secondary);
    text-decoration: none;
}

.latest-post-content h4 a:hover {
    color: var(--primary);
}

.latest-post-meta {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Admin Link in Sidebar */
.admin-link {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.admin-link:hover {
    background: var(--primary-dark);
}

/* Single Post */
.single-post {
    background: var(--white);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.post-featured-image {
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
}

.post-featured-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.post-header {
    margin-bottom: 2rem;
    text-align: center;
}

.post-header .post-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.post-header .post-meta {
    justify-content: center;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.post-content h1,
.post-content h2,
.post-content h3 {
    margin: 2rem 0 1rem;
    color: var(--secondary);
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.post-content blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-light);
}

.post-navigation {
    margin-top: 2rem;
    text-align: center;
}

.back-to-home {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.back-to-home:hover {
    color: var(--primary-dark);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination a {
    padding: 0.8rem 1.2rem;
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    border-radius: 4px;
    transition: all 0.3s;
}

.pagination a:hover,
.pagination a.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* Footer */
.footer {
    background: var(--secondary);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* No Posts */
.no-posts {
    text-align: center;
    padding: 3rem;
    grid-column: 1 / -1;
}

.no-posts h2 {
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* Error Page */
.error-page {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.error-page h1 {
    color: var(--danger);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.error-page p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.btn-primary {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

/* Responsive */
@media (max-width: 968px) {
    .content-with-sidebar {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .sidebar {
        position: static;
        order: -1;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav {
        gap: 1rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .single-post {
        padding: 1.5rem;
    }
    
    .post-header .post-title {
        font-size: 2rem;
    }
    
    .post-featured-image img {
        height: 250px;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
    
    .latest-post-item {
        flex-direction: column;
        text-align: center;
    }
    
    .latest-post-image {
        width: 100%;
        height: 120px;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .main {
        padding: 2rem 0;
    }
    
    .post-content {
        padding: 1rem;
    }
    
    .post-header .post-title {
        font-size: 1.5rem;
    }
    
    .single-post {
        padding: 1rem;
    }
    
    .sidebar-widget {
        padding: 1rem;
    }
}