/* Blog Page Styles */

/* Blog Hero */
.blog-hero {
    padding: 150px 0 60px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    text-align: center;
}

.blog-hero h1 {
    color: white;
    margin-bottom: 20px;
}

.blog-hero p {
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto 40px;
    font-size: 1.2rem;
}

.blog-categories {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.category-btn {
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 30px;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.category-btn:hover, .category-btn.active {
    background-color: var(--primary-color);
    color: white;
}

/* Featured Posts */
.featured-posts {
    padding: 80px 0;
}

.featured-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.main-featured {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.post-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.main-featured:hover .post-image img {
    transform: scale(1.05);
}

.post-category {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.post-content {
    padding: 30px;
}

.post-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    color: var(--gray-color);
    font-size: 0.9rem;
}

.post-meta i {
    margin-right: 5px;
}

.post-content h3 a {
    color: var(--dark-color);
    text-decoration: none;
    transition: var(--transition);
}

.post-content h3 a:hover {
    color: var(--primary-color);
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-light);
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.read-more:hover {
    gap: 10px;
}

.read-more i {
    margin-left: 5px;
    transition: var(--transition);
}

.read-more:hover i {
    margin-left: 10px;
}

.post-stats {
    color: var(--gray-color);
    font-size: 0.9rem;
}

.post-stats i {
    margin-right: 5px;
    margin-left: 15px;
}

/* Sidebar Posts */
.featured-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-post {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
}

.sidebar-post .post-image {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.sidebar-post .post-content {
    padding: 15px;
    flex: 1;
}

.sidebar-post .post-category {
    position: static;
    display: inline-block;
    margin-bottom: 10px;
    padding: 3px 10px;
    font-size: 0.7rem;
}

.sidebar-post h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.sidebar-post h4 a {
    color: var(--dark-color);
    text-decoration: none;
    transition: var(--transition);
}

.sidebar-post h4 a:hover {
    color: var(--primary-color);
}

.sidebar-post .post-meta {
    margin: 0;
    font-size: 0.8rem;
}

/* All Posts */
.all-posts {
    padding: 60px 0;
    background-color: var(--gray-light);
}

.posts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.posts-filter select {
    padding: 10px 15px;
    border: 2px solid var(--gray-light);
    border-radius: 8px;
    background-color: white;
    font-size: 0.9rem;
    min-width: 150px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.post-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.post-card:hover {
    transform: translateY(-10px);
}

.post-card .post-image {
    height: 200px;
}

.post-card .post-content {
    padding: 20px;
}

.post-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.post-card h3 a {
    color: var(--dark-color);
    text-decoration: none;
    transition: var(--transition);
}

.post-card h3 a:hover {
    color: var(--primary-color);
}

.post-card p {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.post-card .post-footer {
    padding-top: 15px;
    border-top: 1px solid var(--gray-light);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}

.page-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background-color: white;
    color: var(--dark-color);
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid var(--gray-light);
}

.page-btn:hover:not(.disabled):not(.active) {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.page-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-dots {
    padding: 0 5px;
    color: var(--gray-color);
}

/* Newsletter */
.newsletter-section {
    padding: 80px 0;
}

.newsletter-box {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    padding: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    flex-wrap: wrap;
    gap: 30px;
}

.newsletter-content h2 {
    color: white;
    margin-bottom: 10px;
}

.newsletter-content p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 400px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    flex: 1;
    max-width: 500px;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
}

.newsletter-form .btn-primary {
    background-color: white;
    color: var(--primary-color);
    padding: 15px 30px;
}

.newsletter-form .btn-primary:hover {
    background-color: var(--gray-light);
    color: white;
}

/* Responsive */
@media (max-width: 992px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .newsletter-box {
        flex-direction: column;
        text-align: center;
    }
    
    .newsletter-form {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .blog-categories {
        gap: 10px;
    }
    
    .category-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .sidebar-post {
        flex-direction: column;
    }
    
    .sidebar-post .post-image {
        width: 100%;
        height: 150px;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-box {
        padding: 30px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }
}