:root {
    --w: 80rem;
}

.footer-widgets {
    margin-top: 2rem !important;
}

li {
    list-style: none;
}

.archive-header {
    text-align: center;
    margin-bottom: 30px !important;
    padding: 20px !important;
}

.archive-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.archive-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
}

.ai-container {
    max-width: var(--w);
    margin: 0 auto;
    padding: 0 1.25rem;
}

.ai-tools-nav-wrapper {
    position: relative;
    position: relative;
    display: flex;
    align-items: center;
}

.nav-wrapper {
    overflow: hidden;
    flex: 1;
}

.ai-tools-nav::-webkit-scrollbar {
    display: none;
}

.ai-tools-nav {
    margin-bottom: 1.875rem;
    display: flex;
    transition: transform 0.3s ease;
    white-space: nowrap;
    gap: 1.875rem;
}

.ai-tools-nav ul {
    display: inline-flex;
    gap: 1.25rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.ai-tools-nav li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3125rem;
    border-radius: 0.375rem;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
}

.ai-tools-nav li.active a {
    /* color: var(--global--btn-default-color); */
    font-weight: 600;
}

.ai-tools-nav li a img {
    width: 2.1875rem;
    height: 2.1875rem;
}

.ai-tools-nav li a p {
    margin: 0;
    font-size: var(--global--font-size-sm);
}

.nav-arrow {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.nav-arrow.left {
    margin-right: 4px;
}

.nav-arrow.right {
    margin-left: 4px;
    position: absolute;
    right: -20px;
    top: 15%;
}

.nav-arrow.left {
    margin-left: 4px;
    position: absolute;
    left: -20px;
    top: 15%;
}

.ai-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.ai-post-card {
    background: #fff;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card-thumb img {
    width: 100%;
    height: 10rem;
    object-fit: cover;
    display: block;
    border-radius: 0.5rem 0.5rem 0 0;
}

.card-info {
    padding: 0.8rem 0.625rem;
}

.card-title {
    font-weight: 600;
    font-size: var(--global--font-size-base);
}

.card-title a {
    color: #333;
    text-decoration: none;
}

.card-time span {
    color: var(--global--color-gray);
    font-size: var(--global--font-size-xs);
}

.clear-filter {
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
}

.clear-btn {
    display: flex;
    align-items: center;
    gap: 0.3125rem;
    padding: 0.3125rem 0.75rem;
    background: var(--global--color-light-gray);
    border-radius: 1rem;
    text-decoration: none;
    color: var(--global--color-dark-gray);
    transition: opacity 0.3s ease;
    font-size: 0.8rem;
    border: 1px solid oklch(.928 .006 264.531);
}

.clear-btn:hover {
    opacity: 0.8;
}

@media (max-width: 768px) {
    .ai-container {
        padding: 0 0.625rem;
    }

    .ai-tools-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        gap: 0.9375rem;
    }

    .ai-tools-nav ul {
        display: inline-flex;
    }

    .ai-tools-nav li a img {
        width: 1.5625rem;
        height: 1.5625rem;
    }

    .nav-arrow {
        display: none;
    }
}