.glossary-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
    font-family: Arial, sans-serif;
}

.glossary-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-align: center;
}

.alphabet-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 1rem;
    gap: 0.5rem;
}

.alphabet-btn {
    padding: 0.5rem 1rem;
    border: none;
    background: #eee;
    cursor: pointer;
    font-weight: 600;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.alphabet-btn.active,
.alphabet-btn:hover {
    background: #007bff;
    color: white;
}

#glossary-search {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}

.glossary-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.glossary-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    background: #fafafa;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.glossary-item-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #333;
    border-bottom:2px solid #ffc107;
    background-color:#ffc107;
    padding:5px 10px 5px 10px;
    border-radius:8px;
}

.glossary-item-content {
    font-size: 1rem;
    color: #555;
}

@media (max-width: 600px) {
    .glossary-items {
        grid-template-columns: 1fr;
    }
}
