@import url('../../variables.css');

/* Archive Page */
.archive-page .page-intro {
    background-color: white;
    margin-top: 8px;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.product-category-block {
    position: relative;
}

.product-category-block .category-header {
    background-color: var(--xinshengBlue);
    font-size: 16px;
    color: white;
    width: fit-content;
    padding: 8px 30px;
    margin-top: 8px;
    border-radius: 4px 4px 0 0;
    margin-bottom: 0;
}

.product-category-block .category-display {
    background-color: white;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 8px;
    border-radius: 0 4px 4px 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.product-category-block .category-image {
    flex: 0 0 300px;
}

.product-category-block .category-image img {
    width: 300px;
    height: 300px;
    padding: 10px;
    object-fit: contain;
}

.product-category-block .category-content {
    flex: 1;
    min-width: 300px;
}

.product-category-block .intro {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 15px;
}

.product-subcategory-grid {
    line-height: 30px;
}




.product-subcategory-grid a {
    color: var(--xinshengBlue);
    text-decoration: none;
    margin-right: 15px;
    margin-top: 5px;
}

.product-subcategory-grid a:hover {
    color: var(--xinshengGreen);
    text-decoration: none;
}

.category-learn-more {
    position: absolute;
    bottom: 15px;
    right: 15px;
}

.category-learn-more .btn {
    background-color: var(--xinshengBlue);
    color: white;
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s;
}

.category-learn-more .btn:hover {
    background-color: var(--xinshengGreen);
}

@media (max-width: 992px) {
    .product-subcategory-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .product-category-block .category-display {
        flex-direction: column;
    }

    .product-category-block .category-image {
        flex: 1 1 auto;
    }

    .product-subcategory-grid {
        grid-template-columns: 1fr;
    }
}


/* News Page */
.custom-news-page {
    margin-top: 8px;
}

.custom-news-page .category {
    background-color: white;
    padding: 20px;
    position: sticky;
    top: 80px;
}

.custom-news-page .news-gallery {
    background-color: white;
    padding: 20px;
}

.sidebar-title {
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid #ddd;
}

.category-list a,
.industry-list a {
    color: #333;
    transition: color 0.2s;
}

.category-list a:hover,
.industry-list a:hover {
    color: #0066cc;
}

.news-title a {
    color: #222;
    transition: color 0.2s;
}

.news-title a:hover {
    color: #0066cc;
}

.news-meta span:not(:last-child)::after {
    content: " | ";
    margin: 0 5px;
    color: #ddd;
}

@media (max-width: 992px) {
    .custom-news-page {
        padding-top: 15px;
        padding-bottom: 15px;
    }
}

/* Pagination styling */
.news-pagination ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-pagination li {
    margin: 0 5px;
}

.news-pagination .page-link {
    border: 1px solid #dee2e6;
    padding: 5px 10px;
    border-radius: 4px;
}

.news-pagination a.page-link {
    text-decoration: none;
}

.news-pagination .current .page-link {
    background-color: #0066cc;
    color: white;
    border-color: #0066cc;
}

/* Blogs Page */
.custom-blog-page {
    margin-top: 8px;
}

.custom-blog-page .category {
    background-color: white;
    padding: 20px;
    position: sticky;
    top: 80px;
}

.custom-blog-page .blogs-gallery {
    background-color: white;
    padding: 20px;
}

.sidebar-title {
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid #ddd;
}

.category-list a,
.industry-list a {
    color: #333;
    transition: color 0.2s;
}

.category-list a:hover,
.industry-list a:hover {
    color: #0066cc;
}

.blog-title a {
    color: #222;
    transition: color 0.2s;
}

.blog-title a:hover {
    color: #0066cc;
}

.blog-meta span:not(:last-child)::after {
    content: " | ";
    margin: 0 5px;
    color: #ddd;
}

@media (max-width: 992px) {
    .custom-news-page {
        padding-top: 15px;
        padding-bottom: 15px;
    }
}

/* Pagination styling */
.blogs-pagination ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.blogs-pagination li {
    margin: 0 5px;
}

.blogs-pagination .page-link {
    border: 1px solid #dee2e6;
    padding: 5px 10px;
    border-radius: 4px;
}

.blogs-pagination a.page-link {
    text-decoration: none;
}

.blogs-pagination .current .page-link {
    background-color: #0066cc;
    color: white;
    border-color: #0066cc;
}