/* Blog Page Styles */

.blog-page {
    display: block;
    padding: 0;
}

.blog-page .container {
    display: none;
}

/* Navigation */
.blog-nav {
    background: var(--bg-primary);
    border-bottom: 3px solid var(--primary-color);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
}

.logo-image {
    height: 50px;
    width: 50px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    box-shadow: var(--shadow);
}

.logo-name {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background: var(--primary-color);
    color: white;
}

/* Blog Header */
.blog-header {
    background: var(--bg-primary);
    padding: 60px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.blog-header-content {
    max-width: 800px;
    margin: 0 auto;
}

.blog-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.blog-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* Blog Main */
.blog-main {
    background: var(--bg-soft);
    padding: 40px 20px;
    min-height: calc(100vh - 300px);
}

.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

/* Blog Content */
.blog-content {
    background: var(--bg-primary);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.blog-post {
    padding-bottom: 40px;
    margin-bottom: 40px;
    border-bottom: 2px solid var(--border-color);
}

.blog-post:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.post-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.post-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.post-category {
    background: var(--accent-red);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--primary-color);
}

.post-title {
    margin-bottom: 15px;
}

.post-title a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: var(--primary-color);
}

.post-excerpt {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.read-more:hover {
    color: var(--primary-dark);
    transform: translateX(5px);
}

/* Pagination */
.blog-pagination {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px solid var(--border-color);
}

.pagination-link {
    padding: 10px 16px;
    text-decoration: none;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination-link:hover,
.pagination-link.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Sidebar */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background: var(--bg-primary);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 2px solid var(--border-color);
}

.widget-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.widget-content {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Category List */
.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 12px;
}

.category-list a {
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    transition: color 0.3s ease;
    border-bottom: 1px solid var(--border-color);
}

.category-list a:hover {
    color: var(--primary-color);
}

.category-list span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Recent Posts */
.recent-posts {
    list-style: none;
}

.recent-posts li {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.recent-posts li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.recent-posts a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    display: block;
    margin-bottom: 8px;
    transition: color 0.3s ease;
    line-height: 1.4;
}

.recent-posts a:hover {
    color: var(--primary-color);
}

.recent-date {
    color: var(--text-secondary);
    font-size: 0.85rem;
    display: block;
}

.sidebar-email {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.sidebar-email:hover {
    color: var(--primary-dark);
}

/* Blog Footer */
.blog-footer {
    background: var(--bg-primary);
    border-top: 3px solid var(--primary-color);
    padding: 30px 20px;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content p {
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.footer-content .domain {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 968px) {
    .blog-container {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        margin-top: 20px;
    }

    .blog-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }

    .nav-links {
        gap: 15px;
    }

    .blog-header {
        padding: 40px 20px;
    }

    .blog-title {
        font-size: 2rem;
    }

    .blog-subtitle {
        font-size: 1rem;
    }

    .blog-content {
        padding: 25px;
    }

    .post-title a {
        font-size: 1.5rem;
    }

    .sidebar-widget {
        padding: 20px;
    }
}

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

    .blog-content {
        padding: 20px;
    }

    .post-title a {
        font-size: 1.3rem;
    }

    .post-meta {
        flex-direction: column;
        gap: 10px;
    }
}

