@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.other-blogs-section {
    padding: 80px 0;
    background-color: #FFF;
}

.container-custom {
    padding: 0 80px;
}

.section-title {
    margin-bottom: 64px !important;
    animation: fadeInUp 1s ease-out;
}

.category-filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 40px;
}

.filter-btn {
    display: inline-flex;
    padding: var(--space-16) 24px;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    border-radius: 0;
    border: 1px solid #CACED3;
    background: #FFF;
    color: #9EA0A5;
    transition: all 0.2s ease;
}

.filter-btn.active {
    border: 1px solid #FFD014;
    background: #FFD014;
    color: #184382;
}

.filter-btn:hover:not(.active) {
    background-color: #E5E7EB;
}

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

.blog-item-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    border-radius: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 12px;
    margin: -12px;
    height: auto;
}

.blog-item-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    z-index: 1;
}

.blog-item-img {
    width: 100%;
    aspect-ratio: 405 / 270;
    overflow: hidden;
    margin-bottom: 16px;
}

.blog-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

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

.blog-item-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-item-title {
    margin: 16px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    align-self: stretch;
    overflow: hidden;
    text-overflow: ellipsis;
}

.blog-item-card:hover .blog-item-title {
    color: #184382;
}

.blog-item-meta {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    margin-top: auto;
    margin-bottom: 16px;
}

.blog-item-meta svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}



@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .container-custom {
        padding: 0 24px !important;
    }

    .other-blogs-section {
        padding: 60px 0 !important;
    }

    .section-title {
        margin-bottom: 64px !important;
    }

    .category-filter-container {
        margin-bottom: 40px !important;
        gap: 12px !important;
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 40px 24px !important;
    }

    .blog-item-img img {
        height: 276px !important;
    }

    .blog-item-meta {
        margin-top: auto !important;
    }
}

@media (max-width: 767.98px) {
    .container-custom {
        padding: 0 16px !important;
    }

    .other-blogs-section {
        padding: 40px 0 !important;
    }

    .section-title {
        margin-bottom: 24px !important;
    }

    .category-filter-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        width: 100% !important;
    }

    .category-filter-container a,
    .category-filter-container button {
        width: 100% !important;
        text-align: center;
        display: block !important;
    }

    .blog-grid {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }

    .blog-item-img {
        aspect-ratio: 16 / 9 !important;
    }

    .blog-item-img img {
        height: 276px !important;
    }
}