.blog-hero {
    background-image: linear-gradient(rgba(51, 51, 51, 0.7), rgba(51, 51, 51, 0.7)), url('../home/hero.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 80px 0;
}

.blog-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.blog-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.blog-hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.blog-categories {
    padding: 70px 0;
    background-color: #FFFFFF;
}

.category-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}

.category-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 100%;
    max-width: 350px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.category-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.category-card h3 {
    font-size: 1.3rem;
    color: #333333;
    margin-bottom: 15px;
}

.category-card p {
    color: #666666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.category-link {
    display: inline-block;
    color: #C24914;
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s;
}

.category-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #C24914;
    transition: width 0.3s;
}

.category-link:hover {
    color: #9a3a10;
}

.category-link:hover::after {
    width: 100%;
}

.featured-posts {
    padding: 70px 0;
    background-color: #F9E0AE;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.post-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.post-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.post-image {
    height: 200px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-content {
    padding: 25px;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.post-category {
    color: #C24914;
    font-weight: 500;
}

.post-date {
    color: #888;
}

.post-title {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
}

.post-excerpt {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    display: inline-block;
    color: #C24914;
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s;
}

.read-more::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #C24914;
    transition: width 0.3s;
}

.read-more:hover {
    color: #9a3a10;
}

.read-more:hover::after {
    width: 100%;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
    gap: 10px;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #fff;
    color: #333;
    font-weight: 500;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-link.next {
    width: auto;
    border-radius: 20px;
    padding: 0 20px;
    gap: 5px;
}

.page-link.active, .page-link:hover {
    background-color: #C24914;
    color: white;
}

.newsletter {
    padding: 80px 0;
    background-color: #FFFFFF;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 20px;
}

.newsletter p {
    color: #666;
    margin-bottom: 30px;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 5px 0 0 5px;
    font-size: 1rem;
    outline: none;
}

.subscribe-btn {
    background-color: #C24914;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.subscribe-btn:hover {
    background-color: #9a3a10;
}

@media (max-width: 992px) {
    .post-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .blog-hero h1 {
        font-size: 2rem;
    }
    
    .category-container {
        flex-direction: column;
        align-items: center;
    }
    
    .category-card {
        max-width: 100%;
    }
    
    .post-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
        gap: 10px;
    }
    
    .newsletter-form input[type="email"] {
        border-radius: 5px;
    }
    
    .subscribe-btn {
        border-radius: 5px;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .blog-hero {
        padding: 60px 0;
    }
    
    .blog-hero h1 {
        font-size: 1.8rem;
    }
    
    .blog-categories, .featured-posts, .newsletter {
        padding: 50px 0;
    }
    
    .post-image {
        height: 180px;
    }
    
    .post-content {
        padding: 20px;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
}
