/* Home Blog Section Styles - With Unique Class Names */
.home-blog-section {
    padding: 80px 0;
    background-color: #F8F9FA;
}

.home-blog-section h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333333;
}

.home-section-intro {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
    color: #666666;
    font-size: 1.1rem;
}

.home-blog-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.home-blog-grid {
    margin-bottom: 40px;
}

.home-blog-page {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.home-blog-page:not(.active) {
    display: none;
}

.home-blog-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.home-blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.home-blog-image {
    height: 200px;
    overflow: hidden;
}

.home-blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.home-blog-card:hover .home-blog-image img {
    transform: scale(1.05);
}

.home-blog-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.home-blog-date {
    color: #999999;
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: block;
}

.home-blog-card-content h3 {
    margin: 0 0 15px;
    font-size: 1.3rem;
    line-height: 1.4;
    color: #333333;
}

.home-blog-card-content p {
    margin: 0 0 20px;
    color: #666666;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-blog-link {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    color: #1E90FF;
    margin-top: auto;
}

.home-blog-link i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.home-blog-link:hover i {
    transform: translateX(5px);
}

.home-blog-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
}

.home-blog-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 4px;
    background-color: white;
    color: #333333;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.home-blog-nav a.active {
    background-color: #1E90FF;
    color: white;
}

.home-blog-nav a:hover:not(.active):not(.disabled) {
    background-color: #F8F9FA;
    transform: translateY(-2px);
}

.home-blog-prev,
.home-blog-next {
    padding: 0 15px;
}

.home-blog-nav .disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive styles for home blog grid */
@media (max-width: 991.98px) {
    .home-blog-page {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767.98px) {
    .home-blog-page {
        grid-template-columns: 1fr;
    }
    
    .home-blog-nav {
        flex-wrap: wrap;
    }
}
