.blog-categories-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.blog-categories-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5px;
}

.category-filters {
 display: flex;
    flex-wrap: wrap;
    gap: 70px;
    margin-bottom: 40px;
    justify-content: flex-start;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 0;
}

.category-filter-btn {
     display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: transparent;
    color: #132A6A;
    text-decoration: none;
    border: none;
    border-bottom: 2px solid transparent;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.category-filter-btn:hover {
    color: #eb610e;
}

.category-filter-btn.active {
    color: #eb610e;
    border-bottom-color: #eb610e;
}

.category-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.category-post-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s ease;
}

.category-post {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    transition: all 0.3s ease;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.category-post-link:hover .category-post {
    border-color: #eb610e;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.category-post-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.category-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.category-post-placeholder {
    width: 100%;
    height: 100%;
    background-color: #f5f5f5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999999;
}

.category-post-placeholder i {
    font-size: 40px;
    margin-bottom: 10px;
}

.category-post-placeholder span {
    font-size: 14px;
}

.category-post-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.category-post-title {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    color: #333333;
    margin: 0 0 12px 0;
}

.category-post-excerpt {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #666666;
    margin: 0 0 16px 0;
    flex-grow: 1;
}

.category-post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.post-date {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #999999;
}

.read-more {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #2F4269;
    transition: color 0.3s ease;
}

.read-more svg {
    transition: transform 0.3s ease;
}

.category-post-link:hover .read-more {
    color: #eb610e;
}

.category-post-link:hover .read-more svg {
    transform: translateX(4px);
}

.see-more-container {
    text-align: right !important;
}

.see-more-btn {
    display: inline-block;
    background-color: #eb610e;
    color: #ffffff;
    padding: 15px 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 2px solid #eb610e;
}

.see-more-btn:hover {
    background-color: transparent;
    color: #eb610e;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(235, 97, 14, 0.3);
}

.no-posts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #666666;
    font-size: 16px;
}

.posts-loader {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #666666;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #eb610e;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 1024px) {
    .blog-categories-container {
        max-width: 1200px;
        padding: 0 16px;
    }
    
    .category-posts-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .category-post {
        height: 400px;
    }
    
    .category-post-content {
        padding: 15px;
    }
    
    .category-post-title {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .category-post-excerpt {
        font-size: 13px;
        line-height: 1.4;
    }
}

@media (max-width: 768px) {
    .blog-categories-section {
        padding: 60px 0;
    }
    
    .blog-categories-container {
        gap: 24px;
    }
    
    .category-filters {
        margin-bottom: 40px;
        gap: 10px;
    }
    
    .category-filter-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .category-posts-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        margin-bottom: 40px;
    }
    
    .category-post {
        height: 400px;
    }
    
    .category-post-image {
        height: 180px;
    }
    
    .category-post-content {
        padding: 12px;
    }
    
    .category-post-title {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .category-post-excerpt {
        font-size: 12px;
        line-height: 1.3;
    }
}

@media (max-width: 600px) {
    .category-posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .category-filters {
        gap: 15px;
        justify-content: center;
    }
    
    .category-filter-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .blog-categories-section {
        padding: 40px 0;
    }
    
    .blog-categories-container {
        padding: 0 15px;
        gap: 25px;
    }
    
    .category-filters {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-bottom: 30px;
    }
    
    .category-filter-btn {
        width: 100%;
        max-width: 250px;
        text-align: center;
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .category-posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .category-post {
        min-height: 350px;
        height: auto;
    }
    
    .category-post-image {
        height: 200px;
    }
    
    .category-post-content {
        padding: 20px;
    }
    
    .category-post-title {
        font-size: 16px;
        margin-bottom: 10px;
        line-height: 1.4;
    }
    
    .category-post-excerpt {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 15px;
    }
    
    .category-post-meta {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .see-more-btn {
        padding: 15px 30px;
        font-size: 16px;
    }
}

@media (max-width: 360px) {
    .blog-categories-section {
        padding: 30px 0;
    }
    
    .blog-categories-container {
        padding: 0 12px;
        gap: 20px;
    }
    
    .category-filters {
        gap: 10px;
        margin-bottom: 25px;
    }
    
    .category-filter-btn {
        max-width: 200px;
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .category-posts-grid {
        gap: 15px;
    }
    
    .category-post {
        min-height: 320px;
    }
    
    .category-post-image {
        height: 180px;
    }
    
    .category-post-content {
        padding: 15px;
    }
    
    .category-post-title {
        font-size: 15px;
        margin-bottom: 8px;
    }
    
    .category-post-excerpt {
        font-size: 13px;
        line-height: 1.4;
        margin-bottom: 12px;
    }
    
    .see-more-btn {
        padding: 12px 24px;
        font-size: 14px;
    }
}

@media (max-width: 320px) {
    .blog-categories-section {
        padding: 25px 0;
    }
    
    .blog-categories-container {
        padding: 0 10px;
        gap: 15px;
    }
    
    .category-filters {
        gap: 8px;
        margin-bottom: 20px;
    }
    
    .category-filter-btn {
        max-width: 180px;
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .category-posts-grid {
        gap: 12px;
    }
    
    .category-post {
        min-height: 300px;
    }
    
    .category-post-image {
        height: 160px;
    }
    
    .category-post-content {
        padding: 12px;
    }
    
    .category-post-title {
        font-size: 14px;
        margin-bottom: 6px;
        line-height: 1.3;
    }
    
    .category-post-excerpt {
        font-size: 12px;
        line-height: 1.3;
        margin-bottom: 10px;
    }
    
    .category-post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .post-date {
        font-size: 12px;
    }
    
    .read-more {
        font-size: 12px;
    }
    
    .see-more-btn {
        padding: 10px 20px;
        font-size: 13px;
        width: 100%;
        max-width: 200px;
    }
}