/* -----------------------------
   GLOSSARY ARCHIVE PAGE STYLES
------------------------------ */

.site-main {max-width: 1200px;margin: 0 auto;}
/* MAIN ARCHIVE - Category Grid */
.glossary-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.category-card {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-3px);
}

.category-card h2 {
    margin: 0 0 10px;
    font-size: 1.4rem;
}

.category-card h2 a {
    color: var(--rugwp-primary-color, #398ffc);
    text-decoration: none;
}

.category-count {
    color: #666;
    font-size: 0.9rem;
}

/* KEYWORDS LIST */
.glossary-keyword-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.keyword-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}

.keyword-card h2 {
    margin: 0;
    font-size: 1.2rem;
}

.keyword-card h2 a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.keyword-card h2 a:hover {
    color: var(--rugwp-primary-color, #398ffc);
}

/* TERMS LIST */
.glossary-term-list {
    display: grid;
    gap: 20px;
    margin-top: 30px;
}

.term-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.pagination-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0;
}

.results-per-page select {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.rugwp-keyword-list {
    list-style: none;
    padding-left: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}

.rugwp-keyword-list li {
    background: #f8f8f8;
    padding: 10px;
    border-radius: 4px;
    font-weight: 500;
}

.pagination {
    margin-top: 30px;
    text-align: center;
}


/* RESPONSIVE */
@media (max-width: 768px) {
    .glossary-category-grid,
    .glossary-keyword-list {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .pagination-controls {
        flex-direction: column;
        gap: 15px;
    }
}